Skip to content

Commit

Permalink
UBUNTU: SAUCE: Makefile: Fix compiler warnings
Browse files Browse the repository at this point in the history
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>
Acked-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
  • Loading branch information
Juerg Haefliger authored and Andrea Righi committed Jun 26, 2023
1 parent 3e5b584 commit 1114112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,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 \
Expand Down

0 comments on commit 1114112

Please sign in to comment.