fit.mk 734 B

12345678910111213141516171819202122
  1. # SPDX-License-Identifier: GPL-2.0
  2. #==============================================================================
  3. # Build the FIT image for StarFive.
  4. #==============================================================================
  5. FIT_ITS_TEMPLATE=$(SDK_STAGING_CONFIGS_DIR)/uboot_fit_image$(CONFIG_BOARD_SUBFIX)_template.its
  6. FIT_ITS_FILE=$(SDK_STAGING_CONFIGS_DIR)/uboot_fit_image$(CONFIG_BOARD_SUBFIX).its
  7. _board_fit_its:
  8. $(call fit_its_gen, $(CONFIG_FILE), \
  9. $(FIT_ITS_TEMPLATE), \
  10. $(FIT_ITS_FILE))
  11. #_board_uboot_build_tools
  12. _board_fit: initrd _board_fit_its
  13. $(_BOARD_UBOOT_SRC_DIR)/tools/mkimage \
  14. -f $(FIT_ITS_FILE) \
  15. -A riscv \
  16. -O linux \
  17. -T flat_dt \
  18. $(SDK_OUTPUT_DIR)/$(CONFIG_CONFIG_FILE).fit