|
@@ -26,4 +26,11 @@ define ROOTFS_EXT2_CMD
|
|
PATH=$(TARGET_PATH) $(EXT2_ENV) fs/ext2/genext2fs.sh -d $(TARGET_DIR) $(EXT2_OPTS) $@
|
|
PATH=$(TARGET_PATH) $(EXT2_ENV) fs/ext2/genext2fs.sh -d $(TARGET_DIR) $(EXT2_OPTS) $@
|
|
endef
|
|
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))
|
|
$(eval $(call ROOTFS_TARGET,ext2))
|