1
0
Эх сурвалжийг харах

Update Kconfig.

1. Add IPADDR/GWADDR etc;
2. Add Kconfig for libcpu.
bernard 7 жил өмнө
parent
commit
756bfcc5e2
3 өөрчлөгдсөн 90 нэмэгдсэн , 0 устгасан
  1. 1 0
      KConfig
  2. 14 0
      components/net/KConfig
  3. 75 0
      libcpu/Kconfig

+ 1 - 0
KConfig

@@ -1,2 +1,3 @@
 source "$RTT_DIR/src/KConfig"
+source "$RTT_DIR/libcpu/Kconfig"
 source "$RTT_DIR/components/KConfig"

+ 14 - 0
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

+ 75 - 0
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