Paul Burton | 9a987ca | 2017-11-21 14:31:07 -0800 | [diff] [blame] | 1 | # |
2 | # SPDX-License-Identifier: GPL-2.0+ | ||||
3 | # | ||||
4 | |||||
5 | quiet_cmd_srec_cat = SRECCAT $@ | ||||
6 | cmd_srec_cat = srec_cat -output $@ -$2 $< -binary -offset $3 | ||||
7 | |||||
8 | u-boot.mcs: u-boot.bin | ||||
9 | $(call cmd,srec_cat,intel,0x7c00000) | ||||
10 | |||||
11 | # if srec_cat is present build u-boot.mcs by default | ||||
12 | has_srec_cat = $(call try-run,srec_cat -VERSion,y,n) | ||||
13 | ALL-$(has_srec_cat) += u-boot.mcs | ||||
14 | CLEAN_FILES += u-boot.mcs |