mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-20 11:43:22 +00:00
15 lines
369 B
Makefile
15 lines
369 B
Makefile
|
#
|
||
|
# SPDX-License-Identifier: GPL-2.0+
|
||
|
#
|
||
|
|
||
|
quiet_cmd_srec_cat = SRECCAT $@
|
||
|
cmd_srec_cat = srec_cat -output $@ -$2 $< -binary -offset $3
|
||
|
|
||
|
u-boot.mcs: u-boot.bin
|
||
|
$(call cmd,srec_cat,intel,0x7c00000)
|
||
|
|
||
|
# if srec_cat is present build u-boot.mcs by default
|
||
|
has_srec_cat = $(call try-run,srec_cat -VERSion,y,n)
|
||
|
ALL-$(has_srec_cat) += u-boot.mcs
|
||
|
CLEAN_FILES += u-boot.mcs
|