I was taking a look at this nice new Kconfig feature here: https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git/log/?h=kconfig-shell-v3 And came up with some patches for it for powerpc. Hopefully after some review, these patches could be acked by powerpc maintainers and go into the kbuild tree (or the problems solved a different way). Thanks, Nick Nicholas Piggin (2): powerpc/kbuild: Use flags variables rather than overriding LD/CC/AS powerpc/kbuild: move -mprofile-kernel check to Kconfig arch/powerpc/Kconfig | 16 +---------- arch/powerpc/Makefile | 28 ++++++------------- .../tools/gcc-check-mprofile-kernel.sh | 4 +-- 3 files changed, 12 insertions(+), 36 deletions(-) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html