734 Commits

Author SHA1 Message Date
Sascha Kuehndel (InuSasha)
3cd7be6023
buildsystem: rework build script 2017-11-22 00:45:41 +01:00
Lukas Rusak
c35d631f23
add _python_* variables for host 2017-11-11 10:32:53 -08:00
Emil Velikov
3c3261fd1b config/graphic: enable COMPOSITE for vmwgfx
Just like all the other open-source xorg drivers, vmwgfx makes use of
the composite extension.
2017-10-29 13:44:46 +00:00
Emil Velikov
aace273fb1 config/graphic: remove swrast when using the virtual GPU drivers
The respective driver is already selected and build.
2017-10-29 13:44:46 +00:00
Emil Velikov
f1dfaa5afc config/graphic: add vc4 to "all" graphics drivers 2017-10-29 13:44:46 +00:00
MilhouseVH
786c08fa91 Merge pull request #2084 from lrusak/meson
add meson to buildsystem (use for systemd and glib)
2017-10-24 07:06:14 +01:00
Lukas Rusak
ce744dbda5
scripts/build: add meson to buildsystem 2017-10-20 14:18:59 -07:00
MilhouseVH
bae5a9d317 buildsystem: add TARGET_FEATURES 2017-10-17 23:21:11 +01:00
MilhouseVH
cfcb300e28 buildsystem: allow autoreconf on libtool
Running autoreconf on libtool is necessary after bumping to automake 1.15.1.

Build intltool before libtool.

Since libtool installs libtoolize, don't run --install whenever libtoolize isn't yet installed.
2017-10-16 19:07:14 +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
fa813ba288 Merge pull request #2078 from Kwiboo/show-distro-config
config/functions: call show_distro_config
2017-10-14 10:12:21 -07:00
Jonas Karlman
71de334efa v4l-utils: add option to build cec-ctl 2017-10-14 11:55:27 +02:00
Lukas Rusak
9f238abd91 Merge pull request #2083 from MilhouseVH/le90_add_python3
Python: support simultaneous Python2 and Python3
2017-10-13 14:33:54 -07:00
Matthias Reichl
ad9e8dc372 Add support for kernel overlays
Core Kernel modules are now installed to
/usr/lib/kernel-overlays/base/lib/modules instead of /usr/lib/modules

Firmware files are installed to
/usr/lib/kernel-overlays/base/lib/firmware instead of /usr/lib/firmware

Packages can choose to install their modules and/or firmwareinto a
different overlay directory than base so they are not automatically enabled.

