Skip to content

kbuild: remove cc-option-yn

Nick Desaulniers linux-kbuild linux-mips linux-s390 linux-snps-arc linuxppc-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7MIPS: replace cc-option-yn uses with cc-optionarch/mips/Makefile arch/mips/sgi-ip22/Platform+24 -241 reply
2/7s390: replace cc-option-yn uses with cc-optionarch/s390/Makefile+7 -73 replies
3/7powerpc: replace cc-option-yn uses with cc-optionarch/powerpc/Makefile arch/powerpc/boot/Makefile+7 -103 replies
4/7arc: replace cc-option-yn uses with cc-optionarch/arc/Makefile+1 -24 replies
5/7x86: remove cc-option-yn test for -mtune=arch/x86/Makefile_32.cpu+0 -64 replies
6/7Makefile: replace cc-option-yn uses with cc-optionMakefile+1 -13 replies
7/7kbuild: remove cc-option-yn, update DocsDocumentation/kbuild/makefiles.rst scripts/Makefile.compiler+9 -181 reply

Reviews trailers per patch

5 of 7 patches have a Reviewed-by or Acked-by.

PatchNathan ChancellorMiguel OjedaHeiko Carstens
1/7
2/7R-b A-b
3/7
4/7R-b
5/7R-b R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

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

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(-)
Signature · 1 line
2.33.0.rc1.237.g0d66db33f3-goog