target/initramfs: actually build initramfs target
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 8 Dec 2008 13:42:04 +0000 (13:42 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 8 Dec 2008 13:42:04 +0000 (13:42 -0000)
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@ozlabs.org>
target/initramfs/initramfs.mk

index 830d3099508af3be310157e668d9e797880d5419..6ace2f1146503634e4ca51e4379779b4e26c71ce 100644 (file)
@@ -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