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