config.mk 427 B

123456789101112131415
  1. # SPDX-License-Identifier: GPL-2.0+
  2. quiet_cmd_srec_cat = SRECCAT $@
  3. cmd_srec_cat = srec_cat -output $@ -$2 \
  4. $< -binary \
  5. -fill 0x00 -within $< -binary -range-pad 16 \
  6. -offset $3
  7. u-boot.mcs: u-boot.bin
  8. $(call cmd,srec_cat,intel,0x7c00000)
  9. # if srec_cat is present build u-boot.mcs by default
  10. has_srec_cat = $(call try-run,srec_cat -VERSion,y,n)
  11. INPUTS-$(has_srec_cat) += u-boot.mcs
  12. CLEAN_FILES += u-boot.mcs