]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - scripts/Makefile.build
Merge tag 'for-linus-v3.10-rc1-2' of git://oss.sgi.com/xfs/xfs
[karo-tx-linux.git] / scripts / Makefile.build
index 0e801c3cdaf8f4173ce5abbf9cee0554374bfbc7..d5d859c8072964014971b9b1401b96f83a183e5d 100644 (file)
@@ -211,7 +211,8 @@ $(obj)/%.i: $(src)/%.c FORCE
 
 cmd_gensymtypes =                                                           \
     $(CPP) -D__GENKSYMS__ $(c_flags) $< |                                   \
-    $(GENKSYMS) $(if $(1), -T $(2)) -a $(ARCH)                              \
+    $(GENKSYMS) $(if $(1), -T $(2))                                         \
+     $(patsubst y,-s _,$(CONFIG_HAVE_UNDERSCORE_SYMBOL_PREFIX))             \
      $(if $(KBUILD_PRESERVE),-p)                                            \
      -r $(firstword $(wildcard $(2:.symtypes=.symref) /dev/null))