]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
rootfs-ext2: make the symlink as a _POST_TARGET
authorArnout Vandecappelle <arnout@mind.be>
Wed, 6 Nov 2013 23:12:29 +0000 (00:12 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 10 Nov 2013 23:29:44 +0000 (00:29 +0100)
This will allow us to remove the unused ROOTFS_$(FSTYPE)_POST_GEN_HOOKS.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
fs/common.mk
fs/ext2/ext2.mk

index 4dab7ea28baba822c5e85e2c180630717b4b4846..01d2c00bbec369c1e0fb873d63d2aa6598510911 100644 (file)
@@ -17,7 +17,7 @@
 #  generating the filesystem image
 #
 #  ROOTFS_$(FSTYPE)_POST_GEN_HOOKS, a list of hooks to call after
-#  generating the filesystem image
+#  generating and compressing the filesystem image
 #
 #  ROOTFS_$(FSTYPE)_POST_TARGETS, the list of targets that should be
 #  run after running the main filesystem target. This is useful for
index cad5b42d6e29d97348a5968947a47b8a54337f6b..b4280aa5a6c1ea4b2468758e335c819eb79b4cf8 100644 (file)
@@ -27,11 +27,11 @@ define ROOTFS_EXT2_CMD
        PATH=$(TARGET_PATH) $(EXT2_ENV) fs/ext2/genext2fs.sh -d $(TARGET_DIR) $(EXT2_OPTS) $@
 endef
 
-define ROOTFS_EXT2_HOOK_SYMLINK
+rootfs-ext2-symlink:
        ln -sf rootfs.ext2 $(BINARIES_DIR)/rootfs.ext$(BR2_TARGET_ROOTFS_EXT2_GEN)
-endef
+
 ifneq ($(BR2_TARGET_ROOTFS_EXT2_GEN),2)
-ROOTFS_EXT2_POST_GEN_HOOKS += ROOTFS_EXT2_HOOK_SYMLINK
+ROOTFS_EXT2_POST_TARGETS += rootfs-ext2-symlink
 endif
 
 $(eval $(call ROOTFS_TARGET,ext2))