]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
UBUNTU: [Debian] Prep for Ubuntu build infrastructure
authorLeann Ogasawara <leann.ogasawara@canonical.com>
Sat, 13 Mar 2010 01:13:25 +0000 (17:13 -0800)
committerTim Gardner <tim.gardner@canonical.com>
Fri, 26 Feb 2016 02:44:02 +0000 (19:44 -0700)
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Makefile
arch/arm/Kconfig
arch/powerpc/Kconfig
arch/x86/Kconfig

index 802be10c40c5ac7a0952da9b2c04411c219a18d9..dfe4a9f18bb53600b297c0511680af968dc20195 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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/
index 34e1569a11ee322a0a020bdfe0c9b801b6b58c12..ac1bd29368468bd4ddd9bafeba721dbc56ff44ee 100644 (file)
@@ -2154,6 +2154,7 @@ source "net/Kconfig"
 source "drivers/Kconfig"
 
 source "drivers/firmware/Kconfig"
+source "ubuntu/Kconfig"
 
 source "fs/Kconfig"
 
index db49e0d796b1bf50642365aa92d63c5a83a07320..38220c197c660f41b2a72340b187cd984a9b59f4 100644 (file)
@@ -1072,6 +1072,8 @@ source "net/Kconfig"
 
 source "drivers/Kconfig"
 
+source "ubuntu/Kconfig"
+
 source "fs/Kconfig"
 
 source "arch/powerpc/sysdev/qe_lib/Kconfig"
index db3622f22b618303a8bc9c3c2f34762f400dbafb..03ef954bf2763ccbc3027db9d174c68c04658e8b 100644 (file)
@@ -2669,6 +2669,8 @@ source "net/Kconfig"
 
 source "drivers/Kconfig"
 
+source "ubuntu/Kconfig"
+
 source "drivers/firmware/Kconfig"
 
 source "fs/Kconfig"