116 Commits

Author SHA1 Message Date
MilhouseVH
cff7ea1ab8 scripts/unpack: always download missing tarballs - fixes PKG_DEPENDS_UNPACK 2019-07-11 00:36:22 +01:00
MilhouseVH
e0dc24ea42 scripts/unpack: ensure PKG_BUILD is unpack dir for all unpack functions
The unpack folder will be a temporary (isolated) unpack folder for
pre_unpack() and unpack(), but by the time of post_unpack() the folder will
have been moved into the main ${BUILD} "public" folder.

This change ensures that PKG_BUILD always references the correct folder at all times.
2019-07-11 00:36:22 +01:00
MilhouseVH
341aa35c3c buildsystem: perform unpack when custom function provided 2019-07-11 00:36:22 +01:00
MilhouseVH
adbe82298a scripts/unpack: avoid sub-process during custom unpack() 2019-07-11 00:36:22 +01:00
MilhouseVH
365faa110f buildsystem: support absolute paths in PKG_PATCH_DIRS 2019-07-11 00:36:22 +01:00
MilhouseVH
87eb94dc15 buildsystem: scripts/unpack becomes ACTIVE after clean 2019-07-03 05:35:03 +01:00
MilhouseVH
e76f0a39c0 buildsystem: unpack should recursively unpack, not build 2019-07-03 05:35:03 +01:00
MilhouseVH
c7babb3620 buildsystem: fix scripts/unpack after #3570 2019-06-24 10:06:27 +01:00
MilhouseVH
0ef9bd02e5 buildsystem: consistently use braces 2019-06-22 21:01:46 +01:00
MilhouseVH
5f777dcbe8 buildsystem: don't allow unpack folder to become visible until tagged 2019-06-13 22:12:21 +01:00
MilhouseVH
3f3395fdf4 buildsystem: switch rm -fr to rm -rf for consistency/OCD 2019-02-22 20:11:50 +00:00
MilhouseVH
ab67ec7ccc scripts/unpack: fix issue unpacking libhybris 2019-02-13 15:10:54 +00:00
MilhouseVH
cc9dfe5875 scripts/unpack: common directory unpacking is not thread-safe
emby and emby4 both unzip into ${BUILD}/system, which is fun when
both add-ons are being unpacked concurrently.
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
MilhouseVH
0661263dd8 buildsystem: restore set -e fail-on-error behaviour 2019-01-24 19:17:39 +00:00
MilhouseVH
b1a960bf8f scripts/unpack: stop sourcing package, reorg code 2018-12-18 03:43:28 +00:00
MilhouseVH
d0d28ee0a7 scripts/unpack: use pkg_call 2018-11-29 01:09:20 +00:00
Ian Leonard
c1471c1ffd scripts/unpack: convert to printf helper
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2018-11-21 18:58:29 +00:00
Ian Leonard
c7c25abb6a scripts/unpack: general cleanup
Convert to config/functions/die()
Use PKG_BUILD and have it quoted
Replace `` with $()

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2018-11-04 05:40:46 +00:00
CvH
843051d0f7 spdx: scripts/ 2018-07-17 23:58:49 +02:00
MilhouseVH
eefa6ebee4 buildsystem: use single = for consistency 2018-04-02 10:09:11 +01:00
MilhouseVH
7628290170 buildsystem: add a function to calculate stamps, switch from md5 to sha256 2018-04-02 10:09:11 +01:00
MilhouseVH
afcecf7b0d scripts/unpack: add PKG_SKIP_PATCHES support 2018-04-02 06:43:04 +01:00
Lukas Rusak
01f3934769 Merge pull request #2079 from Kwiboo/apply-patches
scripts/unpack: apply more patches
2017-10-14 10:12:57 -07:00
Radostan Riedel
de9d1af69f AArch64 projects: add 32-bit userspace support 2017-10-12 10:07:43 +02:00
Jonas Karlman
82bc756eac scripts/unpack: apply device specific PKG_PATCH_DIRS 2017-10-08 21:52:53 +02:00
Jonas Karlman
03caac8396 scripts/unpack: apply *.patch 2017-10-08 21:52:53 +02:00
MilhouseVH
e70485eb84 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-14 10:50:40 +01:00
MilhouseVH
096310f125 scripts/unpack: use git apply whenever patch includes a renamed file 2017-08-31 00:40:30 +01:00
MilhouseVH
976e9de27d buildsystem: enable custom colours (or none at all) 2017-08-11 06:42:42 +01:00
MilhouseVH
2a50418845 unpack: avoid calculating hash more than once 2017-03-23 15:14:02 +00:00
MilhouseVH
aa343ae3bf scripts: add comment to clarify usage 2017-03-23 14:59:46 +00:00
MilhouseVH
cecbc6fb3a Revert "unpack: avoid unecessary disk io"
This reverts commit 895122eb66e19c073f4aa5663856d7f07b19b914.
2017-03-23 14:33:17 +00:00
MilhouseVH
d94dace814 unpack: avoid yet more wildcard io 2017-02-23 11:42:08 +00:00
MilhouseVH
895122eb66 unpack: avoid unecessary disk io 2017-02-23 11:42:08 +00:00
MilhouseVH
bdcd5bc405 build/unpack: eliminate eval 2017-02-23 11:42:08 +00:00
MilhouseVH
2456e366fc unpack: alter logic so that packages without sources have a stamp 2017-02-23 11:42:08 +00:00
MilhouseVH
47d03c8586 unpack: add --unsafe-paths to allow patching outside of git working area 2017-02-18 00:58:12 +00:00
MilhouseVH
03366a102c TOOLCHAIN: drop $ROOT, convert to absolute path 2017-02-17 18:17:13 +00:00
Peter Vicman
67f90b2d84 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-01-30 17:23:57 +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