[linux-tools] 01/02: Build userland headers and add them to the front of the system include path
debian-kernel at lists.debian.org
debian-kernel at lists.debian.org
Thu Aug 13 19:45:54 UTC 2015
This is an automated email from the git hooks/post-receive script.
benh pushed a commit to branch master
in repository linux-tools.
commit 094026e778e9c3a40c36f624e8545a4d9127d6c3
Author: Ben Hutchings <ben at decadent.org.uk>
Date: Thu Aug 13 21:34:08 2015 +0200
Build userland headers and add them to the front of the system include path
This fixes a build failure in tools/hv when the installed
linux-libc-dev is too old.
---
debian/bin/genorig.py | 2 ++
debian/build/Makefile | 10 ++++++++++
debian/build/Makefile.inc | 3 ++-
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/debian/bin/genorig.py b/debian/bin/genorig.py
index a41c5c5..bbb5285 100755
--- a/debian/bin/genorig.py
+++ b/debian/bin/genorig.py
@@ -142,8 +142,10 @@ class Main(object):
'Makefile',
'arch/*/include/',
'arch/*/Makefile',
+ 'arch/x86/syscalls/',
'arch/x86/lib/memcpy_64.S',
'arch/x86/lib/memset_64.S',
+ 'arch/x86/tools/',
'include/',
'lib/hweight.c',
'lib/rbtree.c',
diff --git a/debian/build/Makefile b/debian/build/Makefile
index 970d4e4..329e47e 100644
--- a/debian/build/Makefile
+++ b/debian/build/Makefile
@@ -9,3 +9,13 @@ SUBDIRS = \
OUTDIR = .
include Makefile.inc
+
+# Build userland headers first
+unexport VERSION
+all-local:
+ $(MAKE) -C $(top_srcdir) O=$(CURDIR)/out \
+ INSTALL_HDR_PATH=$(CURDIR) headers_install
+all-recursive: all-local
+
+clean-local::
+ rm -rf generated include out
diff --git a/debian/build/Makefile.inc b/debian/build/Makefile.inc
index 22966b8..414246f 100644
--- a/debian/build/Makefile.inc
+++ b/debian/build/Makefile.inc
@@ -7,7 +7,8 @@ SHELL = /bin/sh -e
CC = gcc
CXX = g++
CFLAGS ?= -O2 -Wall
-CPPFLAGS = -I$(top_srcdir)/$(OUTDIR) -I$(top_srcdir)/debian/build/$(OUTDIR)
+CPPFLAGS = -I$(top_srcdir)/$(OUTDIR) -I$(top_srcdir)/debian/build/$(OUTDIR) \
+ -isystem $(top_srcdir)/debian/build/include
CXXFLAGS = $(CFLAGS)
all: all-local all-recursive
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux-tools.git
More information about the Kernel-svn-changes
mailing list