A new systemd service kernel-overlays, which is run before any modules
are loaded, adds overlays enabled via /storage/.cache/kernel-overlays/*.conf

These conf files must either contain the name of a system overlay,
which will then be searched for in /usr/lib/kernel-overlays/, or an
absolute path starting with '/'.

Overlaying is implemented by symlinking files from the overlays
to /usr/lib/modules and /usr/lib/firmware as not all platforms
support overlayfs.

This overlaying system can also be used by addons to provide optional
kernel modules and/or firmware by storing the absolute path to the addon
directory in the conf file and shipping kernel modules in
<addondir>/lib/modules/<KERNELVER>.

To save space only symlinks for modules matching the currently
running kernel version are created as addons may want to ship
modules for older kernel versions as well to be backward-compatible
to older LibreELEC versions.

Changes since v1:
- fixup kernel-overlays-service: add before kmod-static-nodes.service
  Fix static device nodes for module autoloading not being created.
- fixup kernel-overlays-service: fail if /usr/lib/modules exists
- squash kernel overlays: use get_kernel_overlay_dir in linux/package.mk
- Add support for firmware files via kernel overlays
- config/functions: include kernel overlays in addon installation

Signed-off-by: Matthias Reichl <hias@horus.com>
2017-10-12 20:04:02 +02:00
Matthias Reichl
eee1d7ac63 addons: move addon installation functions to config/functions
Signed-off-by: Matthias Reichl <hias@horus.com>
2017-10-12 19:59:11 +02:00
Matthias Reichl
231d62653c config/functions: fix install_binary_addon library handling
xmlstarlet uses an exit code of 1 if the value wasn't found.
This causes the build to abort as the scripts are running with
"set -e".

Fix this so the code checking for empty responses can work
as intended.

Signed-off-by: Matthias Reichl <hias@horus.com>
2017-10-12 19:59:11 +02:00
Matthias Reichl
4b14c6c946 config/functions: only use PKG_ADDON_ID for install_binary_addon
Usage of PKG_NAME was a bug carried over from the original code
during refactoring. Since none of the addons set PKG_SECTION, and
therefore PKG_NAME and PKG_ADDON_ID were identical, this wasn't
noticed before.

Drop using PKG_NAME and only use PKG_ADDON_ID to fix this,
install_binary_addon can then also be used for addons which set
PKG_SECTION.

Signed-off-by: Matthias Reichl <hias@horus.com>
2017-10-12 19:59:11 +02:00
Matthias Reichl
2fc261ae8e config/functions: add function get_full_firmware_dir
Also update package.mk files to replace the hardcoded
/usr/lib/firmware paths.

Signed-off-by: Matthias Reichl <hias@horus.com>
2017-10-12 19:59:11 +02:00
Matthias Reichl
d101bdfa24 config/functions: add function get_full_module_dir
It returns the full module directory path, including /usr/lib/modules.

Use that in package.mk files to simply them and get rid of the
repeatedly added paths.

Signed-off-by: Matthias Reichl <hias@horus.com>
2017-10-12 19:59:11 +02:00
Christian Hewitt
09d09d240e Merge pull request #2087 from Raybuntu/6432
AArch64 projects: add 32-bit userspace support
2017-10-12 21:08:34 +04:00
Radostan Riedel
de9d1af69f AArch64 projects: add 32-bit userspace support 2017-10-12 10:07:43 +02:00
Christian Hewitt
0e838f9472 Merge pull request #2068 from CvH/9.0-addon-broken
add addon broken support to addon building
2017-10-12 11:00:41 +04:00
MilhouseVH
6822da552e config/functions: add listcontains function, and uses it 2017-10-11 09:18:08 +01:00
MilhouseVH
971f56b37c Python2: rename Python to Python2 2017-10-10 20:49:15 +01:00
MilhouseVH
9928350609 buildsystem: eliminate other unecessary sub process usage 2017-10-10 01:34:46 +01:00
MilhouseVH
cf6ed26936 buildsystem: eliminate unecessary grep usage 2017-10-09 13:11:43 +01:00
MilhouseVH
cf71811eec buildsystem: eliminate unecessary sed usage 2017-10-09 13:11:43 +01:00
Jonas Karlman
61e9c900c4 config/functions: call show_distro_config 2017-10-08 20:56:58 +02:00
MilhouseVH
98baf44167 buildsystem: unset all PKG_* variables before sourcing a new package 2017-10-07 22:04:17 +01:00
cvh
ac43838c8b scripts/install_addon: add addon broken support 2017-10-06 01:09:23 +02:00
MilhouseVH
4f1bf02dc6 config/functions: fix bash-4.4 issue, and possible undesirable behaviour with empty 2nd param 2017-08-15 23:09:58 +01:00
MilhouseVH
976e9de27d buildsystem: enable custom colours (or none at all) 2017-08-11 06:42:42 +01:00
MilhouseVH
24d4bd6f32 addons: use default install_binary_addon helper instead of boiler plate 2017-07-19 00:47:49 +01:00
MilhouseVH
b809dba94c Merge pull request #1778 from Kwiboo/shell-device-version
reduce $DEVICE complexity
2017-07-15 03:31:41 +01:00
MilhouseVH
fbf285b047 config/functions: ignore unexpanded wildcard 2017-07-14 19:25:23 +01:00
Jonas Karlman
388b357e04 config/path: reduce $DEVICE complexity 2017-07-11 21:19:07 +02:00
awiouy
bac88dcfe4 addon: add xbmc.service.library.xml 2017-07-05 22:33:34 +02:00
Lukas Rusak
314e413ab0
config/graphic: allow using vc4 driver 2017-05-19 12:00:34 -07:00
Christian Hewitt
099fdf2cbf Merge pull request #1597 from MilhouseVH/package_verify
build system: verify package downloads using sha256 checksum
2017-05-16 19:32:03 +04:00
MilhouseVH
44ba3aed75 config/path: unset LD_LIBRARY_PATH unconditionally 2017-05-10 22:29:02 +01:00
MilhouseVH
77a9346d4c config/path: avoid LD_LIBRARY_PATH trailing colon which breaks glibc build 2017-05-10 22:29:02 +01:00
MilhouseVH
32cb753e93 build system: verify package downloads using sha256 checksum 2017-05-05 18:34:35 +01:00
lsellens
0ee76f6d27 config: remove unused/outdated file 2017-03-24 22:04:04 +04:00
MilhouseVH
d78ee5f22c config/path: addons need kodi 2017-03-23 18:02:53 +00:00
Lukas Rusak
c7b19e897c
config/functions: just check if the linux.*.conf exists 2017-03-14 12:06:20 -07:00
MilhouseVH
0fcffdb893 Merge pull request #1287 from lrusak/virtio-gpu
virtio-gpu support (qemu/kvm)
2017-03-14 18:28:42 +00:00
Lukas Rusak
d2b7dd2152
config/path: use $DEVICE.$TARGET_ARCH 2017-02-28 09:35:46 -08:00
Christian Hewitt
e504d83ad8 Merge pull request #1370 from kszaq/addon_stripping
Addon stripping improvements
2017-02-26 18:35:21 +04:00
kszaq
55bafe4c72 config/functions: do not print strip errors
We cannot strip scipts but we also don't want to see errors regarding this.
2017-02-18 23:28:18 +01:00
MilhouseVH
9d149e88e8 fakeroot: move to build directory 2017-02-17 18:22:41 +00:00