X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=Makefile;h=bd7d5e56c081d1d66ea0f31404a055604f045bd6;hb=8f54298dd8fabb33560a2ec7b8d101d03992ff07;hp=b78aab3171b597bb34d839b549ae0e09a3bf4bc0;hpb=94016eb17f1c9ec8f21faf037aea490b5ff65b22;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git diff --git a/Makefile b/Makefile index b78aab3171b5..bd7d5e56c081 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 206 -EXTRAVERSION = -rc1 +SUBLEVEL = 214 +EXTRAVERSION = NAME = Blurry Fish Butt # *DOCUMENTATION* @@ -661,6 +661,14 @@ include arch/$(SRCARCH)/Makefile ifeq ($(cc-name),clang) KBUILD_CFLAGS += -O3 +KBUILD_CFLAGS += $(call cc-option, -mllvm -polly) \ + $(call cc-option, -mllvm -polly-run-dce) \ + $(call cc-option, -mllvm -polly-run-inliner) \ + $(call cc-option, -mllvm -polly-opt-fusion=max) \ + $(call cc-option, -mllvm -polly-ast-use-context) \ + $(call cc-option, -mllvm -polly-detect-keep-going) \ + $(call cc-option, -mllvm -polly-vectorizer=stripmine) \ + $(call cc-option, -mllvm -polly-invariant-load-hoisting) else KBUILD_CFLAGS += -O2 endif @@ -1523,9 +1531,6 @@ else # KBUILD_EXTMOD # We are always building modules KBUILD_MODULES := 1 -PHONY += crmodverdir -crmodverdir: - $(cmd_crmodverdir) PHONY += $(objtree)/Module.symvers $(objtree)/Module.symvers: @@ -1537,7 +1542,7 @@ $(objtree)/Module.symvers: module-dirs := $(addprefix _module_,$(KBUILD_EXTMOD)) PHONY += $(module-dirs) modules -$(module-dirs): crmodverdir $(objtree)/Module.symvers +$(module-dirs): prepare $(objtree)/Module.symvers $(Q)$(MAKE) $(build)=$(patsubst _module_%,%,$@) modules: $(module-dirs) @@ -1577,7 +1582,8 @@ help: # Dummies... PHONY += prepare scripts -prepare: ; +prepare: + $(cmd_crmodverdir) scripts: ; endif # KBUILD_EXTMOD @@ -1702,17 +1708,14 @@ endif # Modules /: prepare scripts FORCE - $(cmd_crmodverdir) $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \ $(build)=$(build-dir) # Make sure the latest headers are built for Documentation Documentation/: headers_install %/: prepare scripts FORCE - $(cmd_crmodverdir) $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \ $(build)=$(build-dir) %.ko: prepare scripts FORCE - $(cmd_crmodverdir) $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \ $(build)=$(build-dir) $(@:.ko=.o) $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost