summaryrefslogtreecommitdiffstats
path: root/include/unpack.mk
Commit message (Collapse)AuthorAgeFilesLines
* include: use libdeflate's gzip to decompressRosen Penev2023-01-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libdeflate decompresses much faster than gzip. Example: ~/d/openwrt> time gzip -dc dl/cmake-3.25.1.tar.gz > /dev/null ________________________________________________________ Executed in 1.01 secs fish external usr time 912.61 millis 1.67 millis 910.94 millis sys time 32.21 millis 0.25 millis 31.96 millis ~/d/openwrt> time libdeflate-gzip -dc dl/cmake-3.25.1.tar.gz > /dev/null ________________________________________________________ Executed in 523.04 millis fish external usr time 415.48 millis 1.07 millis 414.41 millis sys time 107.74 millis 0.15 millis 107.59 millis ~/d/openwrt> time gzip -dc dl/tessdata-4.1.0.tar.gz > /dev/null ________________________________________________________ Executed in 8.99 secs fish external usr time 8.90 secs 530.00 micros 8.90 secs sys time 0.07 secs 63.00 micros 0.07 secs ~/d/openwrt> time libdeflate-gzip -dc dl/tessdata-4.1.0.tar.gz > /dev/null ________________________________________________________ Executed in 2.74 secs fish external usr time 2.38 secs 537.00 micros 2.38 secs sys time 0.35 secs 66.00 micros 0.35 secs Place libdeflate into tools-core as it is needed to decompress other archives. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* include: use cpio from staging dirDavid Bauer2021-02-281-1/+1
| | | | | | | As we built our own CPIO now, use this version instead of whatever the host may or may not provide. Signed-off-by: David Bauer <mail@david-bauer.net>
* build: use SPDX license tagsPaul Spooren2021-02-051-5/+2
| | | | | | | | | The license folder is a core part of OpenWrt and all GPL-2.0 licensed. Use SPDX license tags to allow machines to check licenses. Signed-off-by: Paul Spooren <mail@aparcar.org> [rebase, keep some Copyright lines, sharpen commit message] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* build: add zstd support to pack/unpack functionsMatthias Schiffer2020-05-311-0/+4
| | | | Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* include: unpack.mk: remove CRLF_WORKAROUNDAlexandru Ardelean2019-04-181-7/+2
| | | | | | | | | | | | | This patch doesn't seem to have any more users. The only one used to be target in `target/linux/etrax/image/e100boot/Makefile`. That target has since been removed via commit 1080f68b2b422f1e72e402765a45d0cc3c550825 . There doesn't seem to be any reason left for this workaround. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* build: unzip: perform operations quietlyYousong Zhou2017-01-051-1/+1
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* build: drop `trapret` function from non-Linux HOST_TAR variantAlexandru Ardelean2017-01-031-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | Looks like this was meant to workaround some limitations with non-GNU tar variants (like BSD-tar which are present on Mac os BSD hosts). Though, I cannot find any use of that `+s` option that's mentioned in the comment. Last hash of this I found was 24faf55360271cd0bfc4751753384f9210d52f7f In my case, it now this fails for `python-setuptools` on Mac OS X (the host-build with): ``` trapret 2 tar -C <home-dir>/work/sources-work/lede/build_dir/target-i386_pentium4_musl-1.1.15/python-setuptools-27.2.0 --strip-components=1 -xzf <home-dir>/work/sources-work/lede/dl/setuptools-27.2.0.tar.gz bash: trapret: command not found ``` So, I was thinking maybe it's time to remove this workaround (9 years later). I could also fix the `python-setuptools` host build. If that's more preferred. [ Btw, I just recently transitioned to a Mac machine for dev-ing, so a lot of (this Mac) stuff I'm finding out is new to me too. ] Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* include: remove trailing whitespacesLuka Perkov2015-03-291-1/+1
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 45127
* partially revert "build: remove check for nonexistant CONFIG_TAR_VERBOSITY ↵Felix Fietkau2014-03-221-2/+0
| | | | | | | | variable and move TAR_OPTIONS to unpack.mk" This complicates the evaluation order for some packages SVN-Revision: 40006
* build: remove check for nonexistant CONFIG_TAR_VERBOSITY variable and move ↵Felix Fietkau2014-03-211-0/+2
| | | | | | | | TAR_OPTIONS to unpack.mk Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39979
* speed up the build system by including include/shell.sh on shell commands ↵Felix Fietkau2010-08-191-2/+2
| | | | | | only where necessary SVN-Revision: 22720
* support unpacking of .tar.xz archives, no prereq on xzcat for nowJo-Philipp Wich2010-08-061-1/+5
| | | | SVN-Revision: 22517
* allow packages to override PKG_UNPACK, HOST_UNPACKFelix Fietkau2009-02-251-2/+2
| | | | SVN-Revision: 14659
* only define unpack templates if PKG_SOURCE is setFelix Fietkau2009-02-221-1/+6
| | | | SVN-Revision: 14623
* allow concurrent use of host-build.mk and package.mk as well as their templatesFelix Fietkau2009-02-221-1/+5
| | | | SVN-Revision: 14621
* build system refactoring in preparation for allowing packages to do ↵Felix Fietkau2009-02-221-16/+20
| | | | | | host-build steps SVN-Revision: 14610
* Refactor downloading code into download.mk Support multiple file downloads ↵Felix Fietkau2007-09-291-1/+6
| | | | | | Support svn downloads SVN-Revision: 9057
* simplify handling of zcat - always use gzip -dc. zcat and gzcat are either ↵Felix Fietkau2007-05-051-3/+3
| | | | | | broken or nonexistant on some systems SVN-Revision: 7096
* fix a small bug in the unpack codeFelix Fietkau2007-03-161-1/+1
| | | | SVN-Revision: 6587
* remove some debug code that slipped into the commitFelix Fietkau2007-03-161-1/+0
| | | | SVN-Revision: 6583
* add file type autodetection for the unpack command and nuke PKG_CAT:= in ↵Felix Fietkau2007-03-161-10/+47
| | | | | | lots of places SVN-Revision: 6582
* add a crlf workaround similar to the one from freewrtFelix Fietkau2007-03-041-0/+3
| | | | SVN-Revision: 6507
* fix unpacking of .zip filesFelix Fietkau2007-01-111-1/+1
| | | | SVN-Revision: 6083
* another bsd bugfixFelix Fietkau2006-11-271-3/+5
| | | | SVN-Revision: 5657
* trap chmod errors in tar unpack on bsd - modes like 02755 failFelix Fietkau2006-11-271-1/+4
| | | | SVN-Revision: 5656
* move '-' parameter to TAR_OPTIONS, so that packages can append commandsFelix Fietkau2006-10-141-2/+2
| | | | SVN-Revision: 5083
* use $(TAR) in unpack commandsFelix Fietkau2006-10-141-2/+2
| | | | SVN-Revision: 5078
* fix mistakes in unpack changeFelix Fietkau2006-10-141-3/+3
| | | | SVN-Revision: 5077
* move common unpacking code to unpack.mk, replace zcat with $(ZCAT) for ↵Felix Fietkau2006-10-141-0/+15
systems that use gzcat instead SVN-Revision: 5070