260 Commits

Author SHA1 Message Date
Ian Leonard
aecf28220e scripts/image: use maximum lzo and zstd compression level for images
For LZO, this saves about 40kb on img.gz size.

For GZIP, this saves about 4kb on img.gz size.

For ZSTD, this saves about 500kb on img.gz size.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2018-08-16 22:15:17 +00:00
Ian Leonard
bfce57a7bd scripts/image: fixup installed Kodi version in RELEASE
Switch scripts/git_version for get_pkg_version out of
config/functions. Resolves being unable to report Kodi's version
in RELEASE file.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2018-08-15 21:22:37 +00:00
Ian Leonard
42c4885f4e treewide: drop references to powerpc64
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2018-08-15 21:22:37 +00:00
Ian Leonard
32174df9f8 scripts/image: cleanup for clarity, code style and organization
Have IMAGE_NAME check for devel version before applying default
naming.

Generate all the baselayout directories in a for loop instead of
the long list of mkdir -p one after the other.

For 64-bit builds, $INSTALL/usr is already generated for all
arches a few lines previously, so don't repeat here.

There are changes to comments for corrections and clarity.

Unifies code style: $() versus `` and spaces before ;

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2018-08-15 21:22:37 +00:00
CvH
843051d0f7 spdx: scripts/ 2018-07-17 23:58:49 +02:00
Matthias Reichl
2f5a3b0871
Merge pull request #2742 from MilhouseVH/le90_add_AUTHOR
scripts/image: add BUILDER_NAME, BUILDER_VERSION support
2018-07-08 12:36:59 +02:00
Jonas Karlman
7231f4e188 scripts/image: pass BOOTLABEL and DISKLABEL to mkimage 2018-06-02 19:49:46 +02:00
MilhouseVH
4ffd33a3f9 scripts/image: add BUILDER_NAME, BUILDER_VERSION 2018-06-02 08:19:50 +01:00
Tomas Kelemen (vudiq)
54bb0e77dd scripts/image: fix noobs tarball 2018-05-30 21:21:16 +02:00
MilhouseVH
d8d723d7c2 init: drop BOOT_IMAGE from RPi/RPi2/Rockchip; fix img upgrades 2018-05-15 22:14:42 +01:00
Matthias Reichl
0f1de8fe39 scripts/image: create .sha256 files of tar and zip files
Signed-off-by: Matthias Reichl <hias@horus.com>
2018-04-24 15:07:27 +02:00
Jonas Karlman
c9f12da73c scripts/image: support periodic image names 2018-04-22 20:37:56 +02:00
Christian Hewitt
15c3e9e90c
Merge pull request #2518 from MilhouseVH/le90_save_build_config
buildsystem: save/load build config, simplify clean and build --all
2018-02-25 14:13:37 +04:00
Radostan Riedel
d450819323
Merge pull request #2506 from HiassofT/le9-kernel-toolchain
Compile kernel on 64/32 split archs without redefining TARGET_PREFIX
2018-02-23 20:12:59 +01:00
MilhouseVH
1a6d8a8f06 buildsystem: save/load build config 2018-02-23 10:19:52 +00:00
MilhouseVH
1edbc1b10f config/options: initialise the debug helper caches 2018-02-19 07:08:48 +00:00
Matthias Reichl
a5f4761560 scripts/image: use kernel toolchain to strip modules
Signed-off-by: Matthias Reichl <hias@horus.com>
2018-02-17 17:54:34 +01:00
MilhouseVH
964e1c3755 scripts/image: use helper function 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
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