summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-11-19 15:05:20 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2010-11-19 15:05:20 +0100
commit094b2938039d9e12323e2f29a59ce6293411dd28 (patch)
treec28fd3cab66731a5d9f70b300b269f1ed0140140 /fs
parent0a0cb991b715ecc490b77533d49d24424b9d11a2 (diff)
downloadbuildroot-novena-094b2938039d9e12323e2f29a59ce6293411dd28.tar.gz
buildroot-novena-094b2938039d9e12323e2f29a59ce6293411dd28.zip
fs: add extra deps to ROOTFS_*_DEPENDENCIES variables
Instead of explicitly adding it both places it is used. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'fs')
-rw-r--r--fs/common.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/common.mk b/fs/common.mk
index f9dababb2..92be00cc0 100644
--- a/fs/common.mk
+++ b/fs/common.mk
@@ -36,7 +36,10 @@ ROOTFS_DEVICE_TABLE = $(call qstrip,$(BR2_ROOTFS_DEVICE_TABLE))
define ROOTFS_TARGET_INTERNAL
-$(BINARIES_DIR)/rootfs.$(1): $(ROOTFS_$(2)_DEPENDENCIES) host-fakeroot host-makedevs $(if $(BR2_TARGET_ROOTFS_$(2)_LZMA),host-lzma)
+# extra deps
+$(eval ROOTFS_$(2)_DEPENDENCIES += host-fakeroot host-makedevs $(if $(BR2_TARGET_ROOTFS_$(2)_LZMA),host-lzma))
+
+$(BINARIES_DIR)/rootfs.$(1): $(ROOTFS_$(2)_DEPENDENCIES)
@$(call MESSAGE,"Generating root filesystem image rootfs.$(1)")
$(foreach hook,$(ROOTFS_$(2)_PRE_GEN_HOOKS),$(call $(hook))$(sep))
rm -f $(FAKEROOT_SCRIPT)
@@ -62,7 +65,7 @@ ifeq ($$(BR2_TARGET_ROOTFS_$(2)_LZMA),y)
endif
rootfs-$(1)-show-depends:
- @echo $(ROOTFS_$(2)_DEPENDENCIES) host-fakeroot host-makedevs $(if $(BR2_TARGET_ROOTFS_$(2)_LZMA),host-lzma)
+ @echo $(ROOTFS_$(2)_DEPENDENCIES)
rootfs-$(1): $(BINARIES_DIR)/rootfs.$(1) $(ROOTFS_$(2)_POST_TARGETS)