blob: 716a5a316b44ed58b465e983ceea52b9634fae0f [file] [log] [blame]
wdenk012771d2002-03-08 21:31:05 +00001#
Marian Balakowiczf9328632006-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 Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk012771d2002-03-08 21:31:05 +00006#
7
Masahiro Yamada377e1042013-10-21 11:53:38 +09008obj-y = L1.o flash.o
9obj-y += init.o
10obj-y += bootscript.o
wdenk7f70e852003-05-20 14:25:27 +000011
Masahiro Yamada22dbf142014-03-11 11:05:12 +090012quiet_cmd_awk = AWK $@
13 cmd_awk = od -t x1 -v -A x $< | $(AWK) -f $(filter-out $<,$^) > $@
wdenk7f70e852003-05-20 14:25:27 +000014
Masahiro Yamada22dbf142014-03-11 11:05:12 +090015$(obj)/bootscript.c: $(obj)/bootscript.image $(src)/x2c.awk
16 $(call cmd,awk)
17
Masahiro Yamada22dbf142014-03-11 11:05:12 +090018MKIMAGEFLAGS_bootscript.image := -A ppc -O linux -T script -C none \
19 -a 0 -e 0 -n bootscript
Masahiro Yamada9e414032014-02-04 17:24:24 +090020$(obj)/bootscript.image: $(src)/bootscript.hush
Masahiro Yamada22dbf142014-03-11 11:05:12 +090021 $(call cmd,mkimage)
Masahiro Yamadaefcf8612014-02-04 17:24:40 +090022
Masahiro Yamadaba8dd772014-06-04 10:12:21 +090023clean-files := bootscript.c bootscript.image