diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-16 21:19:19 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-16 21:19:19 -0500 |
commit | 5674124f9f16f196533abb383193bd232c9afc2f (patch) | |
tree | 275af51d6f7749dc72e1530fcace7c770cdbdd46 /arch/um | |
parent | 5d48421be3c8a9f753d61b826ecb3ad287d867c0 (diff) | |
parent | 72142fd4109105c6bd21658966ca5e93c1684081 (diff) |
Merge branch 'x86-syscall-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
* 'x86-syscall-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86: Move <asm/asm-offsets.h> from trace_syscalls.c to asm/syscall.h
x86, um: Fix typo in 32-bit system call modifications
um: Use $(srctree) not $(KBUILD_SRC)
x86, um: Mark system call tables readonly
x86, um: Use the same style generated syscall tables as native
um: Generate headers before generating user-offsets.s
um: Run host archheaders, allow use of host generated headers
kbuild, headers.sh: Don't make archheaders explicitly
x86, syscall: Allow syscall offset to be symbolic
x86, syscall: Re-fix typo in comment
x86: Simplify syscallhdr.sh
x86: Generate system call tables and unistd_*.h from tables
checksyscalls: Use arch/x86/syscalls/syscall_32.tbl as source
x86: Machine-readable syscall tables and scripts to process them
trace: Include <asm/asm-offsets.h> in trace_syscalls.c
x86-64, ia32: Move compat_ni_syscall into C and its own file
x86-64, syscall: Adjust comment spacing and remove typo
kbuild: Add support for an "archheaders" target
kbuild: Add support for installing generated asm headers
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/um/Makefile b/arch/um/Makefile index 7730af6ec13..28688e6d96d 100644 --- a/arch/um/Makefile +++ b/arch/um/Makefile | |||
@@ -64,7 +64,8 @@ USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -D__KERNEL__,,\ | |||
64 | #This will adjust *FLAGS accordingly to the platform. | 64 | #This will adjust *FLAGS accordingly to the platform. |
65 | include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS) | 65 | include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS) |
66 | 66 | ||
67 | KBUILD_CPPFLAGS += -I$(srctree)/$(HOST_DIR)/include | 67 | KBUILD_CPPFLAGS += -I$(srctree)/$(HOST_DIR)/include \ |
68 | -I$(HOST_DIR)/include/generated | ||
68 | 69 | ||
69 | # -Derrno=kernel_errno - This turns all kernel references to errno into | 70 | # -Derrno=kernel_errno - This turns all kernel references to errno into |
70 | # kernel_errno to separate them from the libc errno. This allows -fno-common | 71 | # kernel_errno to separate them from the libc errno. This allows -fno-common |
@@ -96,6 +97,10 @@ endef | |||
96 | 97 | ||
97 | KBUILD_KCONFIG := $(HOST_DIR)/um/Kconfig | 98 | KBUILD_KCONFIG := $(HOST_DIR)/um/Kconfig |
98 | 99 | ||
100 | archheaders: | ||
101 | $(Q)$(MAKE) -C '$(srctree)' KBUILD_SRC= \ | ||
102 | ARCH=$(SUBARCH) O='$(objtree)' archheaders | ||
103 | |||
99 | archprepare: include/generated/user_constants.h | 104 | archprepare: include/generated/user_constants.h |
100 | 105 | ||
101 | LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static | 106 | LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static |
@@ -135,7 +140,7 @@ archclean: | |||
135 | 140 | ||
136 | # Generated files | 141 | # Generated files |
137 | 142 | ||
138 | $(HOST_DIR)/um/user-offsets.s: FORCE | 143 | $(HOST_DIR)/um/user-offsets.s: __headers FORCE |
139 | $(Q)$(MAKE) $(build)=$(HOST_DIR)/um $@ | 144 | $(Q)$(MAKE) $(build)=$(HOST_DIR)/um $@ |
140 | 145 | ||
141 | define filechk_gen-asm-offsets | 146 | define filechk_gen-asm-offsets |