Mercurial > hg > aboriginal
view linux-kernel.sh @ 1350:7eabfa815c90
Split up system-image.sh into root-image.sh, linux-kernel.sh, and system-image.sh. Rename CROSS_HOST_ARCH to CROSS_COMPILER_HOST.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 18 Apr 2011 18:41:04 -0500 |
parents | |
children | 9252453c40d0 |
line wrap: on
line source
#!/bin/bash # Package a root filesystem directory into a filesystem image file source sources/include.sh || exit 1 # Parse the sources/targets/$1 directory read_arch_dir "$1" # =================== build kernel ======================== [ -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" # 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 -j $CPUS ARCH=$BOOT_KARCH $DO_CROSS $LINUX_FLAGS $VERBOSITY && cp "$KERNEL_PATH" "$STAGE_DIR" cleanup create_stage_tarball