]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commitdiff
Option to choose latest lwIP version from 2.1.x series
authorSimon Kuenzer <simon.kuenzer@neclab.eu>
Fri, 15 Oct 2021 16:35:43 +0000 (18:35 +0200)
committerUnikraft <monkey@unikraft.io>
Fri, 12 Nov 2021 14:56:08 +0000 (15:56 +0100)
Introduces an option to choose latest lwIP version from
the 2.1.x series. This version is based on the latest
official lwIP release and includes further bugfixes and
security fixes. Because we point to a branch head,
recent commits could break compiling. Because of this,
we mark this option as `unofficial`.

Signed-off-by: Simon Kuenzer <simon.kuenzer@neclab.eu>
Reviewed-by: Sergiu Moga <sergiu.moga@protonmail.com>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Pull-Request: #9

Config.uk
Makefile.uk

index 76302459c4bdffb67e55955aa449da48bce170fc..af7bd2e35b1ddb227d945b2d39c9b768c7d87a30 100644 (file)
--- a/Config.uk
+++ b/Config.uk
@@ -7,6 +7,33 @@ menuconfig LIBLWIP
        select HAVE_NW_STACK
 
 if LIBLWIP
+choice
+       prompt "Version"
+       default LWIP_RELEASE212
+       help
+               Select the version of the upstream lwIP stack
+               sources that will be downloaded.
+               Please note that you should run `make properclean`
+               whenever you change the version.
+
+config LWIP_RELEASE212
+       bool "Release 2.1.2"
+       help
+               An official release from the lwIP community.
+
+config LWIP_LATEST21X
+       bool "Latest 2.1.x (unofficial)"
+       help
+               The latest available lwIP version from the 2.1
+               release series that include recent bugfixes and
+               security patches.
+               Please note that there is a little chance that
+               depending on the changes upstream, the Unikraft
+               code could become incompatible. In such a case,
+               we recommend to select a released and officially
+               supported version instead.
+endchoice
+
 menu "Netif drivers"
 config LWIP_UKNETDEV
        bool "Unikraft Netdev Ethernet (libuknetdev)"
index 54a4ed7cb9675d19df728251b70b2219893c7ee3..43df7d633435810b81d7ffa033a11cd7a835c0dc 100644 (file)
@@ -41,10 +41,16 @@ $(eval $(call addlib_s,liblwip,$(CONFIG_LIBLWIP)))
 ################################################################################
 # Sources
 ################################################################################
+ifeq ($(CONFIG_LWIP_LATEST21X),y)
+LIBLWIP_BRANCH=STABLE-2_1_x
+LIBLWIP_ZIPNAME=fork-lwip-$(LIBLWIP_BRANCH)
+LIBLWIP_URL=https://github.com/unikraft/fork-lwip/archive/refs/heads/$(LIBLWIP_BRANCH).zip
+else
 LIBLWIP_TAG=STABLE-2_1_2_RELEASE
 LIBLWIP_ZIPNAME=fork-lwip-$(LIBLWIP_TAG)
 LIBLWIP_URL=https://github.com/unikraft/fork-lwip/archive/refs/tags/$(LIBLWIP_TAG).zip
 LIBLWIP_ORIGIN_SHA256=8f0ae46e2702720ce852b00de5d304adb2809b0203741f299876594bb8be7890
+endif
 
 LIBLWIP_PATCHDIR=$(LIBLWIP_BASE)/patches
 $(eval $(call fetch,liblwip,$(LIBLWIP_URL)))