mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-01 14:59:08 +09:00
![Masahiro Yamada](/assets/img/avatar_default.png)
Because cmd_mkimage is used in various subdirectories, it seems reasonable to define it in scripts/Makefile.lib. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
24 lines
578 B
Makefile
24 lines
578 B
Makefile
#
|
|
# (C) Copyright 2000-2006
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
|
|
obj-y = L1.o flash.o
|
|
obj-y += init.o
|
|
obj-y += bootscript.o
|
|
|
|
quiet_cmd_awk = AWK $@
|
|
cmd_awk = od -t x1 -v -A x $< | $(AWK) -f $(filter-out $<,$^) > $@
|
|
|
|
$(obj)/bootscript.c: $(obj)/bootscript.image $(src)/x2c.awk
|
|
$(call cmd,awk)
|
|
|
|
MKIMAGEFLAGS_bootscript.image := -A ppc -O linux -T script -C none \
|
|
-a 0 -e 0 -n bootscript
|
|
$(obj)/bootscript.image: $(src)/bootscript.hush
|
|
$(call cmd,mkimage)
|
|
|
|
clean-files := bootscript.c bootscript.image
|