diff options
author | David Bauer <mail@david-bauer.net> | 2020-11-20 03:03:54 +0100 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2022-12-06 01:01:09 +0100 |
commit | d84d34e6e077f27bb20aafd5b9f639b297a077ab (patch) | |
tree | 8a1e87e4c41142403353f54d8a475e6bc6f7ce1d | |
parent | be3b061d7bbf425c95ef9108a37c51747c0025e9 (diff) | |
download | upstream-d84d34e6e077f27bb20aafd5b9f639b297a077ab.tar.gz upstream-d84d34e6e077f27bb20aafd5b9f639b297a077ab.tar.bz2 upstream-d84d34e6e077f27bb20aafd5b9f639b297a077ab.zip |
sdk: expose binary strip settings
Expose the SDK options for binary stripping to the menuconfig. This
way, packages can easily be built with debug symbols using the SDK.
Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit bb817bb4b8b0b546a70e45bd907ebfeea2370dcd)
-rw-r--r-- | target/sdk/files/Config.in | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/target/sdk/files/Config.in b/target/sdk/files/Config.in index 4393daab5b..f687992497 100644 --- a/target/sdk/files/Config.in +++ b/target/sdk/files/Config.in @@ -18,6 +18,52 @@ menu "Global build settings" bool "Cryptographically sign package lists" default y + comment "Package build options" + + config DEBUG + bool + prompt "Compile packages with debugging info" + default n + help + Adds -g3 to the CFLAGS. + + comment "Stripping options" + + choice + prompt "Binary stripping method" + default USE_STRIP if EXTERNAL_TOOLCHAIN + default USE_STRIP if USE_GLIBC + default USE_SSTRIP + help + Select the binary stripping method you wish to use. + + config NO_STRIP + bool "none" + help + This will install unstripped binaries (useful for native + compiling/debugging). + + config USE_STRIP + bool "strip" + help + This will install binaries stripped using strip from binutils. + + config USE_SSTRIP + bool "sstrip" + depends on !USE_GLIBC + help + This will install binaries stripped using sstrip. + endchoice + + config STRIP_ARGS + string + prompt "Strip arguments" + depends on USE_STRIP + default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG + default "--strip-all" + help + Specifies arguments passed to the strip command when stripping binaries. + endmenu menu "Advanced configuration options (for developers)" |