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