ext2.mk 757 B

12345678910111213141516171819202122232425262728293031
  1. #############################################################
  2. #
  3. # Build the ext2 root filesystem image
  4. #
  5. #############################################################
  6. EXT2_OPTS :=
  7. ifeq ($(BR2_TARGET_ROOTFS_EXT2_SQUASH),y)
  8. EXT2_OPTS += -U
  9. endif
  10. ifneq ($(strip $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)),0)
  11. EXT2_OPTS += -b $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)
  12. endif
  13. ifneq ($(strip $(BR2_TARGET_ROOTFS_EXT2_INODES)),0)
  14. EXT2_OPTS += -N $(BR2_TARGET_ROOTFS_EXT2_INODES)
  15. endif
  16. ifneq ($(strip $(BR2_TARGET_ROOTFS_EXT2_RESBLKS)),0)
  17. EXT2_OPTS += -m $(BR2_TARGET_ROOTFS_EXT2_RESBLKS)
  18. endif
  19. ROOTFS_EXT2_DEPENDENCIES = host-genext2fs
  20. define ROOTFS_EXT2_CMD
  21. PATH=$(TARGET_PATH) fs/ext2/genext2fs.sh -d $(TARGET_DIR) $(EXT2_OPTS) $$@
  22. endef
  23. $(eval $(call ROOTFS_TARGET,ext2))