Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Paul Burton | caead80 | 2017-11-21 14:31:07 -0800 | [diff] [blame] | 2 | |
| 3 | quiet_cmd_srec_cat = SRECCAT $@ |
Paul Burton | b2f815b | 2018-01-18 14:36:41 -0800 | [diff] [blame] | 4 | cmd_srec_cat = srec_cat -output $@ -$2 \ |
| 5 | $< -binary \ |
| 6 | -fill 0x00 -within $< -binary -range-pad 16 \ |
| 7 | -offset $3 |
Paul Burton | caead80 | 2017-11-21 14:31:07 -0800 | [diff] [blame] | 8 | |
| 9 | u-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 |
| 13 | has_srec_cat = $(call try-run,srec_cat -VERSion,y,n) |
Simon Glass | e6385c7 | 2020-07-19 13:56:01 -0600 | [diff] [blame] | 14 | INPUTS-$(has_srec_cat) += u-boot.mcs |
Paul Burton | caead80 | 2017-11-21 14:31:07 -0800 | [diff] [blame] | 15 | CLEAN_FILES += u-boot.mcs |