Commit graph

341 commits

Author SHA1 Message Date
MilhouseVH
54804c7e15 save_build_config: centralise 2019-08-15 20:51:34 +01:00
MilhouseVH
5666d4825d image: log board details prior to install 2019-08-13 11:30:23 +01:00
MilhouseVH
7ba6d1048c image: validate UBOOT_SYSTEM 2019-08-13 11:30:23 +01:00
Matthias Reichl
f4fdfefbed scripts/image: drop /sbin from PATH
All programs needed for image creation are available in toolchain.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-07-16 20:20:37 +02:00
Matthias Reichl
81d8d58d7e scripts/image: only include hex version in noobs os.json if NOOBS_HEX is set
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-07-03 20:05:20 +02:00
Matthias Reichl
a28f2e7688 scripts/image: create NOOBS tarballs with fakeroot
Otherwise builder user ID will leak in and storage partition
will be owned by that instead of root and lots of services
will fail to start.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-07-03 20:05:20 +02:00
Matthias Reichl
0bf0cba705 scripts/image: copy config.txt and distroconfig.txt from INSTALL
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-07-03 20:05:20 +02:00
Matthias Reichl
1994c2be0d scripts/image: copy firmware from INSTALL
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-07-03 20:05:20 +02:00
MilhouseVH
cd71230bdb buildsystem: image - use HERE docs 2019-06-17 01:48:35 +01:00
MilhouseVH
90be11322a buildsystem: consistently use braces 2019-06-16 03:35:56 +01:00
MilhouseVH
b48622994b
Merge pull request #3212 from antonlacon/rpi-zstd-img
rpi: switch to zstd squashfs images
2019-05-10 00:43:43 +01:00
CvH
851f654777
Merge pull request #3458 from kszaq/drop_aml_3.14
Goodbye Amlogic 3.14
2019-05-04 07:22:11 +02:00
Ian Leonard
3b75089c97 scripts/image: zstd: use a 1MB blocksize by default
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2019-05-03 23:49:08 +00:00
Ian Leonard
1fcc9d3247 image: drop OPENELEC_ARCH from /etc/os-release
Also swaps the necessary variable check in busybox/init to acoomodate OPENELEC_ARCH
may or may not exist, while LIBREELEC_ARCH will be assumed to exist.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2019-05-03 23:11:24 +00:00
kszaq
9ad3fbe815 scripts, tools: drop amlpkg building 2019-05-04 00:01:55 +02:00
Jonas Karlman
e92b858d9e scripts/image: build an image for each UBOOT_SYSTEM 2019-05-01 16:27:07 +00:00
Jonas Karlman
0d2d9f8c29 scripts/image: use BUILD_NAME in mkimage 2019-05-01 16:27:04 +00:00
Jonas Karlman
41329e36e5 scripts/image: pass UUID_SYSTEM to mkimage 2019-05-01 16:27:02 +00:00
Jonas Karlman
a74435d4de scripts/image: extract function do_mkimage 2019-05-01 16:27:00 +00:00
MilhouseVH
956b10dd55 scripts/image: restore checkdeps call 2019-02-25 20:29:34 +00:00
MilhouseVH
9af18cf35e scripts/image: restore original licence/copyright and resolve debate 2019-02-13 15:10:54 +00:00
MilhouseVH
98c021069c buildsystem: make multithread the default (THREADCOUNT=100%) 2019-02-08 17:17:43 +00:00
MilhouseVH
d26e29c4d9 scripts: rename legacy image and create_addon scripts, new make targets 2019-02-08 17:17:43 +00:00
MilhouseVH
0ebc6fef63 build system: add parallel build support; use new "image" package 2019-02-08 17:17:43 +00:00
CvH
679966ca02 scripts/image: add OVA_SIZE variable 2019-01-25 19:24:53 +01:00
Christian Hewitt
52948b4403 image: add PROJECT to /etc/os-release 2018-12-24 07:44:16 +04:00
Ian Leonard
c055a512de scripts/image: fixup mediacenter test
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2018-10-25 20:35:43 +00:00
Christian Hewitt
27a4a4763b u-boot: only append suffix when creating multiple u-boot variants 2018-10-06 10:00:48 +04:00
MilhouseVH
649960709e
Merge pull request #2992 from antonlacon/blocksize
scripts/image: use 256kb blocksize for squashfs images
2018-10-04 00:58:45 +01:00
sky42
1db81d6041 scripts: image: show BUILDER_NAME in System Information and LE settings 2018-10-02 12:20:02 +02:00
Ian Leonard
cd6287cc54 scripts/image: use custom blocksizes for squashfs images
Squashfs allows configuring a blocksize between 4KB and 1MB. The default is
128KB. Increasing blocksize, in general, increases compression efficiency
at a cost of increased access time. Using 256KB for a blocksize appears to be
a sweet spot balancing the two for gzip and zstd. Blocksize 512KB appears
right for lzo.

Gzip decreases by ~700KB.
Lzo decreases by ~1.25MB.
Zstd decreaes by ~2.5MB.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2018-09-22 21:28:01 +00:00
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