From 649046bd2e1723ec886a78092199865c6dc6580c Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Sun, 8 Jul 2007 19:22:58 +0000 Subject: [PATCH] - apply settings for initramfs --- target/linux26.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/target/linux26.mk b/target/linux26.mk index 9c91ac84cc..18c98b4c2b 100644 --- a/target/linux26.mk +++ b/target/linux26.mk @@ -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 $@ -- 2.30.2