[package] uboot-kirkwood: update to 2013.10
[openwrt.git] / package / boot / uboot-kirkwood / patches / 200-openwrt-config.patch
1 --- a/include/configs/dockstar.h
2 +++ b/include/configs/dockstar.h
3 @@ -114,4 +114,6 @@
4  #define CONFIG_CMD_MTDPARTS
5  #define CONFIG_LZO
6  
7 +#include "openwrt-kirkwood-common.h"
8 +
9  #endif /* _CONFIG_DOCKSTAR_H */
10 --- a/include/configs/ib62x0.h
11 +++ b/include/configs/ib62x0.h
12 @@ -144,4 +144,6 @@
13  #define CONFIG_MTD_PARTITIONS
14  #define CONFIG_CMD_MTDPARTS
15  
16 +#include "openwrt-kirkwood-common.h"
17 +
18  #endif /* _CONFIG_IB62x0_H */
19 --- a/include/configs/iconnect.h
20 +++ b/include/configs/iconnect.h
21 @@ -117,4 +117,6 @@
22  #define CONFIG_MTD_PARTITIONS
23  #define CONFIG_CMD_MTDPARTS
24  
25 +#include "openwrt-kirkwood-common.h"
26 +
27  #endif /* _CONFIG_ICONNECT_H */
28 --- /dev/null
29 +++ b/include/configs/openwrt-kirkwood-common.h
30 @@ -0,0 +1,52 @@
31 +/*
32 + * Copyright (C) 2013 Luka Perkov <luka@openwrt.org>
33 + *
34 + * SPDX-License-Identifier:    GPL-2.0+
35 + */
36 +
37 +#ifndef __OPENWRT_KIRKWOOD_COMMON_H
38 +#define __OPENWRT_KIRKWOOD_COMMON_H
39 +
40 +/* Commands */
41 +#define CONFIG_CMD_BOOTZ
42 +
43 +#if defined(CONFIG_CMD_NET)
44 +#define CONFIG_CMD_DHCP
45 +#define CONFIG_CMD_PING
46 +#endif
47 +
48 +/* Auto boot */
49 +#undef CONFIG_BOOTDELAY
50 +#define CONFIG_BOOTDELAY       3
51 +
52 +/* Ethernet */
53 +#if defined(CONFIG_CMD_NET)
54 +#define CONFIG_SERVERIP                192.168.1.2
55 +#define CONFIG_IPADDR          192.168.1.1
56 +#endif
57 +
58 +/* second stage loader */
59 +#if defined(CONFIG_SECOND_STAGE)
60 +#undef CONFIG_ENV_IS_IN_NAND
61 +#undef CONFIG_ENV_SECT_SIZE
62 +#define CONFIG_ENV_IS_NOWHERE
63 +#endif
64 +
65 +/* Flattened Device Tree */
66 +#define CONFIG_OF_LIBFDT
67 +
68 +/* Flattened uImage Tree */
69 +#define CONFIG_FIT
70 +#define CONFIG_FIT_VERBOSE
71 +
72 +/* Various */
73 +#define CONFIG_BZIP2
74 +#define CONFIG_LZMA
75 +#define CONFIG_LZO
76 +
77 +/* Unnecessary */
78 +#undef CONFIG_BOOTM_NETBSD
79 +#undef CONFIG_BOOTM_PLAN9
80 +#undef CONFIG_BOOTM_RTEMS
81 +
82 +#endif /* __OPENWRT_KIRKWOOD_COMMON_H */
83 --- a/include/configs/pogo_e02.h
84 +++ b/include/configs/pogo_e02.h
85 @@ -102,4 +102,6 @@
86  #define CONFIG_CMD_MTDPARTS
87  #define CONFIG_LZO
88  
89 +#include "openwrt-kirkwood-common.h"
90 +
91  #endif /* _CONFIG_POGO_E02_H */
92 --- a/include/configs/sheevaplug.h
93 +++ b/include/configs/sheevaplug.h
94 @@ -95,4 +95,6 @@
95  #define CONFIG_CMD_MTDPARTS
96  #define CONFIG_LZO
97  
98 +#include "openwrt-kirkwood-common.h"
99 +
100  #endif /* _CONFIG_SHEEVAPLUG_H */