Commit graph

1192 commits

Author SHA1 Message Date
MilhouseVH
893a7870c4 scripts/pkgbuilder.py: small cleanup 2020-01-28 12:51:10 +00:00
MilhouseVH
aaf5f0e466 scripts/pkgbuilder.py: allow active jobs to finish once an error occurs 2020-01-28 11:01:13 +00:00
MilhouseVH
c567e7a9e8 scripts/pkgbuilder.py: avoid returning negative timeout which is fatal 2020-01-26 06:54:25 +00:00
MilhouseVH
e69922455f scripts/pkgbuilder.py: bookend combined log with searchable tags 2020-01-21 17:07:18 +00:00
Matthias Reichl
80f1b14da0
Merge pull request #4092 from MilhouseVH/le10_generator
buildsystem: switch to dynamic scheduler
2020-01-21 00:13:51 +01:00
MilhouseVH
21fd61ef7c
Merge pull request #4107 from HiassofT/le10-kernel-overlays-run
kernel-overlays: move volatile runtime data to /run
2020-01-19 19:27:18 +00:00
MilhouseVH
ecbbddd3d6 scripts/image: send all u-boot output to stdout 2020-01-18 09:29:38 +00:00
MilhouseVH
50e6f13896 scripts/pkgbuilder.py: fix failure to queue jobs to idle slots due to race 2020-01-17 20:08:10 +00:00
MilhouseVH
d4392ee718 scripts/pkgbuilder.py: use distinct colours 2020-01-17 15:07:07 +00:00
MilhouseVH
fe1dd1e8ac buildsystem: use an update lock when updating image and sysroot
cp (and potentially mkdir -p) are not atomic, and we have seen situations where two packages
concurrently copying the same file (eg. the udev rule for xf86-video-nvidia and
xf86-video-nvidia-legacy) will succeed for one package but the other package fails with
a "file exists" error (as the file didn't exist when it checked, but does exist when it
actually copies the file). Not even cp -f will avoid this issue.

There are several workarounds, but the most practical (and general) solution is to ensure
sequential updates of the image and shared sysroot directories.
2020-01-15 18:49:15 +00:00
Andre Heider
978cdeb5a6 build: use xargs to collect packages' json info 2020-01-15 18:49:15 +00:00
MilhouseVH
204d6d4f74 scripts/install: recursively install initramfs:target dependencies after PR4042 2020-01-15 18:49:15 +00:00
MilhouseVH
99ed1d6e31 buildsystem: recursive unpack & build is only needed by sequential builds 2020-01-15 18:49:15 +00:00
MilhouseVH
748befe904 scripts/genbuildplan.py: drop --reorder; cleanup args handling, and other processing. 2020-01-15 18:49:14 +00:00
MilhouseVH
00faa81294 scripts/pkgbuilder.py: replace parallel with something smarter 2020-01-15 18:49:11 +00:00
Jonas Karlman
d698731d42 scripts/clean: print build message with color 2020-01-12 21:28:09 +00:00
Jonas Karlman
dc8a2e1783 Amlogic: mkimage: do not configure extlinux for box 2020-01-12 21:19:58 +00:00
Jonas Karlman
5045ba2274 scripts/mkimage: configure extlinux for valid uboot_helper dtb 2020-01-12 21:19:58 +00:00
Jonas Karlman
3f06a76a4e scripts: remove UBOOT_VERSION 2020-01-12 21:19:58 +00:00
Matthias Reichl
dad3581441 kernel-overlays: move volatile runtime data to /run
Create the module and firmware symlink trees in /run/kernel-overlays
instead of /var/lib as recommended by FHS 3.0. This also allows us
to drop the After=var.mount ordering in the systemd service.

