Intel cpus: add hyper-threading CPU support to new CAR
[coreboot.git] / Makefile
index c5438979f75799fb9cdbd274f4cc7afdaaaa29d6..c5ee1f29dcf1df11a5f839c9cddd7e22ddc96434 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -113,7 +113,7 @@ include $(HAVE_DOTCONFIG)
 
 ifneq ($(INNER_SCANBUILD),y)
 ifeq ($(CONFIG_COMPILER_LLVM_CLANG),y)
-CC:=clang -m32
+CC:=clang -m32 -mno-mmx -mno-sse
 HOSTCC:=clang
 endif
 endif
@@ -204,6 +204,9 @@ evaluate_subdirs= \
 subdirs:=$(TOPLEVEL)
 $(eval $(call evaluate_subdirs))
 
+# Eliminate duplicate mentions of source files in a class
+$(foreach class,$(classes),$(eval $(class)-srcs:=$(sort $($(class)-srcs))))
+
 src-to-obj=$(addsuffix .$(1).o, $(basename $(patsubst src/%, $(obj)/%, $($(1)-srcs))))
 $(foreach class,$(classes),$(eval $(class)-objs:=$(call src-to-obj,$(class))))