diff sources/sections/linux-headers.sh @ 1152:2f39d1bfb2fd

Add baseconfig-linux, the infrastructure to use it, and move over the arm targets. (You can override with a miniconfig-linux or miniconfig-uClibc in the appropriate target directory.)
author Rob Landley <rob@landley.net>
date Fri, 02 Jul 2010 23:38:31 -0500
parents 1d776e44b908
children ffa79617fb3f
line wrap: on
line diff
--- a/sources/sections/linux-headers.sh	Fri Jul 02 12:58:41 2010 -0500
+++ b/sources/sections/linux-headers.sh	Fri Jul 02 23:38:31 2010 -0500
@@ -2,15 +2,12 @@
 
 setupfor linux
 
-# This isn't strictly necessary, but if we have a kernel config, expand
-# and copy it.
+# Expand and copy kernel .config.
 
-cp "$(getconfig linux)" mini.conf &&
-if [ "$SYSIMAGE_TYPE" == "initramfs" ]
-then
-  echo "CONFIG_BLK_DEV_INITRD=y" >> mini.conf
-fi
-[ -e mini.conf ] &&
+getconfig linux > mini.conf &&
+[ "$SYSIMAGE_TYPE" == "initramfs" ] &&
+echo "CONFIG_BLK_DEV_INITRD=y" >> mini.conf
+
 make ARCH=${BOOT_KARCH:-$KARCH} KCONFIG_ALLCONFIG=mini.conf $LINUX_FLAGS \
   allnoconfig >/dev/null &&
 mkdir -p "$STAGE_DIR/src" &&