aboutsummaryrefslogtreecommitdiff
path: root/fs/ext2
diff options
context:
space:
mode:
authorGravatar Arnout Vandecappelle <arnout@mind.be>2013-11-07 00:12:29 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2013-11-11 00:29:44 +0100
commit75b6303a9a5bf1b7e62b69bb8ddc7e138ef9775f (patch)
tree7011650c646617b0d13e1bc93553b5584ddd2615 /fs/ext2
parent646bd86908f7f995cdc2b95e0be381d97600f905 (diff)
downloadbuildroot-75b6303a9a5bf1b7e62b69bb8ddc7e138ef9775f.tar.gz
buildroot-75b6303a9a5bf1b7e62b69bb8ddc7e138ef9775f.tar.bz2
rootfs-ext2: make the symlink as a _POST_TARGET
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>
Diffstat (limited to 'fs/ext2')
-rw-r--r--fs/ext2/ext2.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ext2/ext2.mk b/fs/ext2/ext2.mk
index cad5b42d6e..b4280aa5a6 100644
--- a/fs/ext2/ext2.mk
+++ b/fs/ext2/ext2.mk
@@ -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))