OILS / deps / source.medo / busybox / WEDGE View on Github | oilshell.org

36 lines, 27 significant
1# Wedge definition for busybox
2#
3# Loaded by deps/wedge.sh.
4
5set -o nounset
6set -o pipefail
7set -o errexit
8
9# sourced
10WEDGE_NAME='busybox'
11WEDGE_VERSION='1.35.0'
12
13wedge-make() {
14 local src_dir=$1
15 local build_dir=$2
16 local install_dir=$3
17
18 # Out of tree instructions from INSTALL
19 make KBUILD_SRC=$src_dir -f $src_dir/Makefile defconfig
20
21 time make
22}
23
24wedge-install() {
25 local build_dir=$1
26 local install_dir=$2
27
28 cp -v $build_dir/busybox $install_dir
29 ln -s -f -v busybox $install_dir/ash
30}
31
32wedge-smoke-test() {
33 local install_dir=$1
34
35 $install_dir/ash -c 'echo "hi from busybox ash"'
36}