mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-07 05:13:21 +09:00
![Simon Glass](/assets/img/avatar_default.png)
When binman is in use, most of the targets built by the Makefile are inputs to binman. We then need a final rule to run binman to produce the final outputs. Rename the variable to indicate this, and add a new 'inputs' target. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
16 lines
427 B
Makefile
16 lines
427 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
|
|
quiet_cmd_srec_cat = SRECCAT $@
|
|
cmd_srec_cat = srec_cat -output $@ -$2 \
|
|
$< -binary \
|
|
-fill 0x00 -within $< -binary -range-pad 16 \
|
|
-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)
|
|
INPUTS-$(has_srec_cat) += u-boot.mcs
|
|
CLEAN_FILES += u-boot.mcs
|