2018-04-05 10:48:35 +02:00
|
|
|
VERSION="1.28.3"
|
2017-12-09 21:51:48 +01:00
|
|
|
SRCDIR="busybox-$VERSION"
|
|
|
|
TARBALL="busybox-$VERSION.tar.bz2"
|
|
|
|
URL="https://busybox.net/downloads"
|
2018-04-05 10:48:35 +02:00
|
|
|
SHA256SUM="ad0d22033f23e696f9a71a4c2f9210194dda39b024a79151f4ac278995332a6e"
|
2018-02-15 23:47:54 +01:00
|
|
|
DEPENDS="toolchain"
|
2017-12-09 21:51:48 +01:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
local SYSROOT="$TCDIR/$TARGET"
|
|
|
|
|
2018-02-17 00:09:25 +01:00
|
|
|
cp "$SCRIPTDIR/pkg/$PKGNAME/bbstatic.config" "$PKGBUILDDIR/.config"
|
2017-12-09 21:51:48 +01:00
|
|
|
|
2018-02-16 23:22:04 +01:00
|
|
|
export KBUILD_OUTPUT="$PKGBUILDDIR"
|
2017-12-09 21:51:48 +01:00
|
|
|
|
2018-02-16 23:22:04 +01:00
|
|
|
make -C "$1" O="$PKGBUILDDIR" CROSS_COMPILE="${TARGET}-" oldconfig
|
|
|
|
sed -i "$PKGBUILDDIR/.config" -e 's,^CONFIG_CROSS_COMPILE=.*,CONFIG_CROSS_COMPILE="'$TARGET'-",'
|
|
|
|
sed -i "$PKGBUILDDIR/.config" -e 's,^CONFIG_SYSROOT=.*,CONFIG_SYSROOT="'$SYSROOT'",'
|
2017-12-09 21:51:48 +01:00
|
|
|
|
2018-02-16 23:22:04 +01:00
|
|
|
make -C "$1" O="$PKGBUILDDIR" CROSS_COMPILE="${TARGET}-" -j $NUMJOBS
|
2017-12-09 21:51:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
|
|
|
local SOURCE="$1"
|
2018-02-16 23:22:04 +01:00
|
|
|
local DEPLOY="$2"
|
2017-12-09 21:51:48 +01:00
|
|
|
|
|
|
|
mkdir -p "$DEPLOY/bin"
|
2018-02-16 23:22:04 +01:00
|
|
|
cp "$PKGBUILDDIR/busybox" "$DEPLOY/bin"
|
2017-12-09 21:51:48 +01:00
|
|
|
}
|