summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2017-07-01 14:51:20 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-07-01 15:01:01 +0200
commit4480d40cc9a0d63da0bdf8ddf5dfc257c673de34 (patch)
treeb846f8339f0b2b0ef7854d4acb24de67ecc6bd6c
parentb9b4d1e2ee8ec8d6512895e16cec560be9114f14 (diff)
downloadbuildroot-4480d40cc9a0d63da0bdf8ddf5dfc257c673de34.tar.gz
buildroot-4480d40cc9a0d63da0bdf8ddf5dfc257c673de34.zip
core: simplify the condition to set the strip command
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@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>
-rw-r--r--package/Makefile.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/package/Makefile.in b/package/Makefile.in
index c1dc714331..8087bde999 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
OpenPOWER on IntegriCloud