blob: 8cfc9c6894382cd4ffecb71b34ce96befc8862ad [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Paul Burtoncaead802017-11-21 14:31:07 -08002
3quiet_cmd_srec_cat = SRECCAT $@
Paul Burtonb2f815b2018-01-18 14:36:41 -08004 cmd_srec_cat = srec_cat -output $@ -$2 \
5 $< -binary \
6 -fill 0x00 -within $< -binary -range-pad 16 \
7 -offset $3
Paul Burtoncaead802017-11-21 14:31:07 -08008
9u-boot.mcs: u-boot.bin
10 $(call cmd,srec_cat,intel,0x7c00000)
11
12# if srec_cat is present build u-boot.mcs by default
13has_srec_cat = $(call try-run,srec_cat -VERSion,y,n)
14ALL-$(has_srec_cat) += u-boot.mcs
15CLEAN_FILES += u-boot.mcs