1 | # Wedge definition for busybox
|
2 | #
|
3 | # Loaded by deps/wedge.sh.
|
4 |
|
5 | set -o nounset
|
6 | set -o pipefail
|
7 | set -o errexit
|
8 |
|
9 | # sourced
|
10 | WEDGE_NAME='busybox'
|
11 | WEDGE_VERSION='1.35.0'
|
12 |
|
13 | wedge-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 |
|
24 | wedge-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 |
|
32 | wedge-smoke-test() {
|
33 | local install_dir=$1
|
34 |
|
35 | $install_dir/ash -c 'echo "hi from busybox ash"'
|
36 | }
|