mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
kbuild: move cmd_mkimage to scripts/Makefile.lib
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>
This commit is contained in:
parent
b9d1dbd4df
commit
ba8dd7755e
5 changed files with 9 additions and 17 deletions
|
@ -33,10 +33,6 @@ $(IMX_CONFIG): %.cfgtmp: % FORCE
|
|||
$(Q)mkdir -p $(dir $@)
|
||||
$(call if_changed_dep,cpp_cfg)
|
||||
|
||||
quiet_cmd_mkimage = MKIMAGE $@
|
||||
cmd_mkimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -d $< $@ \
|
||||
$(if $(KBUILD_VERBOSE:1=), >/dev/null)
|
||||
|
||||
MKIMAGEFLAGS_u-boot.imx = -n $(filter-out $< $(PHONY),$^) -T imximage \
|
||||
-e $(CONFIG_SYS_TEXT_BASE)
|
||||
|
||||
|
|
|
@ -15,13 +15,9 @@ quiet_cmd_awk = AWK $@
|
|||
$(obj)/bootscript.c: $(obj)/bootscript.image $(src)/x2c.awk
|
||||
$(call cmd,awk)
|
||||
|
||||
quiet_cmd_mkimage = MKIMAGE $@
|
||||
cmd_mkimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -d $< $@ \
|
||||
$(if $(KBUILD_VERBOSE:1=), >/dev/null)
|
||||
|
||||
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
|
||||
clean-files := bootscript.c bootscript.image
|
||||
|
|
|
@ -8,10 +8,6 @@ obj-y := mvblm7.o pci.o fpga.o
|
|||
|
||||
extra-y := bootscript.img
|
||||
|
||||
quiet_cmd_mkimage = MKIMAGE $@
|
||||
cmd_mkimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -d $< $@ \
|
||||
$(if $(KBUILD_VERBOSE:1=), >/dev/null)
|
||||
|
||||
MKIMAGEFLAGS_bootscript.image := -T script -C none -n M7_script
|
||||
|
||||
$(obj)/bootscript.img: $(src)/bootscript
|
||||
|
|
|
@ -12,10 +12,6 @@ obj-y := mvsmr.o fpga.o
|
|||
|
||||
extra-y := bootscript.img
|
||||
|
||||
quiet_cmd_mkimage = MKIMAGE $@
|
||||
cmd_mkimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -d $< $@ \
|
||||
$(if $(KBUILD_VERBOSE:1=), >/dev/null)
|
||||
|
||||
MKIMAGEFLAGS_bootscript.image := -T script -C none -n mvSMR_Script
|
||||
|
||||
$(obj)/bootscript.img: $(src)/bootscript
|
||||
|
|
|
@ -379,3 +379,11 @@ quiet_cmd_xzmisc = XZMISC $@
|
|||
cmd_xzmisc = (cat $(filter-out FORCE,$^) | \
|
||||
xz --check=crc32 --lzma2=dict=1MiB) > $@ || \
|
||||
(rm -f $@ ; false)
|
||||
|
||||
# Additional commands for U-Boot
|
||||
#
|
||||
# mkimage
|
||||
# ---------------------------------------------------------------------------
|
||||
quiet_cmd_mkimage = MKIMAGE $@
|
||||
cmd_mkimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -d $< $@ \
|
||||
$(if $(KBUILD_VERBOSE:1=), >/dev/null)
|
||||
|
|
Loading…
Reference in a new issue