From 3df75f9e3298300be3fbc17e68b7d29be6573f75 Mon Sep 17 00:00:00 2001 From: "Man, Jianting (Meco)" <920369182@qq.com> Date: Sun, 13 Mar 2022 21:13:04 -0400 Subject: [lwip] add lwip latest version (#5629) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [lwip] 增加LWIP上游同步版本 * move pkgs to package repo * add RT_USING_LWIP_LOCAL_VERSION to let users to decide whether can use upstream version of LwIP * Update Kconfig --- components/net/lwip/Kconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'components') diff --git a/components/net/lwip/Kconfig b/components/net/lwip/Kconfig index 2566870d6e..42b48f4413 100644 --- a/components/net/lwip/Kconfig +++ b/components/net/lwip/Kconfig @@ -5,6 +5,13 @@ menuconfig RT_USING_LWIP default n if RT_USING_LWIP + config RT_USING_LWIP_LOCAL_VERSION + bool "Use LwIP local version only" + default n + help + If don't select this option, both local version and upstream + version can be selected. If select this option, only local version + can be selected. choice prompt "lwIP version" default RT_USING_LWIP203 @@ -20,10 +27,17 @@ if RT_USING_LWIP config RT_USING_LWIP212 bool "lwIP v2.1.2" + # online version + if !RT_USING_LWIP_LOCAL_VERSION + config RT_USING_LWIP_LATEST + bool "lwIP latest" + select PKG_USING_LWIP + endif endchoice config RT_USING_LWIP_VER_NUM hex + default 0x99999 if RT_USING_LWIP_LATEST default 0x20102 if RT_USING_LWIP212 default 0x20003 if RT_USING_LWIP203 default 0x10401 if RT_USING_LWIP141 -- cgit v1.3.1 From 46d09e045eb767bf59452dd02dec93c65d30d345 Mon Sep 17 00:00:00 2001 From: LiuKang <44889940+liukangcc@users.noreply.github.com> Date: Mon, 14 Mar 2022 09:14:09 +0800 Subject: [update] remove extra code. (#5663) --- components/finsh/cmd.c | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'components') diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c index 215300f20d..8fd03e3126 100644 --- a/components/finsh/cmd.c +++ b/components/finsh/cmd.c @@ -40,14 +40,6 @@ #define LIST_FIND_OBJ_NR 8 -long hello(void) -{ - rt_kprintf("Hello RT-Thread!\n"); - - return 0; -} -MSH_CMD_EXPORT(hello, say hello world); - static long clear(void) { rt_kprintf("\x1b[2J\x1b[H"); @@ -886,28 +878,4 @@ long list_device(void) MSH_CMD_EXPORT(list_device, list device in system); #endif -long list(void) -{ - rt_kprintf("--Commands List:\n"); - { - struct finsh_syscall *index; - for (index = _syscall_table_begin; - index < _syscall_table_end; - FINSH_NEXT_SYSCALL(index)) - { - /* skip the internal command */ - if (strncmp((char *)index->name, "__", 2) == 0) continue; - -#if defined(FINSH_USING_DESCRIPTION) && defined(FINSH_USING_SYMTAB) - rt_kprintf("%-16s -- %s\n", index->name, index->desc); -#else - rt_kprintf("%s\n", index->name); -#endif - } - } - - return 0; -} -MSH_CMD_EXPORT(list, list all commands in system) - #endif /* RT_USING_FINSH */ -- cgit v1.3.1