forked from openembedded/openembedded-core
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pxz: Add recipe and use it for xz image type
pxz results in significant time saving when generating xz filetypes for images due to parallelization support a simple test on ubuntu build host with 16 CPUs time xz -M 50% -f -k -c -e -9 --check=crc32 CX041AEI_PROD_default_20150610000105sdy-dbg.rootfs.cpio >CX041AEI_PROD_default_20150610000105sdy-dbg.rootfs.cpio.xz real 23m42.299s user 23m36.947s sys 0m5.101s time pxz -M 50% -f -k -c -e -9 --check=crc32 CX041AEI_PROD_default_20150610000105sdy-dbg.rootfs.cpio >CX041AEI_PROD_default_20150610000105sdy-dbg.rootfs.cpio.xz real2m59.666s user 24m38.529s sys 0m10.056s Signed-off-by: Khem Raj <raj.khem@gmail.com
- Loading branch information
Showing
2 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright (C) 2015 Khem Raj <raj.khem@gmail.com> | ||
# Released under the MIT license (see COPYING.MIT for the terms) | ||
|
||
SUMMARY = "Parallel LZMA compressor compatible with XZ" | ||
DESCRIPTION = "Parallel XZ is a compression utility that takes advantage of running LZMA compression of different parts of an input file on multiple cores and processors simultaneously. Its primary goal is to utilize all resources to speed up compression time with minimal possible influence on compression ratio" | ||
HOMEPAGE = "https://jnovy.fedorapeople.org/pxz/" | ||
LICENSE = "GPL-2.0+" | ||
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
SECTION = "console/utils" | ||
DEPENDS = "xz" | ||
|
||
SRCREV = "ae808463c2950edfdedb8fb49f95006db0a18667" | ||
PV = "4.999.9beta+git${SRCPV}" | ||
SRC_URI = "git://github.com/jnovy/pxz.git" | ||
|
||
S = "${WORKDIR}/git" | ||
|
||
CFLAGS_append = " -fopenmp -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" | ||
LDFLAGS_append = " -llzma" | ||
|
||
do_compile () { | ||
oe_runmake -C ${S} | ||
} | ||
|
||
do_install () { | ||
oe_runmake -C ${S} DESTDIR=${D} INSTALL="install -p" | ||
} | ||
|
||
do_configure[noexec] = "1" | ||
|
||
BBCLASSEXTEND = "native" |