]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
core: change the strip command from a choice to a boolean
authorYann E. MORIN <yann.morin.1998@free.fr>
Sat, 1 Jul 2017 12:51:21 +0000 (14:51 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 1 Jul 2017 13:07:25 +0000 (15:07 +0200)
Curently, we have a choice to select between stripping and not
stripping. This is legacy code from back when we had a third option,
sstrip (super-strip).

Since we removed sstrip, stripping or not stripping is now just a
boolean rather than a choice.

Make it so.

We make BR2_STRIP_strip default to 'y' to keep the current behaviour of
defaulting to stripping.

Move BR2_STIP_none to legacy, and instruct the user to review the new
setting.

Drop any reference to BR2_STRIP_none in comments.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Config.in
Config.in.legacy
boot/grub2/grub2.mk
package/kexec/kexec.mk

index 86e10bbe154d49c505d3de6ba5bf4a1b99bb621c..72ceadfde6ac241416da33c5d0c0999dea85f2b7 100644 (file)
--- a/Config.in
+++ b/Config.in
@@ -414,13 +414,10 @@ config BR2_DEBUG_3
 endchoice
 endif
 
-choice
-       prompt "strip command for binaries on target"
-       default BR2_STRIP_strip
-
 config BR2_STRIP_strip
-       bool "strip"
+       bool "strip target binaries"
        depends on !BR2_PACKAGE_HOST_ELF2FLT
+       default y
        help
          Binaries and libraries in the target filesystem will be
          stripped using the normal 'strip' command. This allows to save
@@ -428,12 +425,6 @@ config BR2_STRIP_strip
          on the target are needed for native debugging, but not when
          remote debugging is used.
 
-config BR2_STRIP_none
-       bool "none"
-       help
-         Do not strip binaries and libraries in the target filesystem.
-endchoice
-
 config BR2_STRIP_EXCLUDE_FILES
        string "executables that should not be stripped"
        depends on BR2_STRIP_strip
index ec28da3a2a6e631a963824edac10f6ce0c648e0c..453c5eb8b8b8be5d105ab1d8c5496ee8ca4b823b 100644 (file)
@@ -145,6 +145,14 @@ endif
 ###############################################################################
 comment "Legacy options removed in 2017.08"
 
+config BR2_STRIP_none
+       bool "Strip command 'none' has been removed"
+       select BR2_LEGACY
+       help
+         The strip command choice has been changed into a single
+         boolean option. Please check that the new setting is
+         correct (in the "Build options" sub-menu)
+
 config BR2_PACKAGE_BEECRYPT_CPP
        bool "C++ support removed in beecrypt"
        select BR2_LEGACY
index dc019835abe267e63a3956a3cdfb825419ebf6b8..aa3f4dd8cb690ba622215f2c3ba40e60f32a3af2 100644 (file)
@@ -46,7 +46,7 @@ endif
 # bootloader itself; none of these are used to build the native
 # tools.
 #
-# NOTE: TARGET_STRIP is overridden by BR2_STRIP_none, so always
+# NOTE: TARGET_STRIP is overridden by !BR2_STRIP_strip, so always
 # use the cross compile variant to ensure grub2 builds
 
 GRUB2_CONF_ENV = \
index 7564103bfc917c81fc04c2c807fefc9386a06566..dd67eab0cae37db4835d91e1cf1186fc2a252522 100644 (file)
@@ -10,7 +10,7 @@ KEXEC_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kernel/kexec
 KEXEC_LICENSE = GPL-2.0
 KEXEC_LICENSE_FILES = COPYING
 
-# Makefile expects $STRIP -o to work, so needed for BR2_STRIP_none
+# Makefile expects $STRIP -o to work, so needed for !BR2_STRIP_strip
 KEXEC_MAKE_OPTS = STRIP="$(TARGET_CROSS)strip"
 
 ifeq ($(BR2_PACKAGE_KEXEC_ZLIB),y)