X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=scripts%2FMakefile.build;h=17aa8ef2d52a7618148dcef3f19a1043fc74bc2e;hb=refs%2Fheads%2Faccepted%2Ftizen_8.0_unified;hp=3efc984d4c6905721d448940c0cbd3f88f84a6c2;hpb=ce4c8f882041341cbb3f1b4632b20440692cbccc;p=platform%2Fkernel%2Flinux-rpi.git diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 3efc984..17aa8ef 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -224,6 +224,18 @@ cmd_record_mcount = $(if $(findstring $(strip $(CC_FLAGS_FTRACE)),$(_c_flags)), endif # CONFIG_FTRACE_MCOUNT_USE_RECORDMCOUNT ifdef CONFIG_STACK_VALIDATION + +objtool_args = \ + $(if $(CONFIG_UNWINDER_ORC),orc generate,check) \ + $(if $(part-of-module), --module) \ + $(if $(CONFIG_FRAME_POINTER),, --no-fp) \ + $(if $(CONFIG_GCOV_KERNEL)$(CONFIG_LTO_CLANG), --no-unreachable)\ + $(if $(CONFIG_RETPOLINE), --retpoline) \ + $(if $(CONFIG_RETHUNK), --rethunk) \ + $(if $(CONFIG_X86_SMAP), --uaccess) \ + $(if $(CONFIG_FTRACE_MCOUNT_USE_OBJTOOL), --mcount) \ + $(if $(CONFIG_SLS), --sls) + ifndef CONFIG_LTO_CLANG __objtool_obj := $(objtree)/tools/objtool/objtool