Commit Graph

793 Commits

Author SHA1 Message Date
Ian Leonard
ef93ecf54b scripts/checkdeps: cleanup
Replace "which" with "command -v", which is part of POSIX.

Make offering to install packages contingent on having the sudo command.
Not every distro uses sudo. It is optional in Gentoo, for example.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2018-10-05 15:03:54 +00: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
MilhouseVH
f1afb0c4e3 Merge pull request #3003 from sky42src/le90_image_builder_name
scripts: image: show BUILDER_NAME in System Information and LE settings
2018-10-02 11:39:05 +01:00
sky42
1db81d6041 scripts: image: show BUILDER_NAME in System Information and LE settings 2018-10-02 12:20:02 +02:00
Lucian Muresan
2fc46de348 host distro support: added sabayon, quite straightforward, as a flavour of gentoo 2018-09-23 22:16:33 +02:00
CvH
211a5c29b9 scripts/get: fix previous commit 2018-09-23 11:58:12 +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
CvH
663a67a30e scripts/get: wget uses bar indicators 2018-09-17 19:30:11 +02:00
CvH
c4a861bc68 scripts/get: make hash output easier to copy 2018-09-13 14:15:44 +02:00
CvH
7193cc0feb Merge pull request #2964 from MilhouseVH/le90_fix_install_proj_dev
buildsystem: better support for project and device config files
2018-09-10 15:04:01 +02:00
MilhouseVH
57dc48fe0e scripts/install: add install support for project and device configs 2018-09-08 20:56:04 +01:00
MilhouseVH
327e33a320 scripts/get, tools-distro-tool: fix wget redirection issue 2018-08-30 04:39:33 +01:00
CvH
a588776dff Merge pull request #2892 from antonlacon/compression-levels
scripts/image: use maximum lzo and zstd compression level for images
2018-08-28 21:12:52 +02:00
Matthias Reichl
1c5d050bc0 scripts/extract: improve tar file handling
GNU tar can automatically detect the compression format based on
the file name since at least 2006. So just use "tar xf" to extract
all tarballs and drop the redundant cases.

GNU tar can also strip the top level directory from the archive
which allows us to extract it to the directory wanted by the
build system ($PKG_NAME-$PKG_VERSION), so packages don't need to
specify PKG_SOURCE_DIR if the top level dir from that and scripts/unpack
doesn't need to rename the directory.

If PKG_SOURCE_DIR is not set the top level dir is automatically
stripped from the archive and extracted to $BUILD/$PKG_NAME-$PKG_VERSION

If PKG_SOURCE_DIR is set, scripts/extract behaviour is unchanged.

Signed-off-by: Matthias Reichl <hias@horus.com>
2018-08-26 22:26:04 +02:00
Sascha Kuehndel (InuSasha)
58b17b1a74 create_addon now also writes a summary when log writing is used.
on special wish of @cvh
2018-08-22 21:27:53 +02:00
Jonas Karlman
90cbdbc2e3 RK3399: drop odroidn1 2018-08-21 23:37:45 +02:00
chewitt
d2fa2d6cc8 mkimage: support tty in run mode 2018-08-20 22:28:32 +04: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
2f2a1ff4b7 scripts/git_version: delete as no users in tree
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2018-08-15 22:38:50 +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
Sascha Kuehndel (InuSasha)
caa24ac9ad create_addon: improve done message, a bit 2018-08-06 19:12:55 +02:00
Sascha Kuehndel (InuSasha)
0c82bdadab create_addon: two improvments
* allow to build addons with sourced `PKG_IS_ADDON` variable
* change state of "not supported" messages from `ERROR` to `SKIP`
2018-08-04 13:18:12 +02:00
MilhouseVH
1defb5a9de scripts/create_addon: minor cleanup 2018-08-01 02:23:11 +01:00