Skip to content

Commit

Permalink
uapi: Allow automatic generation of uapi/asm/ header files
Browse files Browse the repository at this point in the history
Several arch/*/include/uapi/asm/* header simply include the
corresponding <asm-generic/*> file. This patch allows such files to be
specified in uapi/asm/Kbuild via "generic-y += ..." to be automatically
generated (similar to asm/Kbuild).

Signed-off-by: Catalin Marinas <[email protected]>
Signed-off-by: David Howells <[email protected]>
Cc: Michal Marek <[email protected]>
Cc: Arnd Bergmann <[email protected]>
  • Loading branch information
ctmarinas authored and dhowells committed Oct 17, 2012
1 parent 8d2b6b3 commit 3c5994c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,9 @@ endif
PHONY += asm-generic
asm-generic:
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \
obj=arch/$(SRCARCH)/include/generated/asm
src=asm obj=arch/$(SRCARCH)/include/generated/asm
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \
src=uapi/asm obj=arch/$(SRCARCH)/include/generated/uapi/asm

# To make sure we do not include .config for any of the *config targets
# catch them early, and hand them over to scripts/kconfig/Makefile
Expand Down
2 changes: 1 addition & 1 deletion scripts/Makefile.asm-generic
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# and for each file listed in this file with generic-y creates
# a small wrapper file in $(obj) (arch/$(SRCARCH)/include/generated/asm)

kbuild-file := $(srctree)/arch/$(SRCARCH)/include/asm/Kbuild
kbuild-file := $(srctree)/arch/$(SRCARCH)/include/$(src)/Kbuild
-include $(kbuild-file)

include scripts/Kbuild.include
Expand Down

0 comments on commit 3c5994c

Please sign in to comment.