summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-07-08 19:22:58 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-07-08 19:22:58 +0000
commit649046bd2e1723ec886a78092199865c6dc6580c (patch)
tree22d2b924c6ffc0da4af1e7cc6e93ec3f7c461cdc /target
parent149c552e0fda9bdc64ea10fe5a2bfa35bd26ec65 (diff)
- apply settings for initramfs
Diffstat (limited to 'target')
-rw-r--r--target/linux26.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/target/linux26.mk b/target/linux26.mk
index 9c91ac84c..18c98b4c2 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)
@@ -111,6 +111,14 @@ ifeq ($(BR2_ARM_EABI),y)
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 $@