busybox: fix build

This commit is contained in:
Ella Stanforth 2022-04-09 17:47:09 +00:00
parent 6f81bab5c8
commit 1691d14260

View file

@ -9,15 +9,15 @@ fetch() {
tar -xf $pkgname-$pkgver.tar.gz tar -xf $pkgname-$pkgver.tar.gz
cd $pkgname-$pkgver cd $pkgname-$pkgver
patch -p1 < ../../clang-fix.patch patch -p1 < ../../clang-fix.patch
patch -p1 < ../../modprobe.patch # patch -p1 < ../../modprobe.patch
# cp ../man.sh . # cp ../man.sh .
} }
build() { build() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
gmake HOSTCC=cc CC=cc defconfig bad --gmake gmake HOSTCC=cc CC=cc CFLAGS=-O0 defconfig
gmake HOSTCC=cc CC=cc bad --gmake gmake HOSTCC=cc CC=cc CFLAGS=-O0
gmake HOSTCC=cc CC=cc install bad --gmake gmake HOSTCC=cc CC=cc CFLAGS=-O0 install
} }
package() { package() {
@ -30,7 +30,7 @@ package() {
# install -Dm755 ../man.sh $pkgdir/etc/profile.d # install -Dm755 ../man.sh $pkgdir/etc/profile.d
install -Dm755 ./examples/udhcp/simple.script $pkgdir/usr/share/udhcpc/default.script install -Dm755 ./examples/udhcp/simple.script $pkgdir/usr/share/udhcpc/default.script
rm $pkgdir/linuxrc rm $pkgdir/linuxrc
rm $pkgdir/bin/ln rm $pkgdir/bin/ln
rm $pkgdir/bin/uname rm $pkgdir/bin/uname
@ -195,6 +195,10 @@ package() {
rm $pkgdir/usr/bin/man rm $pkgdir/usr/bin/man
} }
backup() {
return
}
license() { license() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
cat LICENSE cat LICENSE