diff mbox series

[SRU,J,devel,2/2] UBUNTU: SAUCE: Makefile: Fix compiler warnings

Message ID 20220214102936.80935-3-juergh@canonical.com
State New
Headers show
Series Makefile: Cleanup Ubuntu modifications | expand

Commit Message

Juerg Haefliger Feb. 14, 2022, 10:29 a.m. UTC
When building out-of-tree (which we do for package builds), the compiler
emits the following warning:

cc1: warning: ubuntu/include: No such file or directory [-Wmissing-include-dirs]

Fix that by (always) using the absolute path of the include directory.

Signed-off-by: Juerg Haefliger <juergh@canonical.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index db3d9c4a5f58..aca426cc63ba 100644
--- a/Makefile
+++ b/Makefile
@@ -509,7 +509,7 @@  LINUXINCLUDE    := \
 		$(USERINCLUDE)
 
 # UBUNTU: Include our third party driver stuff too
-LINUXINCLUDE   += -Iubuntu/include $(if $(KBUILD_SRC),-I$(srctree)/ubuntu/include)
+LINUXINCLUDE   += -I$(srctree)/ubuntu/include
 
 KBUILD_AFLAGS   := -D__ASSEMBLY__ -fno-PIE
 KBUILD_CFLAGS   := -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs \