
On 5/23/24 17:02, Tom Rini wrote:
On Wed, May 22, 2024 at 06:00:02PM +0200, Jerome Forissier wrote:
Import the Lightweight IP (lwIP) library as lib/lwip. The code is built when CONFIG_NET_LWIP=y.
The lwIP code was imported with the following commands:
(cd /tmp && git clone https://git.savannah.gnu.org/git/lwip.git -b STABLE-2_2_0_RELEASE) mkdir -p lib/lwip cp -R /tmp/lwip/src/{api,core,include} lib/lwip/ mkdir -p lib/lwip/netif && cp /tmp/lwip/src/netif/ethernet.c lib/lwip/netif/ mkdir -p lib/lwip/apps/tftp && cp /tmp/lwip/src/apps/tftp/tftp.c lib/lwip/apps/tftp/ mkdir -p lib/lwip/apps/http && cp /tmp/lwip/src/apps/http/http_client.c lib/lwip/apps/http/
The list of object files added to lib/liwip/Makefile was given by:
(cd lib/lwip && find . -name *.c | sort | sed 's@./@\t@' | sed 's/.c$/.o \/') >>lib/liwip/Makefile
These files are adaptation layers written specially for U-Boot:
lib/lwip/u-boot/arch/cc.h lib/lwip/u-boot/arch/sys_arch.h (empty) lib/lwip/u-boot/limits.h (empty) lib/lwip/u-boot/lwipopts.h
They were initially contributed by Maxim in a previous RFC patch series.
Signed-off-by: Jerome Forissier jerome.forissier@linaro.org Co-developed-by: Maxim Uvarov muvarov@gmail.com Cc: Maxim Uvarov muvarov@gmail.com
As I believe I've said before, this needs to be a subtree moving forward.
Done in upcoming v2. TBH I don't quite like it because (1) it introduces a merge commit, (2) interactive rebase becomes difficult (I had to pass --rebase-merges or the rebase will fail), and (3) I found no way to record the command I used in the patch description. FYI the command was: git subtree add --squash --prefix lib/lwip/lwip \ https://git.savannah.gnu.org/git/lwip.git STABLE-2_2_0_RELEASE
Thanks,