add chaos_calmer branch
[15.05/openwrt.git] / package / boot / uboot-lantiq / patches / 0019-Makefile-add-Lantiq-NAND-SPL-images.patch
1 From 2e01dc015bc8bb9ca45f369025c342ede990863e Mon Sep 17 00:00:00 2001
2 From: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
3 Date: Mon, 12 Aug 2013 01:16:09 +0200
4 Subject: Makefile: add Lantiq NAND SPL images
5
6 Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
7
8 --- a/.gitignore
9 +++ b/.gitignore
10 @@ -54,6 +54,9 @@
11  /u-boot.ltq.lzma.norspl
12  /u-boot.ltq.lzo.norspl
13  /u-boot.ltq.norspl
14 +/u-boot.ltq.lzma.nandspl
15 +/u-boot.ltq.lzo.nandspl
16 +/u-boot.ltq.nandspl
17  /u-boot.lzma.img
18  /u-boot.lzo.img
19  
20 --- a/Makefile
21 +++ b/Makefile
22 @@ -599,6 +599,24 @@ $(obj)u-boot.ltq.lzma.sfspl: $(obj)u-boo
23                 $(obj)tools/ltq-boot-image -t sfspl -e $(CONFIG_SPL_TEXT_BASE) \
24                         -s $(obj)spl/u-boot-spl.bin -u $< -o $@
25  
26 +$(obj)u-boot.ltq.nandspl:      $(obj)u-boot.img $(obj)spl/u-boot-spl.bin
27 +               $(obj)tools/ltq-boot-image -t nandspl -e $(CONFIG_SPL_TEXT_BASE) \
28 +                       -x $(CONFIG_SYS_NAND_U_BOOT_OFFS) \
29 +                       -p $(CONFIG_SYS_NAND_PAGE_SIZE) \
30 +                       -s $(obj)spl/u-boot-spl.bin -u $< -o $@
31 +
32 +$(obj)u-boot.ltq.lzo.nandspl: $(obj)u-boot.lzo.img $(obj)spl/u-boot-spl.bin
33 +               $(obj)tools/ltq-boot-image -t nandspl -e $(CONFIG_SPL_TEXT_BASE) \
34 +                       -x $(CONFIG_SYS_NAND_U_BOOT_OFFS) \
35 +                       -p $(CONFIG_SYS_NAND_PAGE_SIZE) \
36 +                       -s $(obj)spl/u-boot-spl.bin -u $< -o $@
37 +
38 +$(obj)u-boot.ltq.lzma.nandspl: $(obj)u-boot.lzma.img $(obj)spl/u-boot-spl.bin
39 +               $(obj)tools/ltq-boot-image -t nandspl -e $(CONFIG_SPL_TEXT_BASE) \
40 +                       -x $(CONFIG_SYS_NAND_U_BOOT_OFFS) \
41 +                       -p $(CONFIG_SYS_NAND_PAGE_SIZE) \
42 +                       -s $(obj)spl/u-boot-spl.bin -u $< -o $@
43 +
44  $(obj)u-boot.ltq.norspl: $(obj)u-boot.img $(obj)spl/u-boot-spl.bin
45         cat $(obj)spl/u-boot-spl.bin $< > $@
46