285 Commits

Author SHA1 Message Date
MilhouseVH
86f677ceea save_build_config: centralise 2019-08-17 12:49:39 +01:00
Matthias Reichl
a62c0088b7 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 21:02:12 +02:00
Matthias Reichl
a5bdc03af1 scripts/image: only include hex version in noobs os.json if NOOBS_HEX is set
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-06-27 01:37:29 +02:00
Matthias Reichl
e7e91da91c 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-06-27 00:38:04 +02:00
Matthias Reichl
6a01a9db3b scripts/image: copy config.txt and distroconfig.txt from INSTALL
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-06-26 21:56:54 +02:00
Matthias Reichl
9917b60837 scripts/image: copy firmware from INSTALL
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-06-23 02:09:03 +02:00
MilhouseVH
0e2b1c616b buildsystem: image - use HERE docs 2019-06-22 21:03:38 +01:00
MilhouseVH
0ef9bd02e5 buildsystem: consistently use braces 2019-06-22 21:01:46 +01:00
kszaq
f0b6c134bc scripts, tools: drop amlpkg building 2019-06-19 18:52:37 +01: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
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