blob: 716a5a316b44ed58b465e983ceea52b9634fae0f [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
Masahiro Yamada18b727a2014-03-11 11:05:12 +090018MKIMAGEFLAGS_bootscript.image := -A ppc -O linux -T script -C none \
19 -a 0 -e 0 -n bootscript
Masahiro Yamada59f15f22014-02-04 17:24:24 +090020$(obj)/bootscript.image: $(src)/bootscript.hush
Masahiro Yamada18b727a2014-03-11 11:05:12 +090021 $(call cmd,mkimage)
Masahiro Yamada0a17a422014-02-04 17:24:40 +090022
Masahiro Yamada37666092014-06-04 10:12:21 +090023clean-files := bootscript.c bootscript.image