aboutsummaryrefslogtreecommitdiff
path: root/core/sinit/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-03-24 17:30:14 +0300
committerCem Keylan <cem@ckyln.com>2020-03-24 17:30:14 +0300
commit851b7f736fd07d079809a1056d72b6d846997b84 (patch)
tree426a420167acd71573321f76d097ffb726e0771e /core/sinit/build
parentdf7b8d6bd6ba84ed90de49008ffede943c4b8009 (diff)
downloadrepository-851b7f736fd07d079809a1056d72b6d846997b84.tar.gz
sinit: reflect changes to carbs-init
Diffstat (limited to 'core/sinit/build')
-rwxr-xr-xcore/sinit/build11
1 files changed, 2 insertions, 9 deletions
diff --git a/core/sinit/build b/core/sinit/build
index e51e3f5c..f543146d 100755
--- a/core/sinit/build
+++ b/core/sinit/build
@@ -1,13 +1,6 @@
#!/bin/sh -e
-(
- cd sinit
- make CFLAGS="$CFLAGS -static" PREFIX=/usr DESTDIR="$1" install
-)
+make CFLAGS="$CFLAGS -static" PREFIX=/usr DESTDIR="$1" install
ln -s sinit "$1/usr/bin/init"
-install -Dm755 poweroff "$1/usr/bin/poweroff"
-install -Dm755 reboot "$1/usr/bin/reboot"
-
-# shellcheck disable=2086
-"${CC:-gcc}" -o "$1/usr/bin/kpow" init/bin/kpow.c $CFLAGS -static
+install -Dm755 -t "$1/usr/bin" poweroff reboot