OILS / deps / source.medo / busybox / WEDGE View on Github | oils.pub

37 lines, 29 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 # disable the tc module, since thats broken on linux kernels > 6.8
21 sed -i 's/CONFIG_TC=y/CONFIG_TC=n/' .config
22 time make
23}
24
25wedge-install() {
26 local build_dir=$1
27 local install_dir=$2
28
29 cp -v $build_dir/busybox $install_dir
30 ln -s -f -v busybox $install_dir/ash
31}
32
33wedge-smoke-test() {
34 local install_dir=$1
35
36 $install_dir/ash -c 'echo "hi from busybox ash"'
37}