]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/sparc/kernel/Makefile
sparc64: Fix Niagara2 perf event handling.
[karo-tx-linux.git] / arch / sparc / kernel / Makefile
index 3a048fad7ee238b1253d1c7de2312a462dad36d6..5b47fab9966e34e8030db1628a47e22a966dedb5 100644 (file)
@@ -7,7 +7,11 @@ ccflags-y := -Werror
 
 extra-y     := head_$(BITS).o
 extra-y     += init_task.o
-extra-y     += vmlinux.lds
+
+# Undefine sparc when processing vmlinux.lds - it is used
+# And teach CPP we are doing $(BITS) builds (for this case)
+CPPFLAGS_vmlinux.lds := -Usparc -m$(BITS)
+extra-y              += vmlinux.lds
 
 obj-$(CONFIG_SPARC32)   += entry.o wof.o wuf.o
 obj-$(CONFIG_SPARC32)   += etrap_32.o