X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=scripts%2FMakefile.build;h=06e5c203c1f13bd4428ef16c2151e9345e07c0ef;hb=319202640a6dfe97c05d3b80dac3f029c405a33e;hp=ac0554eeae170bd78ff9187ea54ad0f66ec88e52;hpb=b79dadf846e5e140e261bbfa4decd024357702d7;p=u-boot diff --git a/scripts/Makefile.build b/scripts/Makefile.build index ac0554eeae..06e5c203c1 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -1,6 +1,9 @@ # ========================================================================== # Building # ========================================================================== +# +# SPDX-License-Identifier: GPL-2.0 +# # Modified for U-Boot prefix := tpl @@ -253,8 +256,9 @@ sub_cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH "$(if $(part-of-module),1,0)" "$(@)"; recordmcount_source := $(srctree)/scripts/recordmcount.pl endif -cmd_record_mcount = \ - if [ "$(findstring -pg,$(_c_flags))" = "-pg" ]; then \ +cmd_record_mcount = \ + if [ "$(findstring $(CC_FLAGS_FTRACE),$(_c_flags))" = \ + "$(CC_FLAGS_FTRACE)" ]; then \ $(sub_cmd_record_mcount) \ fi; endif