f26675182abaada23f6e7da5d64e55dde8cd34c4
[openwrt/openwrt.git] / package / boot / uboot-kirkwood / patches / 200-openwrt-config.patch
1 --- a/arch/arm/mach-kirkwood/Kconfig
2 +++ b/arch/arm/mach-kirkwood/Kconfig
3 @@ -102,4 +102,7 @@ source "board/zyxel/nsa310/Kconfig"
4 source "board/alliedtelesis/SBx81LIFKW/Kconfig"
5 source "board/alliedtelesis/SBx81LIFXCAT/Kconfig"
6
7 +config SECOND_STAGE
8 + bool "OpenWrt second stage hack"
9 +
10 endif
11 --- a/include/configs/dockstar.h
12 +++ b/include/configs/dockstar.h
13 @@ -65,4 +65,6 @@
14 * File system
15 */
16
17 +#include "openwrt-kirkwood-common.h"
18 +
19 #endif /* _CONFIG_DOCKSTAR_H */
20 --- a/include/configs/ib62x0.h
21 +++ b/include/configs/ib62x0.h
22 @@ -85,4 +85,6 @@
23 #define CONFIG_RTC_MV
24 #endif /* CONFIG_CMD_DATE */
25
26 +#include "openwrt-kirkwood-common.h"
27 +
28 #endif /* _CONFIG_IB62x0_H */
29 --- a/include/configs/iconnect.h
30 +++ b/include/configs/iconnect.h
31 @@ -72,4 +72,6 @@
32 * File system
33 */
34
35 +#include "openwrt-kirkwood-common.h"
36 +
37 #endif /* _CONFIG_ICONNECT_H */
38 --- /dev/null
39 +++ b/include/configs/openwrt-kirkwood-common.h
40 @@ -0,0 +1,31 @@
41 +/*
42 + * Copyright (C) 2013 Luka Perkov <luka@openwrt.org>
43 + *
44 + * SPDX-License-Identifier: GPL-2.0+
45 + */
46 +
47 +#ifndef __OPENWRT_KIRKWOOD_COMMON_H
48 +#define __OPENWRT_KIRKWOOD_COMMON_H
49 +
50 +/* Ethernet */
51 +#if defined(CONFIG_CMD_NET)
52 +#define CONFIG_SERVERIP 192.168.1.2
53 +#define CONFIG_IPADDR 192.168.1.1
54 +#endif
55 +
56 +/* second stage loader */
57 +#if defined(CONFIG_SECOND_STAGE)
58 +#undef CONFIG_ENV_IS_IN_NAND
59 +#undef CONFIG_ENV_SECT_SIZE
60 +#define CONFIG_ENV_IS_NOWHERE
61 +#endif
62 +
63 +/* Various */
64 +#define CONFIG_BZIP2
65 +
66 +/* Unnecessary */
67 +#undef CONFIG_BOOTM_NETBSD
68 +#undef CONFIG_BOOTM_PLAN9
69 +#undef CONFIG_BOOTM_RTEMS
70 +
71 +#endif /* __OPENWRT_KIRKWOOD_COMMON_H */
72 --- a/include/configs/pogo_e02.h
73 +++ b/include/configs/pogo_e02.h
74 @@ -72,4 +72,6 @@
75 * File system
76 */
77
78 +#include "openwrt-kirkwood-common.h"
79 +
80 #endif /* _CONFIG_POGO_E02_H */
81 --- a/include/configs/goflexhome.h
82 +++ b/include/configs/goflexhome.h
83 @@ -91,4 +91,6 @@
84 #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
85 #endif /*CONFIG_MVSATA_IDE*/
86
87 +#include "openwrt-kirkwood-common.h"
88 +
89 #endif /* _CONFIG_GOFLEXHOME_H */
90 --- a/include/configs/nsa310.h
91 +++ b/include/configs/nsa310.h
92 @@ -114,4 +114,6 @@
93 #define CONFIG_RTC_MV
94 #endif /* CONFIG_CMD_DATE */
95
96 +#include "openwrt-kirkwood-common.h"
97 +
98 #endif /* _CONFIG_NSA310_H */
99 --- a/configs/dockstar_defconfig
100 +++ b/configs/dockstar_defconfig
101 @@ -31,3 +31,8 @@ CONFIG_USB=y
102 CONFIG_USB=y
103 CONFIG_USB_EHCI_HCD=y
104 CONFIG_USB_STORAGE=y
105 +CONFIG_CMD_BOOTZ=y
106 +CONFIG_FIT=y
107 +CONFIG_FIT_VERBOSE=y
108 +CONFIG_LZMA=y
109 +CONFIG_LZO=y
110 --- a/configs/goflexhome_defconfig
111 +++ b/configs/goflexhome_defconfig
112 @@ -40,3 +40,8 @@ CONFIG_USB=y
113 CONFIG_USB=y
114 CONFIG_USB_EHCI_HCD=y
115 CONFIG_USB_STORAGE=y
116 +CONFIG_CMD_BOOTZ=y
117 +CONFIG_FIT=y
118 +CONFIG_FIT_VERBOSE=y
119 +CONFIG_LZMA=y
120 +CONFIG_LZO=y
121 --- a/configs/ib62x0_defconfig
122 +++ b/configs/ib62x0_defconfig
123 @@ -35,4 +35,7 @@ CONFIG_SYS_NS16550=y
124 CONFIG_USB=y
125 CONFIG_USB_EHCI_HCD=y
126 CONFIG_USB_STORAGE=y
127 -CONFIG_LZMA=y
128 +CONFIG_FIT=y
129 +CONFIG_FIT_VERBOSE=y
130 +CONFIG_LZMA=y
131 +CONFIG_LZO=y
132 --- a/configs/iconnect_defconfig
133 +++ b/configs/iconnect_defconfig
134 @@ -31,4 +31,8 @@ CONFIG_SYS_NS16550=y
135 CONFIG_USB=y
136 CONFIG_USB_EHCI_HCD=y
137 CONFIG_USB_STORAGE=y
138 -CONFIG_LZMA=y
139 +CONFIG_CMD_BOOTZ=y
140 +CONFIG_FIT=y
141 +CONFIG_FIT_VERBOSE=y
142 +CONFIG_LZMA=y
143 +CONFIG_LZO=y
144 --- a/configs/nsa310_defconfig
145 +++ b/configs/nsa310_defconfig
146 @@ -35,6 +35,9 @@ CONFIG_CMD_UBI=y
147 CONFIG_USB=y
148 CONFIG_USB_EHCI_HCD=y
149 CONFIG_USB_STORAGE=y
150 +CONFIG_CMD_BOOTZ=y
151 +CONFIG_FIT=y
152 +CONFIG_FIT_VERBOSE=y
153 CONFIG_LZMA=y
154 CONFIG_LZO=y
155 CONFIG_SYS_LONGHELP=y
156 --- a/configs/pogo_e02_defconfig
157 +++ b/configs/pogo_e02_defconfig
158 @@ -31,3 +31,8 @@ CONFIG_USB=y
159 CONFIG_USB=y
160 CONFIG_USB_EHCI_HCD=y
161 CONFIG_USB_STORAGE=y
162 +CONFIG_CMD_BOOTZ=y
163 +CONFIG_FIT=y
164 +CONFIG_FIT_VERBOSE=y
165 +CONFIG_LZMA=y
166 +CONFIG_LZO=y