Commit Graph

895 Commits

Author SHA1 Message Date
MilhouseVH
e48447f305 config/multithread: dump stats after a build 2019-12-31 13:50:00 +00:00
Andre Heider
8e4663912a build: move install dirs out of the build dir
Instead of cluttering $BUILD we now have
- $BUILD/build         sources and builds of packages
- $BUILD/install_pkg   installed packages
- $BUILD/install_init  installed packages for initramfs
2019-12-31 11:26:49 +01:00
Andre Heider
ae663c98e9 build: fix calculate_stamp() for multiple corner cases
- follow symlinks (as used by RPi/Slice)
- don't include hidden files like vi swap files (lol)
- remove duplicates (like $LINUX_DEPENDS for linux itself)
- sort by filename, not by hash
- don't use one sha256sum process per file, use xargs to pass all files to
  one process.
2019-12-31 11:26:49 +01:00
Andre Heider
b56c0f0619 build: add missing build stamp input data
Always include project specific package files
(e.g. projects/Amlogic/packages/systemd).
2019-12-31 11:26:49 +01:00
Andre Heider
3c8862a701 build: add and use get_install_dir()
Don't hardcode get_build_dir()/.install_pkg in multiple places.
2019-12-31 11:26:49 +01:00
Andre Heider
267d57d7f3 build: add and use PKG_INSTALL
Set it depending on the target, so there's no need to hardcode
$PKG_BUILD/.install_[pkg|init] in multiple places.
2019-12-31 11:26:49 +01:00
Andre Heider
4cca6adcb8 build: remove dead variabe STAMPS_NOARCH 2019-12-31 11:26:49 +01:00
Andre Heider
b40cfcaa41 build: remove dead variable INSTALL_INIT 2019-12-31 11:26:49 +01:00
Jernej Škrabec
679c235e01 Merge pull request #4070 from MilhouseVH/le10_fix_addons_error
buildsystem: "set -e" error handling not working for addon builds
2019-12-28 19:21:25 +01:00
MilhouseVH
3e8a33500d buildsystem: "set -e" error handling not working for addon builds 2019-12-19 08:11:50 +00:00
Andre Heider
882ecdecc9 llvm: fix cross compilation issues
llvm-config is a compiled host binary used to get infos about the
target installation (sic). It currently lives in the target sysroot,
which may not be usable because now we're mixing build host and
target libraries:

toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/bin/llvm-config-host:
  relocation error: /lib/x86_64-linux-gnu/libpthread.so.0: symbol
                    __libc_vfork version GLIBC_PRIVATE not defined in file
                    libc.so.6 with link time reference

Move it to $TOOLCHAIN/bin where host binaries belong. But llvm-config
doesn't support spitting out a library path from a different prefix than
its own (which explains the placement in sysroot). Patch that in to
prevail sanity.

Then disable the z3 solver so the target doesn't use build host libraries.
But that's broken too, use debian's patch to fix it up (with the
addition to default to "OFF" instead on "ON").

Finally, disable new options and use the build type "MinSizeRel" for the
host as well, courtesy if @MilhouseVH.
2019-12-16 17:54:26 +01:00
MilhouseVH
b28a93e0a6 Merge pull request #3970 from chewitt/options
options: support per-buildsystem options
2019-12-15 02:00:16 +00:00
Sascha Kühndel
ebaff1375f Merge pull request #4054 from MilhouseVH/le10_fix_flag_enabled_var
flag_enabled(): declare is local by default - remove it
2019-12-13 13:50:28 +01:00
MilhouseVH
8a7a9f3efe flag_enabled(): declare is local by default - remove it 2019-12-12 03:16:31 +00:00
chewitt
cf58340a27 options: support per-buildsystem options 2019-12-01 07:59:44 +00:00
MilhouseVH
6105f67998 post_install_addon: new package function 2019-11-17 20:50:31 +00:00
Jernej Škrabec
b4663fc070 Merge pull request #3965 from MilhouseVH/le10_python3_le_scripts
buildsystem: use /usr/bin/python3 in scripts
2019-11-15 08:06:47 +01:00
MilhouseVH
db6d111ecf scripts/checkdeps: can't install gcc if gcc not installed. Duh. 2019-11-08 00:09:26 +00:00
MilhouseVH
6eb226b1fb buildsystem: use /usr/bin/python3 in scripts 2019-11-07 10:33:47 +00:00
MilhouseVH
f03406f33b buildsystem: fix BUILD_WITH_DEBUG usage in config/optimize (v2) 2019-11-04 16:42:14 +00:00
MilhouseVH
021a47be35 buildsystem: fix BUILD_WITH_DEBUG usage in config/optimize 2019-11-04 16:34:55 +00:00
MilhouseVH
8df34cfa11 buildsystem: remove obsolete variable 2019-11-04 16:34:55 +00:00
MilhouseVH
0dea1a8b17 buildsystem: optimize for size when building with debug 2019-11-04 16:34:55 +00:00
MilhouseVH
a41d4f1e6b buildsystem: fix Python native modules that are using build host ABI (PEP3149) 2019-10-29 12:19:07 +00:00
MilhouseVH
fcfee6ff42 config/functions: add Python bytecode/source code helper functions 2019-10-29 12:19:07 +00:00