[Buildroot] [PATCH 2/3] core: simplify the condition to set the strip command

Yann E. MORIN yann.morin.1998 at free.fr
Sat Jul 1 12:51:20 UTC 2017


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>
---
 package/Makefile.in | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/package/Makefile.in b/package/Makefile.in
index 4a3eb26963..9566567fbf 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 = true
 STRIPCMD = $(TARGET_STRIP)
 endif
-- 
2.11.0




More information about the buildroot mailing list