Commit Graph

182 Commits

Author SHA1 Message Date
Adam Green
22498e05ec config/functions: cache device folder packages first
this is needed for devices that require specific packages for
example u-boot, we can keep changes within the device folder
rather than adding multiple definitions to the project package
2018-01-05 03:39:25 +00:00
MilhouseVH
347374d70f config/functions: get_kernel_overlay_dir() returns a relative path, not absolute 2017-12-28 06:23:12 +00:00
MilhouseVH
64156ea8c8 package cache: initialise with a function 2017-12-21 18:20:02 +00:00
MilhouseVH
4e77097d23 buildsystem: set PKG_NAME and default PKG_*DESC only when sourcing a package 2017-12-20 06:24:59 +00:00
MilhouseVH
85a97582de buildsystem: get_module_dir() is expensive, optimize 2017-12-17 19:12:59 +00:00
MilhouseVH
8af15ed22a config/show_config: move to separate file 2017-12-17 19:12:59 +00:00
MilhouseVH
52f179d7da config/functions: cosmetic typos 2017-12-17 19:12:59 +00:00
cvh
d9ae7fa438 buildsystem: add DRIVER_ADDONS_SUPPORT 2017-12-14 11:21:58 +01:00
cvh
5df12e5de5 config/functions: add function install_driver_addon_files 2017-12-14 11:21:58 +01:00
MilhouseVH
dc30a81d1c shadow: move from .config to .cache 2017-12-08 03:31:30 +00:00
MilhouseVH
dcd653b5a4 config/functions: match user only at beginning of line 2017-12-07 21:05:51 +00:00
Lukas Rusak
712ce0b82e busybox: allow changing root password 2017-12-01 20:06:40 +00:00
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
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