aboutsummaryrefslogtreecommitdiff
path: root/core/busybox-init/build
blob: e3955e932377a9b7f2850fdd1ed43e50d24938f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh -e

# Build and install busybox-init.
# This excludes utilities which require 'suid' to function.
make CC="${CC:-gcc}"
make CONFIG_PREFIX="$1/usr" install

mv "$1/usr/bin/busybox" "$1/usr/bin/busybox-init"

"$1/usr/bin/busybox-init" --list | while read -r bin; do
    ln -s busybox-init "$1/usr/bin/$bin"
done