xref: /openbmc/u-boot/board/imgtec/boston/config.mk (revision 3ba98ed8)
1# SPDX-License-Identifier: GPL-2.0+
2
3quiet_cmd_srec_cat = SRECCAT $@
4      cmd_srec_cat = srec_cat -output $@ -$2 \
5			$< -binary \
6			-fill 0x00 -within $< -binary -range-pad 16 \
7			-offset $3
8
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
16