Commit 78e18f34 authored by Leann Ogasawara's avatar Leann Ogasawara Committed by Tim Gardner

UBUNTU: [Debian] Prep for Ubuntu build infrastructure

Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
parent 83a8ae12
......@@ -366,6 +366,12 @@ CFLAGS_KERNEL =
AFLAGS_KERNEL =
CFLAGS_GCOV = -fprofile-arcs -ftest-coverage
# Prefer linux-backports-modules
ifneq ($(KBUILD_SRC),)
ifneq ($(shell if test -e $(KBUILD_OUTPUT)/ubuntu-build; then echo yes; fi),yes)
UBUNTUINCLUDE := -I/usr/src/linux-headers-lbm-$(KERNELRELEASE)
endif
endif
# Use USERINCLUDE when you must reference the UAPI directories only.
USERINCLUDE := \
......@@ -378,6 +384,7 @@ USERINCLUDE := \
# Use LINUXINCLUDE when you must reference the include/ directory.
# Needed to be compatible with the O= option
LINUXINCLUDE := \
$(UBUNTUINCLUDE) \
-I$(srctree)/arch/$(hdr-arch)/include \
-Iarch/$(hdr-arch)/include/generated/uapi \
-Iarch/$(hdr-arch)/include/generated \
......@@ -385,6 +392,9 @@ LINUXINCLUDE := \
-Iinclude \
$(USERINCLUDE)
# UBUNTU: Include our third party driver stuff too
LINUXINCLUDE += -Iubuntu/include $(if $(KBUILD_SRC),-I$(srctree)/ubuntu/include)
KBUILD_CPPFLAGS := -D__KERNEL__
KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
......@@ -546,7 +556,7 @@ scripts: scripts_basic include/config/auto.conf include/config/tristate.conf \
# Objects we will link into vmlinux / subdirs we need to visit
init-y := init/
drivers-y := drivers/ sound/ firmware/
drivers-y := drivers/ sound/ firmware/ ubuntu/
net-y := net/
libs-y := lib/
core-y := usr/
......
......@@ -2154,6 +2154,7 @@ source "net/Kconfig"
source "drivers/Kconfig"
source "drivers/firmware/Kconfig"
source "ubuntu/Kconfig"
source "fs/Kconfig"
......
......@@ -1072,6 +1072,8 @@ source "net/Kconfig"
source "drivers/Kconfig"
source "ubuntu/Kconfig"
source "fs/Kconfig"
source "arch/powerpc/sysdev/qe_lib/Kconfig"
......
......@@ -2669,6 +2669,8 @@ source "net/Kconfig"
source "drivers/Kconfig"
source "ubuntu/Kconfig"
source "drivers/firmware/Kconfig"
source "fs/Kconfig"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment