diff options
author | Khem Raj <raj.khem@gmail.com> | 2008-09-05 02:11:01 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2008-09-05 10:44:31 -0400 |
commit | afbc8d8e72daa5a5faf6a0242186bdfcc42b2427 (patch) | |
tree | 8d3c699c56daffdaa1d18507f23044fb7b9fd36f /include | |
parent | 076c7f4c6c55c37975c8e04ae6827267794d5d2e (diff) |
Fix conditional export of kvh.h and a.out.h to userspace.
Some architectures have moved the asm/ into arch/ and some have not.
This patch checks for a.out.h and kvh.h in both places before exporting
the corresponding file from linux/
[dwmw2: simplified a little]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-generic/Kbuild.asm | 6 | ||||
-rw-r--r-- | include/linux/Kbuild | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/include/asm-generic/Kbuild.asm b/include/asm-generic/Kbuild.asm index 1170dc60e638..1870d5e05f1c 100644 --- a/include/asm-generic/Kbuild.asm +++ b/include/asm-generic/Kbuild.asm | |||
@@ -1,8 +1,10 @@ | |||
1 | ifneq ($(wildcard $(srctree)/include/asm-$(SRCARCH)/kvm.h),) | 1 | ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm.h \ |
2 | $(srctree)/include/asm-$(SRCARCH)/kvm.h),) | ||
2 | header-y += kvm.h | 3 | header-y += kvm.h |
3 | endif | 4 | endif |
4 | 5 | ||
5 | ifneq ($(wildcard $(srctree)/include/asm-$(SRCARCH)/a.out.h),) | 6 | ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/a.out.h \ |
7 | $(srctree)/include/asm-$(SRCARCH)/a.out.h),) | ||
6 | unifdef-y += a.out.h | 8 | unifdef-y += a.out.h |
7 | endif | 9 | endif |
8 | unifdef-y += auxvec.h | 10 | unifdef-y += auxvec.h |
diff --git a/include/linux/Kbuild b/include/linux/Kbuild index 59391250d51c..b68ec09399be 100644 --- a/include/linux/Kbuild +++ b/include/linux/Kbuild | |||
@@ -167,7 +167,8 @@ unifdef-y += acct.h | |||
167 | unifdef-y += adb.h | 167 | unifdef-y += adb.h |
168 | unifdef-y += adfs_fs.h | 168 | unifdef-y += adfs_fs.h |
169 | unifdef-y += agpgart.h | 169 | unifdef-y += agpgart.h |
170 | ifneq ($(wildcard $(srctree)/include/asm-$(SRCARCH)/a.out.h),) | 170 | ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/a.out.h \ |
171 | $(srctree)/include/asm-$(SRCARCH)/a.out.h),) | ||
171 | unifdef-y += a.out.h | 172 | unifdef-y += a.out.h |
172 | endif | 173 | endif |
173 | unifdef-y += apm_bios.h | 174 | unifdef-y += apm_bios.h |
@@ -258,7 +259,8 @@ unifdef-y += kd.h | |||
258 | unifdef-y += kernelcapi.h | 259 | unifdef-y += kernelcapi.h |
259 | unifdef-y += kernel.h | 260 | unifdef-y += kernel.h |
260 | unifdef-y += keyboard.h | 261 | unifdef-y += keyboard.h |
261 | ifneq ($(wildcard $(srctree)/include/asm-$(SRCARCH)/kvm.h),) | 262 | ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm.h \ |
263 | $(srctree)/include/asm-$(SRCARCH)/kvm.h),) | ||
262 | unifdef-y += kvm.h | 264 | unifdef-y += kvm.h |
263 | endif | 265 | endif |
264 | unifdef-y += llc.h | 266 | unifdef-y += llc.h |