wdenk | 012771d | 2002-03-08 21:31:05 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # (C) Copyright 2000-2006 |
wdenk | 012771d | 2002-03-08 21:31:05 +0000 | [diff] [blame] | 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 012771d | 2002-03-08 21:31:05 +0000 | [diff] [blame] | 6 | # |
| 7 | |
Masahiro Yamada | c54b77e | 2013-10-21 11:53:38 +0900 | [diff] [blame] | 8 | obj-y = L1.o flash.o |
| 9 | obj-y += init.o |
| 10 | obj-y += bootscript.o |
wdenk | 0893c47 | 2003-05-20 14:25:27 +0000 | [diff] [blame] | 11 | |
Masahiro Yamada | 18b727a | 2014-03-11 11:05:12 +0900 | [diff] [blame] | 12 | quiet_cmd_awk = AWK $@ |
| 13 | cmd_awk = od -t x1 -v -A x $< | $(AWK) -f $(filter-out $<,$^) > $@ |
wdenk | 0893c47 | 2003-05-20 14:25:27 +0000 | [diff] [blame] | 14 | |
Masahiro Yamada | 18b727a | 2014-03-11 11:05:12 +0900 | [diff] [blame] | 15 | $(obj)/bootscript.c: $(obj)/bootscript.image $(src)/x2c.awk |
| 16 | $(call cmd,awk) |
| 17 | |
Marek Vasut | 31fea44 | 2014-03-14 05:00:14 +0100 | [diff] [blame] | 18 | quiet_cmd_mkimage = MKIMAGE $@ |
Masahiro Yamada | 18b727a | 2014-03-11 11:05:12 +0900 | [diff] [blame] | 19 | cmd_mkimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -d $< $@ \ |
| 20 | $(if $(KBUILD_VERBOSE:1=), >/dev/null) |
| 21 | |
| 22 | MKIMAGEFLAGS_bootscript.image := -A ppc -O linux -T script -C none \ |
| 23 | -a 0 -e 0 -n bootscript |
Masahiro Yamada | 59f15f2 | 2014-02-04 17:24:24 +0900 | [diff] [blame] | 24 | $(obj)/bootscript.image: $(src)/bootscript.hush |
Masahiro Yamada | 18b727a | 2014-03-11 11:05:12 +0900 | [diff] [blame] | 25 | $(call cmd,mkimage) |
Masahiro Yamada | 0a17a42 | 2014-02-04 17:24:40 +0900 | [diff] [blame] | 26 | |
| 27 | clean-files := bootscript.c bootscript.image |