107 Commits

Author SHA1 Message Date
MilhouseVH
0661263dd8 buildsystem: restore set -e fail-on-error behaviour 2019-01-24 19:17:39 +00:00
MilhouseVH
a71c01f53a scripts/build: stop sourcing package, reorg code 2018-12-18 03:43:28 +00:00
MilhouseVH
9959b29df9 scripts/build: use pkg_call 2018-11-29 01:09:20 +00:00
MilhouseVH
4b0a3215db scripts/build: fix invalid color 2018-11-21 18:58:29 +00:00
Ian Leonard
5963b74670 scripts/build: convert to build_msg
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2018-11-21 18:58:29 +00:00
Ian Leonard
acca8326ce scripts/build: general cleanup
Add copyright
Convert to config/functions/die()
Make use of bash default value mechanic
Combine some if tests
Get PKG_BUILD quoted
Replace `` with $()

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2018-11-04 05:40:46 +00:00
CvH
843051d0f7 spdx: scripts/ 2018-07-17 23:58:49 +02:00
MilhouseVH
7628290170 buildsystem: add a function to calculate stamps, switch from md5 to sha256 2018-04-02 10:09:11 +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)
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
Christian Hewitt
15c3e9e90c
Merge pull request #2518 from MilhouseVH/le90_save_build_config
buildsystem: save/load build config, simplify clean and build --all
2018-02-25 14:13:37 +04:00
Radostan Riedel
d450819323
Merge pull request #2506 from HiassofT/le9-kernel-toolchain
Compile kernel on 64/32 split archs without redefining TARGET_PREFIX
2018-02-23 20:12:59 +01:00
MilhouseVH
ccd4458425 scripts/build: add --all support using build config 2018-02-23 10:19:59 +00:00
MilhouseVH
1b76e2deff scripts/build: use BUILD_WITH_DEBUG variable, add logging, stamp support 2018-02-19 07:08:48 +00:00
Matthias Reichl
d41e3ac239 scripts/build: don't redefine TARGET_PREFIX on 64/32 builds
Signed-off-by: Matthias Reichl <hias@horus.com>
2018-02-17 17:54:35 +01:00
Adam Green
a15ea8777b
scripts/build: set strip binary for arm/arm64 2018-01-05 16:15:59 +00:00
Christian Hewitt
faecb9f914
Merge pull request #2367 from CvH/9.0-meson-cross
scripts/build: fix meson cross-compiling
2018-01-01 19:11:50 +04:00
Jonas Karlman
27a4b06c4b scripts/build: fix meson cross-compiling 2017-12-30 20:58:05 +01:00
MilhouseVH
bf71ef864b buildsystem: add configure_package function to finalise package initialisation 2017-12-20 06:25:03 +00:00
MilhouseVH
e0b833c782
buildsystem: remove grep from PKG_ARCH check
More efficient, slightly more functional.

Can be a space delimited list of architectures.

Architectures to be excluded can be specified with !ARCH.

Allows "any !arm" to be interpreted as "any arch, but not arm".

