wdenk | 012771d | 2002-03-08 21:31:05 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | f932863 | 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 | 1a45966 | 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 | 377e104 | 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 | 7f70e85 | 2003-05-20 14:25:27 +0000 | [diff] [blame] | 11 | |
Masahiro Yamada | 22dbf14 | 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 | 7f70e85 | 2003-05-20 14:25:27 +0000 | [diff] [blame] | 14 | |
Masahiro Yamada | 22dbf14 | 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 | b97241b | 2014-03-14 05:00:14 +0100 | [diff] [blame] | 18 | quiet_cmd_mkimage = MKIMAGE $@ |
Masahiro Yamada | 22dbf14 | 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 | 9e41403 | 2014-02-04 17:24:24 +0900 | [diff] [blame] | 24 | $(obj)/bootscript.image: $(src)/bootscript.hush |
Masahiro Yamada | 22dbf14 | 2014-03-11 11:05:12 +0900 | [diff] [blame] | 25 | $(call cmd,mkimage) |
Masahiro Yamada | efcf861 | 2014-02-04 17:24:40 +0900 | [diff] [blame] | 26 | |
| 27 | clean-files := bootscript.c bootscript.image |