87 Commits

Author SHA1 Message Date
MilhouseVH
733bd0eba9 scripts/unpack: avoid calling scripts/extract for each tarball pattern
Each time scripts/extract is called it sources config/options which is an
expensive operation.

We call scripts/extract 8 times for each possible tarball pattern, and for
7 of those 8 calls scripts/extract does nothing but source config/options
and then exit.

This change is more efficient, while functionally equivalent.
2017-09-20 19:05:44 +01:00
MilhouseVH
4bfb206432 unpack: avoid calculating hash more than once 2017-06-20 18:17:23 +01:00
MilhouseVH
b1c2191a20 scripts: add comment to clarify usage 2017-06-20 18:17:23 +01:00
MilhouseVH
0d3742b333 Revert "unpack: avoid unecessary disk io"
This reverts commit 895122eb66e19c073f4aa5663856d7f07b19b914.
2017-06-20 18:17:23 +01:00
MilhouseVH
39f13a26df unpack: avoid yet more wildcard io 2017-06-20 18:16:43 +01:00
MilhouseVH
5a290a3035 unpack: avoid unecessary disk io 2017-06-20 18:16:43 +01:00
MilhouseVH
cc7ba9c381 build/unpack: eliminate eval 2017-06-20 18:10:39 +01:00
MilhouseVH
61fe12c0c2 unpack: alter logic so that packages without sources have a stamp 2017-06-20 18:05:26 +01:00
Peter Vicman
ab43d6e255 scripts/unpack: use relative path for showing a patch file
from
APPLY PATCH (common)   /data/LibreELEC.tv/packages/audio/alsa-lib/patches/alsa-lib-USB_Soundblaster_HD.patch
to
APPLY PATCH (common)   packages/audio/alsa-lib/patches/alsa-lib-USB_Soundblaster_HD.patch
2017-06-20 18:04:28 +01:00
MilhouseVH
ed427bad70 unpack: add --unsafe-paths to allow patching outside of git working area 2017-06-20 17:46:20 +01:00
MilhouseVH
28a90c5bb3 TOOLCHAIN: drop $ROOT, convert to absolute path 2017-06-20 17:30:40 +01:00
MilhouseVH
4b599ac7b9 build: implement PKG_PATCH_DIRS 2016-12-06 18:25:25 +00:00
Jonas Karlman
4249089523 scripts/build|unpack: STAMP_DEPENDS device support 2016-10-28 20:08:08 +02:00
Jonas Karlman
c94e1b77b5 scripts/unpack: project arch patches 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
Jonas Karlman
89de68843e scripts/unpack: clean stale package build dir 2016-09-11 15:33:59 +02:00
Lukas Rusak
6cd2350411
cleanup: clean build scripts to make more reproducible builds 2016-08-29 14:55:00 -07:00
MilhouseVH
4737e78764 build: start using .libreelec-unpack 2016-06-08 08:13:39 +01:00
Stefan Saraev
c93ed64b82 configtools: move configtools to packages 2016-04-06 15:23:59 -07:00
MilhouseVH
7a428cd73b build: ignore PKG_SOURCE_DIR when not required 2016-03-29 22:51:55 +01:00
Peter Vicman
33c51330f7 imx6: update kernel, prepare for second kernel
"officially" supported kernel is branch 3.14-1.0.x-mx6-sr from solidrun (3.14.60 at the time of writing)
unofficial kernel is branch imx6-4.4.y from xbian thanks to mk01 (4.4.6+rt3)

