1063 Commits

Author SHA1 Message Date
MilhouseVH
54dd0475de config/functions: add build_with_debug() helper function (and support functions) 2018-02-19 07:08:48 +00:00
Matthias Reichl
ebaff257b9 config/path: define TARGET_KERNEL_PREFIX
Signed-off-by: Matthias Reichl <hias@horus.com>
2018-02-17 17:54:26 +01:00
MilhouseVH
5eea6a0cc4 functions: add helper to locate linux config 2018-02-08 04:02:29 +00:00
MilhouseVH
ed0b6da9b1 config/functions: add helper func to locate file/dir in standard hierarchy 2018-02-01 05:21:36 +00:00
CvH
b72acb8816
Merge pull request #2243 from MilhouseVH/le90_fix_noobs
NOOBS: shorten partition labels, add $DEVICE support
2018-01-29 14:35:07 +01:00
Adam Green
ad9e7560c8
buildsystem: add support for building extra packages specified in
project or device options

this has been added at the end of the virtual debug package as
this is the last point in the build system that any packages are
compiled before images are created
2018-01-06 01:49:09 +00:00
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
219a08aade kodi: remove obsolete options 2018-01-01 14:32:24 +00:00
Lukas Rusak
7df2673df4
Merge pull request #2323 from MilhouseVH/le90_source_functions_options
buildsystem: source functions earlier, validate project/arch earlier, refactor show_config
2017-12-31 09:53:13 -08:00
MilhouseVH
347374d70f config/functions: get_kernel_overlay_dir() returns a relative path, not absolute 2017-12-28 06:23:12 +00:00
James Millar
c3edfc6ee7 Cleanup path for SOURCES and allow SOURCES and TARGET to be defined by user 2017-12-21 15:16:24 -05:00
MilhouseVH
64156ea8c8 package cache: initialise with a function 2017-12-21 18:20:02 +00:00
MilhouseVH
bf71ef864b buildsystem: add configure_package function to finalise package initialisation 2017-12-20 06:25:03 +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
MilhouseVH
7dce074e20 config/options: call check_path/check_config earlier 2017-12-17 19:12:59 +00:00
MilhouseVH
b0aa03ef65 config/functions: include in config/options not config/path 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
Jonas Karlman
1168df439b linux: rebuild when config or patches changes 2017-12-11 00:03:10 +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
Radostan Riedel
a5cd1eee59
Merge pull request #2248 from MilhouseVH/le90_check_root
config/options: check if the effective uid is root (and bail if so)
2017-11-25 09:00:24 +01:00
MilhouseVH
fffd7fb134 config/options: LINUX_DEPENDS not observing correct kernel config when TARGET_PATCH_ARCH in effect 2017-11-24 20:49:22 +00:00
MilhouseVH
8ab6ed1ec5 NOOBS: shorten partition labels, add $DEVICE support 2017-11-23 04:00:37 +00:00
MilhouseVH
e4c752d394 config/options: check if the effective uid is root (and bail if so) 2017-11-22 23:40:51 +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
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