diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2013-04-11 12:17:52 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-04-12 14:42:31 +0200 |
commit | aaefab09c7573f81a83c164ce2daca35b6a420e6 (patch) | |
tree | b852a855e9036a65a9ffe810f9951981e358b200 | |
parent | 69036c20f14de6d919bc423af32a51a84b023893 (diff) | |
download | buildroot-novena-aaefab09c7573f81a83c164ce2daca35b6a420e6.tar.gz buildroot-novena-aaefab09c7573f81a83c164ce2daca35b6a420e6.zip |
fs/ext2: add a symlink 'rootfs.ext#' -> 'rootfs.ext2'
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r-- | fs/ext2/ext2.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/ext2/ext2.mk b/fs/ext2/ext2.mk index 018a5a3d0..ffb725758 100644 --- a/fs/ext2/ext2.mk +++ b/fs/ext2/ext2.mk @@ -26,4 +26,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 + 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 +endif + $(eval $(call ROOTFS_TARGET,ext2)) |