patches can be in subfolder: projects/imx6/patches/linux/3.14-mx6-sr/
kernel config can be in subfolder: projects/imx6/linux/3.14-mx6-sr/linux.arm.conf
2016-03-24 18:28:34 +01:00
Lukas Rusak
76a4367644 scripts/unpack: fix to allow packages that don't unpack 2016-03-14 14:30:32 -07:00
MilhouseVH
875806cdac Add PKG_SOURCE_NAME for non-standard package tarballs 2016-03-13 23:47:12 -07:00
Zalaare
692b086ad0 Various $HOME/.openelec (vendor) fixes 2016-03-04 11:52:43 -05:00
Philipp Felix Hoefler
65643c1681 scripts/unpack: creates empty build-dir for packages without sources so deepmd5 works 2016-02-22 14:27:05 +01:00
Stephan Raue
6481621d97 scripts: update license headers
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2016-01-02 17:26:58 +01:00
Stefan Saraev
b674670ed6 buildsys: do poor man's md5deep 2015-10-23 15:13:44 +03:00
Stefan Saraev
b9284db4a3 (cosmetics) scripts/unpack: cosmetics 2015-08-22 19:31:59 +03:00
Stefan Saraev
a817547eb6 buildsys: use md5deep to check if package has changed 2015-08-03 11:55:37 +03:00
Stefan Saraev
7c35f31139 cleanup TODO in * 2015-04-07 12:08:46 +03:00
Stefan Saraev
4fe8fad558 buildsys: set default arch to x86_64. drop i386 support 2015-04-03 12:08:22 +03:00
Stefan Saraev
5f84ea64b8 scripts/unpack: also force rebuild on package version specific patch changes 2015-02-12 13:19:39 +02:00
Stefan Saraev
c30cb05863 buildsys: force package rebuild on $PKG_DIR/config/* change 2015-01-19 20:54:21 +02:00
MilhouseVH
10017668f2 Enable binary patching 2015-01-14 23:06:10 +00:00
Stefan Saraev
73f974aa59 scripts/unpack: also consider project specific patches changes 2015-01-12 19:32:19 +02:00
Stefan Saraev
fb2279d505 buildsys: show package name if not found
current error " no package.mk file found in " does not
give a hint what package (dependency) is missing
2014-08-17 18:32:24 +02:00
Stephan Raue
711b5fc4c3 scripts/unpack: add support for arch specific patches
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2014-05-24 16:22:33 +02:00
Stephan Raue
510b70b688 scripts/unpack: remove old and non working support to skip arch specific patches
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2014-05-24 03:01:11 +02:00
Stephan Raue
2a2b46570c scripts/unpack: simplyfing patching
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2014-05-23 17:23:17 +02:00
Stefan Saraev
a029deb2f1 buildsystem: clean up and cosmetics 2014-01-30 14:47:17 +01:00
Stephan Raue
7139ce0d21 scripts: remove packageformat v1 and v2 support, major buildsystem cleanup. now every package needs a 'package.mk' script
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2014-01-30 14:47:17 +01:00
Stefan Saraev
14066b010a scripts/unpack: add {pre,post}_patch. post_unpack before patching 2014-01-05 20:14:45 +02:00
Stefan Saraev
e784a2114f Revert "buildsystem: rework patching. prepare to remove patches.upstream/"
This reverts (part of) commit f920a33507852a9af865a399c877073bf52d3f8b.

patch --dry-run fails with patches generated with git format-patch --stdout..

closes #2856
2014-01-02 16:24:09 +02:00
Stefan Saraev
b8815448fb scripts/unpack: run $PKG_DIR/unpack after extraction 2014-01-02 15:48:22 +02:00
Stephan Raue
f60ec98c4d scripts/unpack: add support for pre_unpack(), unpack() and post_unpack() in package.mk
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2014-01-02 14:12:03 +01:00
Stefan Saraev
f920a33507 buildsystem: rework patching. prepare to remove patches.upstream/ 2014-01-02 13:59:46 +02:00
Stephan Raue
9a5a8c5917 scripts/unpack: add (initial) support to handle 'zip' archives
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-12-25 23:26:25 +01:00
Stephan Raue
0f3e2d4ffa update license headers
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-12-21 21:51:48 +01:00
Stephan Raue
82ed6edd4c scripts/unpack: move post_unpack() after patching
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-12-21 07:53:41 +01:00
Stephan Raue
70944b24e2 scripts/*: make development more colorfull :-)
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-12-20 15:51:09 +01:00