mirror of
https://github.com/pygos/build.git
synced 2024-11-16 08:27:11 +01:00
48e6358906
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
39 lines
1,012 B
Text
Executable file
39 lines
1,012 B
Text
Executable file
VERSION="1.29.3"
|
|
SRCDIR="busybox-$VERSION"
|
|
TARBALL="busybox-$VERSION.tar.bz2"
|
|
URL="https://busybox.net/downloads"
|
|
SHA256SUM="97648636e579462296478e0218e65e4bc1e9cd69089a3b1aeb810bff7621efb7"
|
|
DEPENDS="toolchain"
|
|
|
|
prepare() {
|
|
return
|
|
}
|
|
|
|
build() {
|
|
local SYSROOT="$TCDIR/$TARGET"
|
|
|
|
cp "$SCRIPTDIR/pkg/$PKGNAME/bbstatic.config" "$PKGBUILDDIR/.config"
|
|
|
|
export KBUILD_OUTPUT="$PKGBUILDDIR"
|
|
|
|
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'",'
|
|
|
|
make -C "$1" O="$PKGBUILDDIR" CROSS_COMPILE="${TARGET}-" -j $NUMJOBS
|
|
}
|
|
|
|
deploy() {
|
|
local SOURCE="$1"
|
|
local DEPLOY="$2"
|
|
|
|
mkdir -p "$DEPLOY/bin"
|
|
cp "$PKGBUILDDIR/busybox" "$DEPLOY/bin"
|
|
}
|
|
|
|
check_update() {
|
|
curl --silent -L "$URL" | \
|
|
grep -o ">busybox-[0-9.]*tar.bz2<" | \
|
|
sed 's/>busybox-//g' | sed 's/.tar.bz2<//g' | \
|
|
verson_find_greatest "$VERSION"
|
|
}
|