1f5dd84107813c3087c13a8e1891946c1fc74d5e
[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 @@ -78,4 +78,7 @@ source "board/Seagate/nas220/Kconfig"
4 source "board/zyxel/nsa310/Kconfig"
5 source "board/zyxel/nsa310s/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 @@ -98,4 +98,6 @@
14 #define CONFIG_CMD_MTDPARTS
15 #define CONFIG_LZO
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 @@ -108,4 +108,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 @@ -103,4 +103,6 @@
32 #define CONFIG_MTD_PARTITIONS
33 #define CONFIG_CMD_MTDPARTS
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,40 @@
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 +/* Commands */
51 +#define CONFIG_CMD_BOOTZ
52 +
53 +/* Ethernet */
54 +#if defined(CONFIG_CMD_NET)
55 +#define CONFIG_SERVERIP 192.168.1.2
56 +#define CONFIG_IPADDR 192.168.1.1
57 +#endif
58 +
59 +/* second stage loader */
60 +#if defined(CONFIG_SECOND_STAGE)
61 +#undef CONFIG_ENV_IS_IN_NAND
62 +#undef CONFIG_ENV_SECT_SIZE
63 +#define CONFIG_ENV_IS_NOWHERE
64 +#endif
65 +
66 +/* Flattened uImage Tree */
67 +#define CONFIG_FIT 1
68 +#define CONFIG_FIT_VERBOSE 1
69 +
70 +/* Various */
71 +#define CONFIG_BZIP2
72 +#define CONFIG_LZMA
73 +#define CONFIG_LZO
74 +
75 +/* Unnecessary */
76 +#undef CONFIG_BOOTM_NETBSD
77 +#undef CONFIG_BOOTM_PLAN9
78 +#undef CONFIG_BOOTM_RTEMS
79 +
80 +#endif /* __OPENWRT_KIRKWOOD_COMMON_H */
81 --- a/include/configs/pogo_e02.h
82 +++ b/include/configs/pogo_e02.h
83 @@ -99,4 +99,6 @@
84 #define CONFIG_CMD_MTDPARTS
85 #define CONFIG_LZO
86
87 +#include "openwrt-kirkwood-common.h"
88 +
89 #endif /* _CONFIG_POGO_E02_H */
90 --- a/include/configs/sheevaplug.h
91 +++ b/include/configs/sheevaplug.h
92 @@ -109,4 +109,6 @@
93 #define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
94 #endif /* CONFIG_CMD_IDE */
95
96 +#include "openwrt-kirkwood-common.h"
97 +
98 #endif /* _CONFIG_SHEEVAPLUG_H */
99 --- a/include/configs/goflexhome.h
100 +++ b/include/configs/goflexhome.h
101 @@ -122,4 +122,6 @@
102 #define CONFIG_RTC_MV
103 #endif /* CONFIG_CMD_DATE */
104
105 +#include "openwrt-kirkwood-common.h"
106 +
107 #endif /* _CONFIG_GOFLEXHOME_H */
108 --- a/include/configs/nsa310.h
109 +++ b/include/configs/nsa310.h
110 @@ -166,4 +166,6 @@
111 #define CONFIG_CMD_DNS
112 #endif /* CONFIG_CMD_DATE */
113
114 +#include "openwrt-kirkwood-common.h"
115 +
116 #endif /* _CONFIG_NSA310_H */