mbox series

[0/7] kbuild: remove cc-option-yn

Message ID 20210817002109.2736222-1-ndesaulniers@google.com (mailing list archive)
Headers show
Series kbuild: remove cc-option-yn | expand

Message

Nick Desaulniers Aug. 17, 2021, 12:21 a.m. UTC
cc-option-yn can be replaced with cc-option. ie.
Checking for support:
ifeq ($(call cc-option-yn,$(FLAG)),y)
becomes:
ifneq ($(call cc-option,$(FLAG)),)

Checking for lack of support:
ifeq ($(call cc-option-yn,$(FLAG)),n)
becomes:
ifeq ($(call cc-option,$(FLAG)),)

This allows us to remove cc-option-yn. Do so, and update the
docs.

Base is linux-next.

Nick Desaulniers (7):
  MIPS: replace cc-option-yn uses with cc-option
  s390: replace cc-option-yn uses with cc-option
  powerpc: replace cc-option-yn uses with cc-option
  arc: replace cc-option-yn uses with cc-option
  x86: remove cc-option-yn test for -mtune=
  Makefile: replace cc-option-yn uses with cc-option
  kbuild: remove cc-option-yn, update Docs

 Documentation/kbuild/makefiles.rst | 22 ++++++---------
 Makefile                           |  2 +-
 arch/arc/Makefile                  |  3 +-
 arch/mips/Makefile                 | 44 +++++++++++++++---------------
 arch/mips/sgi-ip22/Platform        |  4 +--
 arch/powerpc/Makefile              | 12 ++++----
 arch/powerpc/boot/Makefile         |  5 +---
 arch/s390/Makefile                 | 14 +++++-----
 arch/x86/Makefile_32.cpu           |  6 ----
 scripts/Makefile.compiler          |  5 ----
 10 files changed, 49 insertions(+), 68 deletions(-)