buildsystem: add BUILD_FLAG support

- replace strip_lto/strip_gold (only allowed to disable)
- add flag for PIC feature
- add flag to stop build parallel
- add support for hardening option (initial copy from debian 9)

All build parameters, are added in setup_toolchain.
`PKG_[FLAG]_[HOST/TARGET]_ENABLED` variable is introduced for checking the flag (yes/no) in the package.mk

Thanks to @MilhouseVH, for support and fixing
This commit is contained in:
Sascha Kuehndel (InuSasha)
2018-02-23 14:02:16 +01:00
parent 544f25dffd
commit 8827a540aa
104 changed files with 236 additions and 405 deletions

View File

@@ -4,6 +4,9 @@
# GOLD (Google Linker) support
GOLD_SUPPORT="yes"
# HARDENING (security relevant linker and compiler flags) support
HARDENING_SUPPORT="no"
# Name of the Distro to build (full name, without special characters)
DISTRONAME="LibreELEC"