summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJerome Forissier <[email protected]>2024-10-16 12:04:00 +0200
committerTom Rini <[email protected]>2024-10-16 11:11:56 -0600
commit1d5d292b79415abf3d0214cd2f707b43cf9fdfbf (patch)
tree349a83bb8c17c24b19bbfc918b5076afc300ae8e /Makefile
parent8cb330355bd52852f209cf08c1e79babfbdf1253 (diff)
net: split net into net{,-common,-legacy,-lwip}
Make net.h a wrapper which includes net-common.h and either net-legacy.h or net-lwip.h based on NET_LWIP. The function copy_filename() can be useful when NET_LWIP is enabled, therefore move it out of net/net.c which is built only when networking choice is NET and create a new file net/net-common.c. Signed-off-by: Jerome Forissier <[email protected]> Acked-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f203a4f59e0..a2e9435c4f8 100644
--- a/Makefile
+++ b/Makefile
@@ -842,7 +842,9 @@ UBOOTINCLUDE := \
-I$(srctree)/arch/arm/thumb1/include)) \
-I$(srctree)/arch/$(ARCH)/include \
-include $(srctree)/include/linux/kconfig.h \
- -I$(srctree)/dts/upstream/include
+ -I$(srctree)/dts/upstream/include \
+ $(if $(CONFIG_NET_LWIP), -I$(srctree)/lib/lwip/lwip/src/include \
+ -I$(srctree)/lib/lwip/u-boot)
NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)