blob: c1e242f108827876ff47c44133673b9e6fc42dc6 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Paul Burton9a987ca2017-11-21 14:31:07 -08002
3quiet_cmd_srec_cat = SRECCAT $@
Paul Burtonfded8b22018-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 Burton9a987ca2017-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)
Simon Glassc46090d2020-07-19 13:56:01 -060014INPUTS-$(has_srec_cat) += u-boot.mcs
Paul Burton9a987ca2017-11-21 14:31:07 -080015CLEAN_FILES += u-boot.mcs