summaryrefslogtreecommitdiff
path: root/Kernel/build-root-filesystem.sh
diff options
context:
space:
mode:
authorjoshua stein <jcs@jcs.org>2020-01-01 20:06:14 -0600
committerAndreas Kling <awesomekling@gmail.com>2020-01-02 21:03:53 +0100
commit5e430e4eb4cc00bf7a7c4a047ef15e7bc737d32a (patch)
tree4d6c24f46efeec50d8e4857f0edd395884e4974c /Kernel/build-root-filesystem.sh
parentd61131945d15e64cdf7ab0a2cbe584a915599428 (diff)
downloadserenity-5e430e4eb4cc00bf7a7c4a047ef15e7bc737d32a.zip
Build: add support for building on OpenBSD
This requires gcc8 from ports to build the Toolchain.
Diffstat (limited to 'Kernel/build-root-filesystem.sh')
-rwxr-xr-xKernel/build-root-filesystem.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/Kernel/build-root-filesystem.sh b/Kernel/build-root-filesystem.sh
index b5dceb740f..f0c607f6da 100755
--- a/Kernel/build-root-filesystem.sh
+++ b/Kernel/build-root-filesystem.sh
@@ -77,10 +77,12 @@ echo "done"
printf "installing userland... "
-if [ "$(uname)" != "Darwin" ]; then
-find ../Userland/ -type f -executable -exec cp {} mnt/bin/ \;
+if [ "$(uname -s)" = "Darwin" ]; then
+ find ../Userland/ -type f -perm +111 -exec cp {} mnt/bin/ \;
+elif [ "$(uname -s)" = "OpenBSD" ]; then
+ find ../Userland/ -type f -perm -555 -exec cp {} mnt/bin/ \;
else
-find ../Userland/ -type f -perm +111 -exec cp {} mnt/bin/ \;
+ find ../Userland/ -type f -executable -exec cp {} mnt/bin/ \;
fi
chmod 4755 mnt/bin/su
chmod 4755 mnt/bin/ping