[Buildroot] [git commit] core: simplify the condition to set the strip command

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Jul 1 13:01:01 UTC 2017


commit: https://git.buildroot.net/buildroot/commit/?id=4480d40cc9a0d63da0bdf8ddf5dfc257c673de34
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Since BR2_STRIP_strip and BR2_STRIP_noine are mutually exclusive (being
part of a choice), we can simplify the logic.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
Cc: Arnout Vandecappelle <arnout at mind.be>
Cc: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
 package/Makefile.in | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/package/Makefile.in b/package/Makefile.in
index c1dc714..8087bde 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -205,8 +205,7 @@ ifeq ($(BR2_STRIP_strip),y)
 STRIP_STRIP_DEBUG := --strip-debug
 TARGET_STRIP = $(TARGET_CROSS)strip
 STRIPCMD = $(TARGET_CROSS)strip --remove-section=.comment --remove-section=.note
-endif
-ifeq ($(BR2_STRIP_none),y)
+else
 TARGET_STRIP = /bin/true
 STRIPCMD = $(TARGET_STRIP)
 endif


More information about the buildroot mailing list