Commit Graph

211 Commits

Author SHA1 Message Date
Sascha Kuehndel (InuSasha)
a5fd4a44aa create_addon: do not include addons, embedded in image 2018-07-28 10:50:52 +02:00
Christian Hewitt
a3df92074b Merge pull request #2803 from MilhouseVH/le90_debug_with_depends
debug: dependencies don't build with debug by default. use + suffix t…
2018-07-15 07:32:52 +04:00
Matthias Reichl
670a95c1ae config/functions: store package caches in build dir
Storing the cache in an exported environment variable can
result in build failures if the cache exceeds the MAX_ARG_STRLEN
limit (128k on linux) which can be triggered by building in a
rather deeply nested directory.

Signed-off-by: Matthias Reichl <hias@horus.com>
2018-07-01 10:44:17 +02:00
MilhouseVH
5f91f0cf49 debug: dependencies don't build with debug by default. use + suffix to enable 2018-06-26 22:30:49 +01:00
CvH
dd4eaa1487 Merge pull request #2776 from MilhouseVH/linux4170
linux (Generic): update to linux-4.17.2
2018-06-17 21:53:12 +02:00
Matthias Reichl
423242fda6 config_functions: add kernel_make
Signed-off-by: Matthias Reichl <hias@horus.com>
2018-06-16 18:28:21 +01:00
awiouy
bd7ab2657f debug_strip: use PKG_BUILD_FLAGS 2018-06-12 19:48:41 +02:00
Lukas Rusak
926ad175ca config/functions: add llvm-config to meson cross file 2018-06-05 10:26:25 -07:00
Matthias Reichl
fc6144ba37 config/functions: support lto-parallel, lto-fat and lto-off build flags
Signed-off-by: Matthias Reichl <hias@horus.com>
2018-06-04 19:54:29 +02:00
Matthias Reichl
b03cb4cc2f config/optimize, config/functions: refactor lto flags
Split up the LTO flags in config/optimize and assemble
full C/CXX/LDFLAGS in config/functions.

Add flags for parallel/single-threaded lto and fat/non-fat
lto object creation.

Change the default lto build flag to use non-fat lto objects.

Signed-off-by: Matthias Reichl <hias@horus.com>
2018-06-04 19:54:29 +02:00
Matthias Reichl
57832185cc config/functions: use gcc-ar/gcc-nm/gcc-ranlib when LTO is enabled
This is needed to properly create static libs with LTO objects.

Signed-off-by: Matthias Reichl <hias@horus.com>
2018-06-04 19:54:29 +02:00
Matthias Reichl
7608095b4e config/functions: don't enable LTO by default
Packages are only built with LTO if it's explicitly enabled via
the lto build flag or if a package enables LTO via configure / cmake
options.

Enabling LTO via configure / cmake is the preferred way as this
gives packages more fine grained control, eg enable parallel LTO
linking etc. When doing this packages should respect the
LTO_SUPPORT setting so LTO can be disabled globally.

To avoid conflicting C/CXX/LDFLAGS no FLAGS are added when the
lto build flag is not set.

Signed-off-by: Matthias Reichl <hias@horus.com>
2018-06-04 19:54:28 +02:00
Sascha Kuehndel (InuSasha)
b7b1a67723 place options at a more consistent place 2018-05-07 21:55:07 +02:00
Sascha Kuehndel (InuSasha)
9c03f42b43 buildsystem: use no-lto, when lto is disabled
else gcc/binultis can enable automaticly
2018-05-07 19:34:37 +02:00
CvH
20f9867e03 Merge pull request #2630 from MilhouseVH/le90_buildsystem_cleanups
buildsystem: cleanups, use sha256sum for stamp function
2018-04-02 12:03:24 +02:00
MilhouseVH
eefa6ebee4 buildsystem: use single = for consistency 2018-04-02 10:09:11 +01:00
MilhouseVH
7628290170 buildsystem: add a function to calculate stamps, switch from md5 to sha256 2018-04-02 10:09:11 +01:00
MilhouseVH
994d120bab config/functions: use Here doc for create_meson_conf 2018-03-27 22:51:39 +01:00
Sascha Kuehndel (InuSasha)
d38cadaf8c meson: update to 0.45
- generate cross-file per package, needed since https://github.com/mesonbuild/meson/pull/1807 to use changed build-flags
2018-03-21 17:10:10 +01:00
Sascha Kuehndel (InuSasha)
8aef8f3371 build: remove unnessary exports 2018-03-08 10:16:13 +01:00
Sascha Kuehndel (InuSasha)
8827a540aa 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
2018-03-07 18:35:01 +01:00
Radostan Riedel
c555d2facb Fix wrong Strip with 64/32 in linux driver addons 2018-03-05 13:28:41 +01:00
MilhouseVH
76e402cfed config/functions: fix save_build_config when build directory doesn't exist 2018-02-25 11:34:42 +00:00
MilhouseVH
1a6d8a8f06 buildsystem: save/load build config 2018-02-23 10:19:52 +00:00
MilhouseVH
68450cd45f config/function & config/path: Don't source entire package just to determine PKG_DIR 2018-02-19 07:08:48 +00:00