- apply settings for initramfs
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sun, 8 Jul 2007 19:22:58 +0000 (19:22 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sun, 8 Jul 2007 19:22:58 +0000 (19:22 -0000)
target/linux26.mk

index 9c91ac84cc8e6aded796f0d729e424654b49a236..18c98b4c2be22e22a61d1511db2c79c3694be69b 100644 (file)
@@ -101,7 +101,7 @@ $(LINUX26_DIR)/.patched: $(LINUX26_DIR)/.unpacked
        touch $@
 endif # ($(LINUX26_VERSION),$(LINUX_HEADERS_VERSION))
 
-$(LINUX26_DIR)/.configured:  $(LINUX26_DIR)/.patched  $(LINUX26_KCONFIG)
+$(LINUX26_DIR)/.configured:  $(LINUX26_DIR)/.patched  $(LINUX26_KCONFIG) $(INITRAMFS_TARGET)
        cp -dpf $(LINUX26_KCONFIG) $(LINUX26_DIR)/.config
        $(SED) '/CONFIG_AEABI/d' $(LINUX26_DIR)/.config
 ifeq ($(BR2_ARM_EABI),y)
@@ -110,6 +110,14 @@ ifeq ($(BR2_ARM_EABI),y)
        echo "# CONFIG_OABI_COMPAT is not set" >> $(LINUX26_DIR)/.config
 else
        echo "# CONFIG_AEABI is not set" >> $(LINUX26_DIR)/.config
+endif
+ifeq ($(BR2_TARGET_ROOTFS_INITRAMFS),y)
+       $(SED) '/CONFIG_INITRAMFS_SOURCE/d' $(LINUX26_DIR)/.config
+       echo "CONFIG_INITRAMFS_SOURCE=\"$(INITRAMFS_TARGET)\"" >> \
+               $(LINUX26_DIR)/.config
+       $(SED) '/INITRAMFS_ROOT_.ID/d' $(LINUX26_DIR)/.config
+       echo "INITRAMFS_ROOT_UID=\"0\"" >> $(LINUX26_DIR)/.config
+       echo "INITRAMFS_ROOT_GID=\"0\"" >> $(LINUX26_DIR)/.config
 endif
        $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) oldconfig
        touch $@