Commit graph

341 commits

Author SHA1 Message Date
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
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
Adam Green
5c07717d25
scripts/image: export more variables to scripts/mkimage for use
within project specific bootloader/mkimage scripts
2017-12-13 08:33:27 +00:00
Adam Green
5fc0b1087e
scripts/image: allow INSTALL_SRC_DIR to be board specific 2017-12-13 08:33:25 +00:00
Radostan Riedel
c36fada03b Fix image creation for WeTek Devices 2017-11-27 10:02:07 +01:00
MilhouseVH
8ab6ed1ec5 NOOBS: shorten partition labels, add $DEVICE support 2017-11-23 04:00:37 +00:00
Lukas Rusak
50c0a1d4bb
scripts/image: restore old functionality 2017-11-11 11:53:57 -08:00
Lukas Rusak
5da14cfce5
u-boot: allow using UBOOT_SYSTEM 2017-11-11 10:32:53 -08:00
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
MilhouseVH
01eff6af7c path: optimize package processing 2016-09-30 03:23:01 +01:00
Lukas Rusak
6cd2350411
cleanup: clean build scripts to make more reproducible builds 2016-08-29 14:55:00 -07:00
MilhouseVH
46ceb4a3f6 image: fakeroot chokes on image names with meta chars 2016-08-26 20:24:29 +01:00
Immanuel Klinkenberg
e0bdb4a74d scripts/image: $RELEASE_DIR removing fix for Amlogic builds and cleanup 2016-08-15 20:28:34 +02:00
Alex Deryskyba
2edb1194fc scripts/image: Remove release directory after creating Amlogic OTA update package 2016-08-11 16:47:03 +02:00
Alex Deryskyba
2e1ddeb80f scripts/image: Include device tree image into Amlogic OTA update package 2016-08-11 16:47:03 +02:00
CvH
6d293503cb Merge pull request #164 from zalaare/Virtual-Staging
virtual: build system improvements
2016-08-01 18:54:26 +02:00
zalaare
4262d3fb4e scripts/image: use virtual package "virtual" for ovf creation dependencies 2016-08-01 12:46:42 -04:00
Immanuel Klinkenberg
ca1f6e1f3f Fix NAND auto installs on WeTek devices 2016-07-28 11:08:56 +02:00
zalaare
ce76ed6a5e scripts/image: add PROJECT_DIR, PROJECT, and DISTRO variables to mkimage script 2016-07-27 10:53:36 -04:00
islipfd19
b004f13828 Update image script to expose build filename
Update script image to expose build filename so that it can be accessed by external scripts; i.e. copying builds from Jenkins to web03.
2016-07-14 08:15:27 -04:00
kszaq
ba140c890e scripts/image: don't copy *-update.zip to target directory
This file is not needed as it's included in "full" ZIP already.
2016-07-04 20:28:26 +02:00
Lukas Rusak
be139097a9 scripts/image: cleanup leftover directories 2016-06-24 11:06:31 -07:00
Lukas Rusak
90e6188603 scripts/image: make the images as well when running make noobs 2016-05-20 13:18:28 -07:00