blob: 0ba8802da09f0292fece1d3d2b33367469355061 [file] [log] [blame]
Paul Burtoncaead802017-11-21 14:31:07 -08001#
2# SPDX-License-Identifier: GPL-2.0+
3#
4
5quiet_cmd_srec_cat = SRECCAT $@
Paul Burtonb2f815b2018-01-18 14:36:41 -08006 cmd_srec_cat = srec_cat -output $@ -$2 \
7 $< -binary \
8 -fill 0x00 -within $< -binary -range-pad 16 \
9 -offset $3
Paul Burtoncaead802017-11-21 14:31:07 -080010
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