busybox: Compile with crc32 for kernel. GCC: Use right arguments based on host.

This commit is contained in:
Dylan Araps 2019-06-22 09:29:12 +03:00
parent a5b55e1474
commit 213f93bfc6
3 changed files with 7 additions and 2 deletions

View File

@ -1,2 +1,2 @@
3d1d04a4dbd34048f4794815a5c48ebb9eb53c5277e09ffffc060323b95dfbdc busybox-1.30.1.tar.bz2
32b5172f1bc896e9934d15936fc013892ec0260349380b4325077d0351509330 .config
df3b3f0319daee88fc0dabff32ae57b0b62184ac67b2845adb64505bb9eafd0d .config

View File

@ -154,6 +154,7 @@ CONFIG_LZMA=y
CONFIG_UNXZ=y
CONFIG_XZCAT=y
CONFIG_XZ=y
CONFIG_CRC32=y
CONFIG_BZIP2=y
CONFIG_BZIP2_SMALL=8
CONFIG_FEATURE_BZIP2_DECOMPRESS=y

View File

@ -5,6 +5,7 @@ mkdir -p gcc-build
cd gcc-build
export libat_cv_have_ifunc=no
machine=$(gcc -dumpmachine)
../gcc/configure \
--prefix=/usr \
@ -27,7 +28,10 @@ export libat_cv_have_ifunc=no
--enable-shared \
--enable-threads \
--enable-tls \
--enable-languages=c,c++
--enable-languages=c,c++ \
--build="$machine" \
--target="$machine" \
--host="$machine"
make BOOT_CFLAGS='-O'
make DESTDIR="$1" install