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 = ...@@ -366,6 +366,12 @@ CFLAGS_KERNEL =
AFLAGS_KERNEL = AFLAGS_KERNEL =
CFLAGS_GCOV = -fprofile-arcs -ftest-coverage 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. # Use USERINCLUDE when you must reference the UAPI directories only.
USERINCLUDE := \ USERINCLUDE := \
...@@ -378,6 +384,7 @@ USERINCLUDE := \ ...@@ -378,6 +384,7 @@ USERINCLUDE := \
# Use LINUXINCLUDE when you must reference the include/ directory. # Use LINUXINCLUDE when you must reference the include/ directory.
# Needed to be compatible with the O= option # Needed to be compatible with the O= option
LINUXINCLUDE := \ LINUXINCLUDE := \
$(UBUNTUINCLUDE) \
-I$(srctree)/arch/$(hdr-arch)/include \ -I$(srctree)/arch/$(hdr-arch)/include \
-Iarch/$(hdr-arch)/include/generated/uapi \ -Iarch/$(hdr-arch)/include/generated/uapi \
-Iarch/$(hdr-arch)/include/generated \ -Iarch/$(hdr-arch)/include/generated \
...@@ -385,6 +392,9 @@ LINUXINCLUDE := \ ...@@ -385,6 +392,9 @@ LINUXINCLUDE := \
-Iinclude \ -Iinclude \
$(USERINCLUDE) $(USERINCLUDE)
# UBUNTU: Include our third party driver stuff too
LINUXINCLUDE += -Iubuntu/include $(if $(KBUILD_SRC),-I$(srctree)/ubuntu/include)
KBUILD_CPPFLAGS := -D__KERNEL__ KBUILD_CPPFLAGS := -D__KERNEL__
KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
...@@ -546,7 +556,7 @@ scripts: scripts_basic include/config/auto.conf include/config/tristate.conf \ ...@@ -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 # Objects we will link into vmlinux / subdirs we need to visit
init-y := init/ init-y := init/
drivers-y := drivers/ sound/ firmware/ drivers-y := drivers/ sound/ firmware/ ubuntu/
net-y := net/ net-y := net/
libs-y := lib/ libs-y := lib/
core-y := usr/ core-y := usr/
......
...@@ -2154,6 +2154,7 @@ source "net/Kconfig" ...@@ -2154,6 +2154,7 @@ source "net/Kconfig"
source "drivers/Kconfig" source "drivers/Kconfig"
source "drivers/firmware/Kconfig" source "drivers/firmware/Kconfig"
source "ubuntu/Kconfig"
source "fs/Kconfig" source "fs/Kconfig"
......
...@@ -1072,6 +1072,8 @@ source "net/Kconfig" ...@@ -1072,6 +1072,8 @@ source "net/Kconfig"
source "drivers/Kconfig" source "drivers/Kconfig"
source "ubuntu/Kconfig"
source "fs/Kconfig" source "fs/Kconfig"
source "arch/powerpc/sysdev/qe_lib/Kconfig" source "arch/powerpc/sysdev/qe_lib/Kconfig"
......
...@@ -2669,6 +2669,8 @@ source "net/Kconfig" ...@@ -2669,6 +2669,8 @@ source "net/Kconfig"
source "drivers/Kconfig" source "drivers/Kconfig"
source "ubuntu/Kconfig"
source "drivers/firmware/Kconfig" source "drivers/firmware/Kconfig"
source "fs/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