Skip to content

Commit

Permalink
powerpc: Add config fragment for disabling -Werror
Browse files Browse the repository at this point in the history
This makes it easy to disable building with -Werror:

  $ make defconfig
  $ grep WERROR .config
  # CONFIG_PPC_DISABLE_WERROR is not set
  CONFIG_PPC_WERROR=y

  $ make disable-werror.config
    GEN     Makefile
  Using .config as base
  Merging arch/powerpc/configs/disable-werror.config
  Value of CONFIG_PPC_DISABLE_WERROR is redefined by fragment arch/powerpc/configs/disable-werror.config:
  Previous value: # CONFIG_PPC_DISABLE_WERROR is not set
  New value: CONFIG_PPC_DISABLE_WERROR=y
  ...

  $ grep WERROR .config
  CONFIG_PPC_DISABLE_WERROR=y

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201023040002.3313371-1-mpe@ellerman.id.au
  • Loading branch information
Michael Ellerman committed Dec 15, 2020
1 parent 5d82344 commit c15d1f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/configs/disable-werror.config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_PPC_DISABLE_WERROR=y

0 comments on commit c15d1f9

Please sign in to comment.