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>
This commit is contained in:
parent
b9b4d1e2ee
commit
4480d40cc9
|
@ -205,8 +205,7 @@ ifeq ($(BR2_STRIP_strip),y)
|
||||||
STRIP_STRIP_DEBUG := --strip-debug
|
STRIP_STRIP_DEBUG := --strip-debug
|
||||||
TARGET_STRIP = $(TARGET_CROSS)strip
|
TARGET_STRIP = $(TARGET_CROSS)strip
|
||||||
STRIPCMD = $(TARGET_CROSS)strip --remove-section=.comment --remove-section=.note
|
STRIPCMD = $(TARGET_CROSS)strip --remove-section=.comment --remove-section=.note
|
||||||
endif
|
else
|
||||||
ifeq ($(BR2_STRIP_none),y)
|
|
||||||
TARGET_STRIP = /bin/true
|
TARGET_STRIP = /bin/true
|
||||||
STRIPCMD = $(TARGET_STRIP)
|
STRIPCMD = $(TARGET_STRIP)
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue