mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-01 07:27:43 +00:00
- add possibility to select different flavours of strip (or none at all for debugging purposes)
This commit is contained in:
parent
dd8226a46d
commit
bbd251a075
27
Config.in
27
Config.in
@ -652,11 +652,36 @@ config BR2_DEPRECATED
|
|||||||
This option hides outdated/obsolete versions of packages.
|
This option hides outdated/obsolete versions of packages.
|
||||||
|
|
||||||
config BR2_USE_WCHAR
|
config BR2_USE_WCHAR
|
||||||
bool "Show packages that are require WCHAR support"
|
bool "Show packages that require WCHAR support"
|
||||||
default y
|
default y
|
||||||
help
|
help
|
||||||
This option hides packages which cannot be built without WCHAR.
|
This option hides packages which cannot be built without WCHAR.
|
||||||
|
|
||||||
|
choice
|
||||||
|
prompt "strip"
|
||||||
|
default BR2_STRIP_strip
|
||||||
|
help
|
||||||
|
Select whether to strip binaries and libraries for the target
|
||||||
|
or not.
|
||||||
|
strip is the normal strip command
|
||||||
|
sstrip is a strip that discards more than the normal strip
|
||||||
|
none do not strip (only for debugging!)
|
||||||
|
|
||||||
|
config BR2_STRIP_strip
|
||||||
|
bool "strip"
|
||||||
|
help
|
||||||
|
strip is the normal strip command
|
||||||
|
config BR2_STRIP_sstrip
|
||||||
|
bool "sstrip"
|
||||||
|
select BR2_PACKAGE_SSTRIP_HOST
|
||||||
|
help
|
||||||
|
sstrip is a strip that discards more than the normal strip
|
||||||
|
config BR2_STRIP_none
|
||||||
|
bool "none"
|
||||||
|
help
|
||||||
|
none do not strip (only for debugging!)
|
||||||
|
endchoice
|
||||||
|
|
||||||
config BR2_PREFER_STATIC_LIB
|
config BR2_PREFER_STATIC_LIB
|
||||||
bool "prefer static libraries"
|
bool "prefer static libraries"
|
||||||
default n
|
default n
|
||||||
|
@ -131,9 +131,16 @@ endif
|
|||||||
TARGET_CC=$(TARGET_CROSS)gcc
|
TARGET_CC=$(TARGET_CROSS)gcc
|
||||||
TARGET_CXX=$(TARGET_CROSS)g++
|
TARGET_CXX=$(TARGET_CROSS)g++
|
||||||
TARGET_RANLIB=$(TARGET_CROSS)ranlib
|
TARGET_RANLIB=$(TARGET_CROSS)ranlib
|
||||||
STRIP=$(TARGET_CROSS)strip --remove-section=.comment --remove-section=.note
|
|
||||||
INSTALL=/usr/bin/install
|
INSTALL=/usr/bin/install
|
||||||
|
ifeq ($(BR2_STRIP_strip),y)
|
||||||
|
STRIP=$(TARGET_CROSS)strip --remove-section=.comment --remove-section=.note
|
||||||
|
endif
|
||||||
|
ifeq ($(BR2_STRIP_sstrip),y)
|
||||||
|
STRIP=$(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-sstrip
|
||||||
|
endif
|
||||||
|
ifeq ($(BR2_STRIP_none),y)
|
||||||
|
STRIP=true -Not_stripping
|
||||||
|
endif
|
||||||
|
|
||||||
HOST_ARCH:=$(shell $(HOSTCC) -dumpmachine | sed -e s'/-.*//' \
|
HOST_ARCH:=$(shell $(HOSTCC) -dumpmachine | sed -e s'/-.*//' \
|
||||||
-e 's/sparc.*/sparc/' \
|
-e 's/sparc.*/sparc/' \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user