uboot-lantiq: update to v2013.10
[openwrt/staging/wigyori.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 diff --git a/.gitignore b/.gitignore
9 index 7abdc37..869b1b8 100644
10 --- a/.gitignore
11 +++ b/.gitignore
12 @@ -54,6 +54,9 @@
13 /u-boot.ltq.lzma.norspl
14 /u-boot.ltq.lzo.norspl
15 /u-boot.ltq.norspl
16 +/u-boot.ltq.lzma.nandspl
17 +/u-boot.ltq.lzo.nandspl
18 +/u-boot.ltq.nandspl
19 /u-boot.lzma.img
20 /u-boot.lzo.img
21
22 diff --git a/Makefile b/Makefile
23 index 73ec67d..0445035 100644
24 --- a/Makefile
25 +++ b/Makefile
26 @@ -599,6 +599,24 @@ $(obj)u-boot.ltq.lzma.sfspl: $(obj)u-boot.lzma.img $(obj)spl/u-boot-spl.bin
27 $(obj)tools/ltq-boot-image -t sfspl -e $(CONFIG_SPL_TEXT_BASE) \
28 -s $(obj)spl/u-boot-spl.bin -u $< -o $@
29
30 +$(obj)u-boot.ltq.nandspl: $(obj)u-boot.img $(obj)spl/u-boot-spl.bin
31 + $(obj)tools/ltq-boot-image -t nandspl -e $(CONFIG_SPL_TEXT_BASE) \
32 + -x $(CONFIG_SYS_NAND_U_BOOT_OFFS) \
33 + -p $(CONFIG_SYS_NAND_PAGE_SIZE) \
34 + -s $(obj)spl/u-boot-spl.bin -u $< -o $@
35 +
36 +$(obj)u-boot.ltq.lzo.nandspl: $(obj)u-boot.lzo.img $(obj)spl/u-boot-spl.bin
37 + $(obj)tools/ltq-boot-image -t nandspl -e $(CONFIG_SPL_TEXT_BASE) \
38 + -x $(CONFIG_SYS_NAND_U_BOOT_OFFS) \
39 + -p $(CONFIG_SYS_NAND_PAGE_SIZE) \
40 + -s $(obj)spl/u-boot-spl.bin -u $< -o $@
41 +
42 +$(obj)u-boot.ltq.lzma.nandspl: $(obj)u-boot.lzma.img $(obj)spl/u-boot-spl.bin
43 + $(obj)tools/ltq-boot-image -t nandspl -e $(CONFIG_SPL_TEXT_BASE) \
44 + -x $(CONFIG_SYS_NAND_U_BOOT_OFFS) \
45 + -p $(CONFIG_SYS_NAND_PAGE_SIZE) \
46 + -s $(obj)spl/u-boot-spl.bin -u $< -o $@
47 +
48 $(obj)u-boot.ltq.norspl: $(obj)u-boot.img $(obj)spl/u-boot-spl.bin
49 cat $(obj)spl/u-boot-spl.bin $< > $@
50
51 --
52 1.8.3.2
53