[Buildroot] [PATCH 3/4] target/initramfs: actually build initramfs target

Jeremy Kerr jk at ozlabs.org
Mon Dec 8 03:58:17 UTC 2008


Currently, BR2_TARGET_ROOTFS_INITRAMFS doesn't actually do anything,
as it doesn't alter $(TARGETS)

This change hooks up the TARGETS variable to INITRAMFS_TARGET (which
is only set if BR2_TARGET_ROOTFS_INITRAMFS=y), so that the initramfs
list is built.

Signed-off-by: Jeremy Kerr <jk at ozlabs.org>

---
 target/initramfs/initramfs.mk |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/target/initramfs/initramfs.mk b/target/initramfs/initramfs.mk
index 07f5ec3..015d879 100644
--- a/target/initramfs/initramfs.mk
+++ b/target/initramfs/initramfs.mk
@@ -12,6 +12,8 @@ else
 INITRAMFS_TARGET:= #nothing
 endif
 
+TARGETS+=$(INITRAMFS_TARGET)
+
 $(INITRAMFS_TARGET) initramfs: host-fakeroot makedevs
 	rm -f $(TARGET_DIR)/init
 	ln -s sbin/init $(TARGET_DIR)/init



More information about the buildroot mailing list