From 89fb5eb32f9a62fb029b594ec4189563aa87aab7 Mon Sep 17 00:00:00 2001 From: Zbigniew Bodek Date: Fri, 9 Oct 2020 17:19:21 +0800 Subject: [PATCH] Fix build when NET_LWIP_SACK is disabled Allows to disable NET_LWIP_SACK in the kernel configuration. Signed-off-by: Zbigniew Bodek Change-Id: Ibcde4a811e67d61bc713d405414c4991cbc1bdd3 --- syscall/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/syscall/Makefile b/syscall/Makefile index 622ccc28..bb32fe6e 100644 --- a/syscall/Makefile +++ b/syscall/Makefile @@ -33,6 +33,10 @@ MODULE_NAME := $(notdir $(shell pwd)) LOCAL_SRCS := $(wildcard *.c) +ifneq ($(LOSCFG_NET_LWIP_SACK), y) +LOCAL_SRCS := $(filter-out net_syscall.c, $(LOCAL_SRCS)) +endif + LOCAL_INCLUDE := -I $(LITEOSTOPDIR)/kernel/base/include \ -I $(LITEOSTOPDIR)/kernel/extended/dynload/include \ -I $(LITEOSTOPDIR)/fs/include \