Blank/undefined is equivalent to "any".
2017-11-22 00:49:51 +01:00
Sascha Kuehndel (InuSasha)
430f6e33a0
buildsystem: set PKG_TOOLCHAIN for multiple packages 2017-11-22 00:49:45 +01:00
Sascha Kuehndel (InuSasha)
68ea042161
buildsystem: reduce cascaded if-blocks (stamp and virtual) 2017-11-22 00:45:47 +01:00
Sascha Kuehndel (InuSasha)
3cd7be6023
buildsystem: rework build script 2017-11-22 00:45:41 +01:00
Lukas Rusak
5da14cfce5
u-boot: allow using UBOOT_SYSTEM 2017-11-11 10:32:53 -08:00
Jonas Karlman
9aae246d3c
Merge pull request #2100 from Raybuntu/linarobump
New package gcc-linaro-aarch64-linux-gnu
2017-10-30 21:40:06 +01:00
Lukas Rusak
ce744dbda5
scripts/build: add meson to buildsystem 2017-10-20 14:18:59 -07:00
Radostan Riedel
2c3ae36680 New package gcc-linaro-aarch64-linux-gnu
Odroid_C2: move gcc-linaro-aarch64-elf to projects
Odroid_C2: move gcc-linaro-arm-eabi to projects
2017-10-16 10:04:11 +02:00
Lukas Rusak
1d7f6e733e Merge pull request #2080 from MilhouseVH/le90_more_bs_optimisations
buildsystem: more optimisations
2017-10-14 14:34:56 -07:00
Lukas Rusak
e119599518
scripts/build: use ninja for cmake builds 2017-10-13 15:01:50 -07:00
Radostan Riedel
de9d1af69f AArch64 projects: add 32-bit userspace support 2017-10-12 10:07:43 +02:00
MilhouseVH
60f117a793 buildsystem: eliminate unecessary awk usage 2017-10-09 13:11:43 +01:00
MilhouseVH
976e9de27d buildsystem: enable custom colours (or none at all) 2017-08-11 06:42:42 +01:00
MilhouseVH
bdcd5bc405 build/unpack: eliminate eval 2017-02-23 11:42:08 +00:00
MilhouseVH
99ef6bc05d PKG_BUILD: drop $ROOT, convert to absolute path 2017-02-17 18:17:13 +00:00
MilhouseVH
03366a102c TOOLCHAIN: drop $ROOT, convert to absolute path 2017-02-17 18:17:13 +00:00
MilhouseVH
d32a82e506 build: dump cmake command and variables before building 2017-01-03 18:02:48 +00:00
Christian Hewitt
03bbb0c0da Merge pull request #768 from lrusak/cmake-kodi
kodi use cmake
2016-12-06 21:54:45 +04:00
Lukas Rusak
e8bfc4a345
scripts/build: use unified /usr 2016-12-04 13:23:41 -08:00
Lukas Rusak
3a8e676198
scripts/build: allow building between packages 2016-12-02 11:10:43 -08:00
Jonas Karlman
4249089523 scripts/build|unpack: STAMP_DEPENDS device support 2016-10-28 20:08:08 +02:00
MilhouseVH
0a618a5e07 Merge pull request #796 from lrusak/build
scripts/build: cleanup
2016-10-13 11:54:46 +01:00
Lukas Rusak
107d60aebc
scripts/build: use MinSizeRel cmake build type 2016-10-13 00:29:17 -07:00
MilhouseVH
4992ff71be scripts/build: no need to setup toolchain twice and before really building 2016-10-04 03:52:12 +01:00
Stefan Saraev
c468820ba9
scripts/build: cleanup 2016-10-02 17:18:11 -07:00
MilhouseVH
af5010824e toolchain: only setup_toolchain when building 2016-09-30 06:19:25 +01:00
Lukas Rusak
101243265b
scripts/build: use debug option for target instead of host 2016-09-29 12:23:27 -07:00
Lukas Rusak
02f0de1a7e
scripts/build: cmake default to Release build type 2016-09-26 23:21:05 -07:00
Stephan Raue
aca0869cf4
scripts/build: add support to automatically build cmake projects if cmake is supported, add support for $PKG_CMAKE_OPTS_(TARGET|HOST|INIT|BOOTSTRAP)
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2016-09-26 23:20:33 -07:00
Stephan Raue
bc1419e886
scripts/build: reuse $TARGET_CONFIGURE_OPTS for $INIT_CONFIGURE_OPTS and $HOST_CONFIGURE_OPTS for $BOOTSTRAP_CONFIGURE_OPTS, rename $TARGET_NAME-init and $HOST_NAME-, cosmetics
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2016-09-26 23:20:33 -07:00
Stephan Raue
734003bbeb
config/functions: add support for 'setup_toolchain() init' and 'setup_toolchain() bootstrap'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2016-09-26 23:20:32 -07:00