1 --- a/arch/arm/mach-kirkwood/Kconfig
2 +++ b/arch/arm/mach-kirkwood/Kconfig
3 @@ -74,4 +74,7 @@ source "board/Seagate/goflexhome/Kconfig
4 source "board/Seagate/nas220/Kconfig"
5 source "board/zyxel/nsa310s/Kconfig"
8 + bool "OpenWrt second stage hack"
11 --- a/include/configs/dockstar.h
12 +++ b/include/configs/dockstar.h
14 #define CONFIG_CMD_MTDPARTS
17 +#include "openwrt-kirkwood-common.h"
19 #endif /* _CONFIG_DOCKSTAR_H */
20 --- a/include/configs/ib62x0.h
21 +++ b/include/configs/ib62x0.h
24 #endif /* CONFIG_CMD_DATE */
26 +#include "openwrt-kirkwood-common.h"
28 #endif /* _CONFIG_IB62x0_H */
29 --- a/include/configs/iconnect.h
30 +++ b/include/configs/iconnect.h
32 #define CONFIG_MTD_PARTITIONS
33 #define CONFIG_CMD_MTDPARTS
35 +#include "openwrt-kirkwood-common.h"
37 #endif /* _CONFIG_ICONNECT_H */
39 +++ b/include/configs/openwrt-kirkwood-common.h
42 + * Copyright (C) 2013 Luka Perkov <luka@openwrt.org>
44 + * SPDX-License-Identifier: GPL-2.0+
47 +#ifndef __OPENWRT_KIRKWOOD_COMMON_H
48 +#define __OPENWRT_KIRKWOOD_COMMON_H
51 +#define CONFIG_CMD_BOOTZ
54 +#if defined(CONFIG_CMD_NET)
55 +#define CONFIG_SERVERIP 192.168.1.2
56 +#define CONFIG_IPADDR 192.168.1.1
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
66 +/* Flattened uImage Tree */
68 +#define CONFIG_FIT_VERBOSE 1
76 +#undef CONFIG_BOOTM_NETBSD
77 +#undef CONFIG_BOOTM_PLAN9
78 +#undef CONFIG_BOOTM_RTEMS
80 +#endif /* __OPENWRT_KIRKWOOD_COMMON_H */
81 --- a/include/configs/pogo_e02.h
82 +++ b/include/configs/pogo_e02.h
84 #define CONFIG_CMD_MTDPARTS
87 +#include "openwrt-kirkwood-common.h"
89 #endif /* _CONFIG_POGO_E02_H */
90 --- a/include/configs/sheevaplug.h
91 +++ b/include/configs/sheevaplug.h
93 #define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
94 #endif /* CONFIG_CMD_IDE */
96 +#include "openwrt-kirkwood-common.h"
98 #endif /* _CONFIG_SHEEVAPLUG_H */
99 --- a/include/configs/goflexhome.h
100 +++ b/include/configs/goflexhome.h
102 #define CONFIG_RTC_MV
103 #endif /* CONFIG_CMD_DATE */
105 +#include "openwrt-kirkwood-common.h"
107 #endif /* _CONFIG_GOFLEXHOME_H */