blob: 655f530f2ee0f528cab011949ec500d02196e1c6 [file] [log] [blame]
wdenk012771d2002-03-08 21:31:05 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenk012771d2002-03-08 21:31:05 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk012771d2002-03-08 21:31:05 +00006#
7
Masahiro Yamadac54b77e2013-10-21 11:53:38 +09008obj-y = L1.o flash.o
9obj-y += init.o
10obj-y += bootscript.o
wdenk0893c472003-05-20 14:25:27 +000011
Masahiro Yamada18b727a2014-03-11 11:05:12 +090012quiet_cmd_awk = AWK $@
13 cmd_awk = od -t x1 -v -A x $< | $(AWK) -f $(filter-out $<,$^) > $@
wdenk0893c472003-05-20 14:25:27 +000014
Masahiro Yamada18b727a2014-03-11 11:05:12 +090015$(obj)/bootscript.c: $(obj)/bootscript.image $(src)/x2c.awk
16 $(call cmd,awk)
17
18quiet_cmd_mkimage = UIMAGE $@
19cmd_mkimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -d $< $@ \
20 $(if $(KBUILD_VERBOSE:1=), >/dev/null)
21
22MKIMAGEFLAGS_bootscript.image := -A ppc -O linux -T script -C none \
23 -a 0 -e 0 -n bootscript
Masahiro Yamada59f15f22014-02-04 17:24:24 +090024$(obj)/bootscript.image: $(src)/bootscript.hush
Masahiro Yamada18b727a2014-03-11 11:05:12 +090025 $(call cmd,mkimage)
Masahiro Yamada0a17a422014-02-04 17:24:40 +090026
27clean-files := bootscript.c bootscript.image