aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2012-10-02 13:01:56 -0400
committerDavid Howells <dhowells@redhat.com>2012-10-02 13:01:56 -0400
commit494b3e1c492c29f01eec69f5492aedba6c0ae577 (patch)
treebfd0ed3bf52a226458eaa15d5f6da2c85492dc9c /include
parentc0522b6cc1237c935b2cead3fa7b45465df2f839 (diff)
UAPI: Set up uapi/asm/Kbuild.asm
Set up uapi/asm/Kbuild.asm. This requires the mandatory headers to be dynamically detected. The same goes for include/asm/Kbuild.asm. The problem is that the header files will be split or moved one at a time, but each header file in Kbuild.asm's list applies to all arch headers of that name simultaneously. The dynamic detection of mandatory files can be undone later. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/asm-generic/Kbuild.asm46
-rw-r--r--include/uapi/asm-generic/Kbuild.asm49
2 files changed, 50 insertions, 45 deletions
diff --git a/include/asm-generic/Kbuild.asm b/include/asm-generic/Kbuild.asm
index c5d2e5dd871b..d2ee86b4c091 100644
--- a/include/asm-generic/Kbuild.asm
+++ b/include/asm-generic/Kbuild.asm
@@ -1,45 +1 @@
1ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm.h \ include include/uapi/asm-generic/Kbuild.asm
2 $(srctree)/include/asm-$(SRCARCH)/kvm.h),)
3header-y += kvm.h
4endif
5
6ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm_para.h \
7 $(srctree)/include/asm-$(SRCARCH)/kvm_para.h),)
8header-y += kvm_para.h
9endif
10
11ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/a.out.h \
12 $(srctree)/include/asm-$(SRCARCH)/a.out.h),)
13header-y += a.out.h
14endif
15
16header-y += auxvec.h
17header-y += bitsperlong.h
18header-y += byteorder.h
19header-y += errno.h
20header-y += fcntl.h
21header-y += ioctl.h
22header-y += ioctls.h
23header-y += ipcbuf.h
24header-y += mman.h
25header-y += msgbuf.h
26header-y += param.h
27header-y += poll.h
28header-y += posix_types.h
29header-y += ptrace.h
30header-y += resource.h
31header-y += sembuf.h
32header-y += setup.h
33header-y += shmbuf.h
34header-y += sigcontext.h
35header-y += siginfo.h
36header-y += signal.h
37header-y += socket.h
38header-y += sockios.h
39header-y += stat.h
40header-y += statfs.h
41header-y += swab.h
42header-y += termbits.h
43header-y += termios.h
44header-y += types.h
45header-y += unistd.h
diff --git a/include/uapi/asm-generic/Kbuild.asm b/include/uapi/asm-generic/Kbuild.asm
new file mode 100644
index 000000000000..fcd50b759217
--- /dev/null
+++ b/include/uapi/asm-generic/Kbuild.asm
@@ -0,0 +1,49 @@
1#
2# Headers that are optional in usr/include/asm/
3#
4opt-header += kvm.h
5opt-header += kvm_para.h
6opt-header += a.out.h
7
8#
9# Headers that are mandatory in usr/include/asm/
10#
11header-y += auxvec.h
12header-y += bitsperlong.h
13header-y += byteorder.h
14header-y += errno.h
15header-y += fcntl.h
16header-y += ioctl.h
17header-y += ioctls.h
18header-y += ipcbuf.h
19header-y += mman.h
20header-y += msgbuf.h
21header-y += param.h
22header-y += poll.h
23header-y += posix_types.h
24header-y += ptrace.h
25header-y += resource.h
26header-y += sembuf.h
27header-y += setup.h
28header-y += shmbuf.h
29header-y += sigcontext.h
30header-y += siginfo.h
31header-y += signal.h
32header-y += socket.h
33header-y += sockios.h
34header-y += stat.h
35header-y += statfs.h
36header-y += swab.h
37header-y += termbits.h
38header-y += termios.h
39header-y += types.h
40header-y += unistd.h
41
42header-y += $(foreach hdr,$(opt-header), \
43 $(if \
44 $(wildcard \
45 $(srctree)/arch/$(SRCARCH)/include/uapi/asm/$(hdr) \
46 $(srctree)/arch/$(SRCARCH)/include/asm/$(hdr) \
47 ), \
48 $(hdr) \
49 ))