81 Commits

Author SHA1 Message Date
Lukas Rusak
3fa587eb52
add ability to log qa checks 2022-06-28 15:24:22 -07:00
MilhouseVH
a1e700fd87 buildsystem: log pkg_call that failed 2020-02-19 07:49:35 +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
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
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
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
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
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
4e214471bf buildsystem: clean/install - dquote both sides 2019-06-17 01:48:38 +01:00
MilhouseVH
f9a2623d06 buildsystem: build/unpack - simplify some logic 2019-06-17 01:48:38 +01:00
MilhouseVH
90be11322a buildsystem: consistently use braces 2019-06-16 03:35:56 +01:00
MilhouseVH
2e3a2dab67 buildsystem: cleanup - PACKAGE_NAME is redundant 2019-06-16 02:59:20 +01:00
MilhouseVH
0ebc6fef63 build system: add parallel build support; use new "image" package 2019-02-08 17:17:43 +00:00
MilhouseVH
0661263dd8 buildsystem: restore set -e fail-on-error behaviour 2019-01-24 19:17:39 +00:00
MilhouseVH
fca1adc412 scripts/install: stop sourcing package, reorg code 2018-12-18 03:43:28 +00:00
MilhouseVH
b5be90e394 scripts/install: use pkg_call 2018-11-29 01:09:20 +00:00
Ian Leonard
4ec394b3e3 scripts/install: convert to build_msg
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2018-11-21 18:58:29 +00:00
Ian Leonard
59b2228fcd buildsystem: replace printf with echo where able
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2018-11-04 05:40:46 +00:00
MilhouseVH
57dc48fe0e scripts/install: add install support for project and device configs 2018-09-08 20:56:04 +01:00
CvH
843051d0f7 spdx: scripts/ 2018-07-17 23:58:49 +02: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
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
Lukas Rusak
fb12c9fcf5
scripts/install: use unified /usr 2016-12-04 13:23:41 -08:00
Stephan Raue
6481621d97 scripts: update license headers
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2016-01-02 17:26:58 +01:00
Stefan Saraev
fbf57d1b47 (cosmetics) buildsys: remove FORCE_INSTALL 2015-08-22 19:31:55 +03:00
Stefan Saraev
24bee9dfb8 (cosmetics) scripts/install: cosmetics 2015-08-22 19:31:48 +03:00
Stephan Raue
63508f3df3 scripts/install: install modprobe.d files to /lib
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2014-11-17 22:39:37 +01:00
Stephan Raue
2cb7cd6f2b buildsys: add $PKG_DIR/modprobe.d/ support to scripts/install 2014-10-16 14:32:21 +02:00
Stefan Saraev
fb2279d505 buildsys: show package name if not found
current error " no package.mk file found in " does not
give a hint what package (dependency) is missing
2014-08-17 18:32:24 +02:00
Stephan Raue
a32516addb scripts/install: move systemd to /usr/lib
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2014-02-20 17:06:25 +01:00
Stefan Saraev
6fc6264498 buildsystem: meh. no PKG_DEPENDS anymore. finaly 2014-02-04 21:53:19 +02:00
Stephan Raue
7139ce0d21 scripts: remove packageformat v1 and v2 support, major buildsystem cleanup. now every package needs a 'package.mk' script
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2014-01-30 14:47:17 +01:00
Stephan Raue
0f3e2d4ffa update license headers
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-12-21 21:51:48 +01:00
Stephan Raue
70944b24e2 scripts/*: make development more colorfull :-)
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-12-20 15:51:09 +01:00
Stephan Raue
b9a320772f scripts/install: add support for 'init' packages, add more support for new package format
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-12-18 17:35:14 +01:00
Stefan Saraev
debacf21ae buildsystem: clean up and cosmetics 2013-12-13 14:07:31 +02:00
Stefan Saraev
09f88b66e9 rework suspend/resume 2013-08-29 21:42:45 +03:00
Stephan Raue
4f6e36aa42 scripts/install: cleanup old init support
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-23 12:37:43 +02:00
Stephan Raue
2d27d172b1 scripts/install: add support for 'debug.d' folders
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-18 14:09:30 +02:00
Stephan Raue
213f5b9402 scripts/install: add support for 'modules-load.d' dirs
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-08 04:18:14 +02:00
Stephan Raue
4a5a22c670 scripts/install: add support for sleep.d dirs
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-06 13:43:03 +02:00
Stephan Raue
5a3f4987f0 scripts/install: add support for 'sysctl.d' dirs
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-05 18:42:16 +02:00
Stephan Raue
693d165995 scripts/install: add support for system.d dirs
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-05 10:44:06 +02:00
Stephan Raue
02937b4144 scripts/install: add support for '$PKG_DIR/system.d' dir and install *.d dirs before we run the install script
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-05 10:42:58 +02:00
Stephan Raue
d8cb676009 scripts/install: new buildsystem: add support for pre_install() and post_install() hooks via package.mk
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-07-30 21:37:31 +02:00
Stephan Raue
9ea8fa2b43 scripts: depends now on bash, bye bye dash i dont like you. This should fix #2481
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-07-19 02:35:52 +02:00
Stephan Raue
713277af9c scripts: implement new packageformat (v3) support
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-07-17 06:12:14 +02:00