[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1288271950-17539-1-git-send-email-kirill@shutemov.name>
Date: Thu, 28 Oct 2010 16:19:10 +0300
From: "Kirill A. Shutsemov" <kirill@...temov.name>
To: Sam Ravnborg <sam@...nborg.org>,
David Woodhouse <dwmw2@...radead.org>
Cc: Michal Marek <mmarek@...e.cz>, linux-kbuild@...r.kernel.org,
linux-kernel@...r.kernel.org,
"Kirill A. Shutemov" <kirill@...temov.name>
Subject: [PATCH] kbuild: do not remove a.out kvm.h and kvm_para.h on headers_install_all
From: Kirill A. Shutemov <kirill@...temov.name>
We really want to keep these headers if we want to get headers for all
architectures.
Signed-off-by: Kirill A. Shutemov <kirill@...temov.name>
---
include/linux/Kbuild | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/include/linux/Kbuild b/include/linux/Kbuild
index 831c463..8be1246 100644
--- a/include/linux/Kbuild
+++ b/include/linux/Kbuild
@@ -19,15 +19,17 @@ header-y += wimax/
objhdr-y += version.h
-ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/a.out.h \
+# KBUILD_HEADERS is needed to avoid removing these headers on headers_install_all
+
+ifneq ($(KBUILD_HEADERS)$(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/a.out.h \
$(srctree)/include/asm-$(SRCARCH)/a.out.h),)
header-y += a.out.h
endif
-ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm.h \
+ifneq ($(KBUILD_HEADERS)$(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm.h \
$(srctree)/include/asm-$(SRCARCH)/kvm.h),)
header-y += kvm.h
endif
-ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm_para.h \
+ifneq ($(KBUILD_HEADERS)$(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm_para.h \
$(srctree)/include/asm-$(SRCARCH)/kvm_para.h),)
header-y += kvm_para.h
endif
--
1.7.3.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists