Skip to content

Commit

Permalink
lwip: fix library make rules
Browse files Browse the repository at this point in the history
 - Remove unneeded include in Makefile.app
 - Add necessary Makefile.setup for submodule checkout
  • Loading branch information
ppannuto committed Mar 5, 2025
1 parent 55d5027 commit deb8651
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lwip/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $(LIBNAME)_SRCS := $(LWIPNOAPPSFILES) $(LWIPAPPFILES)
override CPPFLAGS += -I$(lwip_DIR)/include -I$(lwip_DIR)/include/lwip

# Avoid failing in CI due to warnings in the library.
override CPPFLAGS_$(LIBNAME) += -Wno-error
override CPPFLAGS_$(LIBNAME) += -Wno-error

# Include the rules to build the library.
include $(TOCK_USERLAND_BASE_DIR)/TockLibrary.mk
4 changes: 1 addition & 3 deletions lwip/Makefile.app
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
include $(TOCK_USERLAND_BASE_DIR)/lwip/Makefile

override CPPFLAGS += -I$(lwip_DIR)/lwip/src/include
override CPPFLAGS += -I$(lwip_DIR)/lwip/src/include
8 changes: 8 additions & 0 deletions lwip/Makefile.setup
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
TOCK_USERLAND_BASE_DIR ?= ..

$(TOCK_USERLAND_BASE_DIR)/lwip/lwip/README:
git submodule init $(TOCK_USERLAND_BASE_DIR)/lwip/lwip
git submodule update $(TOCK_USERLAND_BASE_DIR)/lwip/lwip

# Any sentinel file which lets us know if submodule is checked out
all: | $(TOCK_USERLAND_BASE_DIR)/lwip/lwip/README

0 comments on commit deb8651

Please sign in to comment.