Commit Graph

230 Commits

Author SHA1 Message Date
Radostan Riedel
2c3ae36680 New package gcc-linaro-aarch64-linux-gnu
Odroid_C2: move gcc-linaro-aarch64-elf to projects
Odroid_C2: move gcc-linaro-arm-eabi to projects
2017-10-16 10:04:11 +02: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
Christian Hewitt
157816bac7 Merge pull request #2076 from Kwiboo/mkimage-patitions
scripts/mkimage: rename gpt partitions and use generated serial number
2017-10-12 21:33:12 +04:00
Radostan Riedel
de9d1af69f AArch64 projects: add 32-bit userspace support 2017-10-12 10:07:43 +02:00
Jonas Karlman
6176f8b96b scripts/mkimage: use generated serial number for system partition
Also removes unused UUID_SYSTEM variable
2017-10-08 20:08:02 +02:00
MilhouseVH
8d1d97f0d1 squashfs: change upstream to kernel.org; update to squashfs-1a6ffc7 2017-09-22 13:58:12 +01:00
Jonas Karlman
46b69d29bf scripts/image: reduce $DEVICE complexity 2017-07-11 21:19:07 +02:00
cvh
9910717225 scripts/image: cleanup os-release 2017-07-06 12:23:41 +02:00
cvh
3a0fb61ab1 scripts/image: cleanup shell output 2017-07-06 12:23:41 +02:00
Lukas Rusak
44dc5c9647 scripts/image: use $DEVICE.$TARGET_ARCH 2017-02-28 09:35:49 -08:00
kszaq
7672efd098 scripts/image: print depmod errors so that we can see unresolved symbols when building 2017-02-26 15:39:03 +01:00
MilhouseVH
5d786baaf2 INSTALL: drop $ROOT, convert to absolute path 2017-02-17 18:17:13 +00:00
MilhouseVH
03366a102c TOOLCHAIN: drop $ROOT, convert to absolute path 2017-02-17 18:17:13 +00:00
CvH
90aabe1855 Merge pull request #1266 from lrusak/virtual
merge Virtual project into Generic
2017-02-03 20:19:05 +01:00
Lukas Rusak
f1bc9dd3f5 Generic: merge Virtual project 2017-02-01 16:47:13 -08:00
MilhouseVH
626250b7ef script/images: use get_pkg_directory helper 2017-01-31 22:09:30 +00:00
MilhouseVH
fe6a92f934 Fixup post-/usr: need /usr/lib64 2016-12-14 15:08:19 +00:00
Lukas Rusak
2f9e111b3c scripts/image: use unified /usr 2016-12-04 13:23:41 -08:00
Jonas Karlman
203000a859 scripts/image: bootloader device support 2016-10-28 20:08:08 +02:00
kszaq
2de641bb52 Add a possibility to create the projects that could have several different devices
Such projects should be compiled differently for each device.
A device for multi-device projects must be specified in the
command line.

Originally created by Codesnake, adapted for LE.
767125372c
2016-10-28 20:08:08 +02:00
Lukas Rusak
2974e17bce lcdproc: remove package 2016-10-23 20:18:50 +02:00
Alex Deryskyba
28b7ee0514 scripts/image: Wipe (format) data and cache partitions for clean NAND installs on Amlogic-based devices 2016-10-22 12:08:12 +02:00
MilhouseVH
a6c46573ed image: mkknlimg no longer necessary with 4.8 kernel 2016-10-13 01:20:28 +01:00
Lukas Rusak
14c62f8f3d Merge pull request #781 from MilhouseVH/path_optimise
path: optimize package processing
2016-09-30 10:43:17 -07:00
MilhouseVH
af5010824e toolchain: only setup_toolchain when building 2016-09-30 06:19:25 +01:00