diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-24 16:31:37 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-24 16:31:37 -0400 |
| commit | 2bb732cdb48d271ff7a910260ffb851fb4bc8a28 (patch) | |
| tree | 580bf68eb1e52b4e6915588d61423347ae09c318 /scripts/Makefile.asm-generic | |
| parent | f50d1d9e8d964fdd3b4cedfbca8843d1bc5916c1 (diff) | |
| parent | c4d5ee13984f57b2f881635c49045151679f5e8a (diff) | |
Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6
* 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6:
kbuild: make KBUILD_NOCMDDEP=1 handle empty built-in.o
scripts/kallsyms.c: fix potential segfault
scripts/gen_initramfs_list.sh: Convert to a /bin/sh script
kbuild: Fix GNU make v3.80 compatibility
kbuild: Fix passing -Wno-* options to gcc 4.4+
kbuild: move scripts/basic/docproc.c to scripts/docproc.c
kbuild: Fix Makefile.asm-generic for um
kbuild: Allow to combine multiple W= levels
kbuild: Disable -Wunused-but-set-variable for gcc 4.6.0
Fix handling of backlash character in LINUX_COMPILE_BY name
kbuild: asm-generic support
kbuild: implement several W= levels
kbuild: Fix build with binutils <= 2.19
initramfs: Use KBUILD_BUILD_TIMESTAMP for generated entries
kbuild: Allow to override LINUX_COMPILE_BY and LINUX_COMPILE_HOST macros
kbuild: Drop unused LINUX_COMPILE_TIME and LINUX_COMPILE_DOMAIN macros
kbuild: Use the deterministic mode of ar
kbuild: Call gzip with -n
kbuild: move KALLSYMS_EXTRA_PASS from Kconfig to Makefile
Kconfig: improve KALLSYMS_ALL documentation
Fix up trivial conflict in Makefile
Diffstat (limited to 'scripts/Makefile.asm-generic')
| -rw-r--r-- | scripts/Makefile.asm-generic | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/Makefile.asm-generic b/scripts/Makefile.asm-generic new file mode 100644 index 000000000000..490122c3e2aa --- /dev/null +++ b/scripts/Makefile.asm-generic | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | # include/asm-generic contains a lot of files that are used | ||
| 2 | # verbatim by several architectures. | ||
| 3 | # | ||
| 4 | # This Makefile reads the file arch/$(SRCARCH)/include/asm/Kbuild | ||
| 5 | # and for each file listed in this file with generic-y creates | ||
| 6 | # a small wrapper file in $(obj) (arch/$(SRCARCH)/include/generated/asm) | ||
| 7 | |||
| 8 | kbuild-file := $(srctree)/arch/$(SRCARCH)/include/asm/Kbuild | ||
| 9 | -include $(kbuild-file) | ||
| 10 | |||
| 11 | include scripts/Kbuild.include | ||
| 12 | |||
| 13 | # Create output directory if not already present | ||
| 14 | _dummy := $(shell [ -d $(obj) ] || mkdir -p $(obj)) | ||
| 15 | |||
| 16 | quiet_cmd_wrap = WRAP $@ | ||
| 17 | cmd_wrap = echo "\#include <asm-generic/$*.h>" >$@ | ||
| 18 | |||
| 19 | all: $(patsubst %, $(obj)/%, $(generic-y)) | ||
| 20 | |||
| 21 | $(obj)/%.h: | ||
| 22 | $(call cmd,wrap) | ||
| 23 | |||