Signed-off-by: Matthias Reichl <hias@horus.com>
2020-01-10 12:03:23 +01:00
MilhouseVH
06e0928840
Merge pull request #3140 from InuSasha/features/build-root
buildsystem: add possibility to move the build paths outside the git …
2020-01-08 15:21:22 +00:00
MilhouseVH
42e7cb439f scripts/genbuildplan.py: output detailed plan in json format 2020-01-07 04:46:38 +00:00
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
61af0490ef image: don't fish out kernel files out of its build dir
Install the files required by $SCRIPTS/image to a hidden directory. That
way, the files won't get copied to the system filesystem, but the script
can access them without requiring access to the build directory,
2019-12-31 11:26:49 +01:00
Andre Heider
1dffafae2a build: add a "sysroot" build flag
Some addon dependencies do this locally on their own. With this, these
packages can now use the standard makeinstall() functions and access build
artifacts using get_install_dir() without polluting the sysroot folder.
2019-12-31 11:26:49 +01:00
Andre Heider
d31c44664c build: clean usr/local/ on packages too
Some packages use configure_target() but don't set the /usr prefix.
2019-12-31 11:26:49 +01:00
Andre Heider
912a91619b build: don't wipe devel files from packages, just don't install them
With the upcoming usage of the standard install_pkg folder for addon
dependencies, the devel files need to be accessible, e.g. ffmpegx for
tvheadend.

So don't wipe them from the package install folder, just skip copying
them to the image.
2019-12-31 11:26:49 +01:00
Andre Heider
4197b75c8e build: include initramfs:init in the build plan
Now with the dependencies in initramfs:init, we can include it in the
build plan to parallalize it. But just build them there, the kernel package
keeps installing them.
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
Jonas Karlman
30d63b56a0 Rockchip: drop rockchip-4.4 linux support 2019-12-31 09:09:33 +00:00
Jonas Karlman
09b236900e Rockchip: add mainline linux support 2019-12-31 09:09:33 +00:00
Jernej Skrabec
01c80a2b9f uboot_helper: Add Allwinner A20 boards 2019-12-29 09:08:50 +01:00
MilhouseVH
3e8a33500d buildsystem: "set -e" error handling not working for addon builds 2019-12-19 08:11:50 +00:00
Matthias Reichl
635f750dfb script/install: also install hwdb.d files from packages
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-11-23 12:48:48 +01:00
MilhouseVH
a58fc6d645 scripts/checkdeps: add file 2019-11-10 02:36:25 +00:00
MilhouseVH
7d47eded56 scripts/checkdeps: add xz 2019-11-10 02:26:04 +00:00
MilhouseVH
97711c9185 scripts/checkdeps: add make 2019-11-08 00:18:44 +00: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
a41d4f1e6b buildsystem: fix Python native modules that are using build host ABI (PEP3149) 2019-10-29 12:19:07 +00:00
MilhouseVH
a7cf257127 scripts/checkdeps: replace python2 with python3 2019-10-29 12:19:07 +00:00
Sascha Kuehndel (InuSasha)
2d78194f84
fix strip with new meson 2019-09-19 11:18:33 +02:00
Sascha Kuehndel (InuSasha)
266f0932c8
buildsystem: swap setup_toolchain parameter 2019-09-19 11:14:43 +02:00
Sascha Kuehndel (InuSasha)
73eef7432f
buildsystem: convert to support mesonbuild >= 0.51.0
- meson needs a host environment for cross-compile
- allow setup_toolchain to setup toolchain based on used build-system
- adjust creation of meson.conf
2019-09-19 11:14:43 +02:00
MilhouseVH
a404c441a0
Merge pull request #3804 from HiassofT/le10-systemd-fix-fs-corruption
fix filesystem corruption on reboot/shutdown
2019-09-18 19:43:35 +01:00
Matthias Reichl
938a23b9fc scripts/install: copy system.d files recursively
This allows installing drop-ins.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-09-13 23:44:06 +02:00
MilhouseVH
9a97f1b8ae Revert "scripts: image: BUILDER_NAME in image filename"
This reverts commit d55e191cda.
2019-09-13 17:02:42 +01:00
MilhouseVH
6dc483c169 Revert "Update scripts/image"
This reverts commit 3f77c14b60.
2019-09-13 17:02:41 +01:00
MilhouseVH
bc58b3302a
Merge pull request #3798 from sky42src/le92_bn_img
scripts: image: BUILDER_NAME in image filename
2019-09-13 13:45:12 +01:00