summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbernard <[email protected]>2017-10-31 09:54:23 +0800
committerbernard <[email protected]>2017-10-31 09:54:23 +0800
commit756bfcc5e2ec03cc01e4bb0b73969ba16c44c875 (patch)
tree9a4fa7afba2e6cdbc84243459ebb18c08c4ccefe
parentbc2abf69e2677f5c5591ef7d5a9633f6a1661839 (diff)
Update Kconfig.
1. Add IPADDR/GWADDR etc; 2. Add Kconfig for libcpu.
-rw-r--r--KConfig1
-rw-r--r--components/net/KConfig14
-rw-r--r--libcpu/Kconfig75
3 files changed, 90 insertions, 0 deletions
diff --git a/KConfig b/KConfig
index ac17c10708..506c20ff58 100644
--- a/KConfig
+++ b/KConfig
@@ -1,2 +1,3 @@
source "$RTT_DIR/src/KConfig"
+source "$RTT_DIR/libcpu/Kconfig"
source "$RTT_DIR/components/KConfig"
diff --git a/components/net/KConfig b/components/net/KConfig
index c52c12f7d3..cd758cd33a 100644
--- a/components/net/KConfig
+++ b/components/net/KConfig
@@ -55,6 +55,20 @@ config RT_USING_LWIP
default n
endif
+ if !RT_LWIP_DHCP
+ config RT_LWIP_IPADDR
+ string "IPv4: IP address"
+ default 192.168.1.30
+
+ config RT_LWIP_GWADDR
+ string "IPv4: Gateway address"
+ default 192.168.1.1
+
+ config RT_LWIP_MSKADDR
+ string "IPv4: Mask address"
+ default 255.255.255.0
+ endif
+
config RT_LWIP_UDP
bool "UDP protocol"
default y
diff --git a/libcpu/Kconfig b/libcpu/Kconfig
new file mode 100644
index 0000000000..0358141576
--- /dev/null
+++ b/libcpu/Kconfig
@@ -0,0 +1,75 @@
+config ARCH_ARM
+ bool
+
+config ARCH_ARM_CORTEX_M
+ bool
+ select ARCH_ARM
+
+config ARCH_ARM_CORTEX_M0
+ bool
+ select ARCH_ARM_CORTEX_M
+
+config ARCH_ARM_CORTEX_M3
+ bool
+ select ARCH_ARM_CORTEX_M
+
+config ARCH_ARM_MPU
+ bool
+ depends on ARCH_ARM
+
+config ARCH_ARM_CORTEX_M4
+ bool
+ select ARCH_ARM_CORTEX_M
+
+config ARCH_ARM_CORTEX_M7
+ bool
+ select ARCH_ARM_CORTEX_M
+
+config ARCH_ARM_CORTEX_R
+ bool
+ select ARCH_ARM
+
+config ARCH_ARM_MMU
+ bool
+ depends on ARCH_ARM
+
+config ARCH_ARM_CORTEX_A5
+ bool
+ select ARCH_ARM
+
+config ARCH_ARM_CORTEX_A7
+ bool
+ select ARCH_ARM
+
+config ARCH_ARM_CORTEX_A8
+ bool
+ select ARCH_ARM
+
+config ARCH_ARM_CORTEX_A9
+ bool
+ select ARCH_ARM
+
+config ARCH_MIPS
+ bool
+
+config ARCH_MIPS_XBURST
+ bool
+ select ARCH_MIPS
+
+config ARCH_ANDES
+ bool
+
+config ARCH_CSKY
+ bool
+
+config ARCH_POWERPC
+ bool
+
+config ARCH_RISCV
+ bool
+
+config ARCH_IA32
+ bool
+
+config ARCH_HOST_SIMULATOR
+ bool