Mercurial > hg > aboriginal
changeset 1516:f19ce5e2ec02
Combining KCONFIG_ALLSYMS=<() sometimes works, but not always. Just use a file.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 24 Mar 2012 22:33:32 -0500 |
parents | 63d3f491b92f |
children | a246e0b13639 |
files | linux-kernel.sh |
diffstat | 1 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/linux-kernel.sh Sat Mar 24 20:29:50 2012 -0500 +++ b/linux-kernel.sh Sat Mar 24 22:33:32 2012 -0500 @@ -8,16 +8,20 @@ load_target "$1" -# If we have an initramfs, incorporate it into the kernel image. +setupfor linux + +# Get miniconfig. If we have an initramfs, incorporate it into the kernel image. -[ -e "$BUILD/root-image-$ARCH/initramfs_data.cpio" ] && - MORE_KERNEL_CONFIG="CONFIG_BLK_DEV_INITRD=y\nCONFIG_INITRAMFS_SOURCE=\"$BUILD/root-image-$ARCH/initramfs_data.cpio\"\nCONFIG_INITRAMFS_COMPRESSION_GZIP=y" +getconfig linux > mini.conf +CPIO="$BUILD/root-image-$ARCH/initramfs_data.cpio" +[ -e "$CPIO" ] && + echo -e "CONFIG_BLK_DEV_INITRD=y\nCONFIG_INITRAMFS_SOURCE=\"$CPIO\"\nCONFIG_INITRAMFS_COMPRESSION_GZIP=y" >> mini.conf # Build linux kernel for the target -setupfor linux [ -z "$BOOT_KARCH" ] && BOOT_KARCH=$KARCH -make ARCH=$BOOT_KARCH $LINUX_FLAGS KCONFIG_ALLCONFIG=<(getconfig linux && echo -e "$MORE_KERNEL_CONFIG") allnoconfig >/dev/null && +make ARCH=$BOOT_KARCH $LINUX_FLAGS KCONFIG_ALLCONFIG=mini.conf allnoconfig \ + >/dev/null && make -j $CPUS ARCH=$BOOT_KARCH $DO_CROSS $LINUX_FLAGS $VERBOSITY && cp "$KERNEL_PATH" "$STAGE_DIR"