Return-Path: Received: from mail-qg0-f54.google.com (mail-qg0-f54.google.com [209.85.192.54]) by mail.openembedded.org (Postfix) with ESMTP id C632E73BB8 for ; Fri, 25 Sep 2015 05:00:00 +0000 (UTC) Received: by qgev79 with SMTP id v79so61620150qge.0 for ; Thu, 24 Sep 2015 22:00:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DGBfrY2fwy81xvp6BKuXrxhrHHfEwIPkG8frjuCSJ0g=; b=xRsjOeO7mC6VZhw9lPIXFRWD1e7GSkw/Gk2aRfPPGV3O7j4uZN8TS80iFJvowlxgYC 9ktHqje7OPNqzLBk9Rg5dp+n4rzgYSPnBsbk4y8gNRpe76HgvzoqNhx1fBX0EiqguwOn WGPgPszerEkgnTwmLICjZTx0FvjgIOg8vAWXbMNyuD5HJ9IrbBE2LR/YHUpb+xcLAWDh N7J5xlZqksRl99EjyhT2TRaknttFt9cIIcTC/4QYILRi7UdLYI00i01X82p6YkDYdGrt 8XZRxwwDT7JSTGXyuNlGbLukgdenJhmv8x4LsnmrN9U1USYoh7gYqmp/Y6Hxr1AZEbV5 x5Aw== X-Received: by 10.140.234.130 with SMTP id f124mr4012612qhc.103.1443157200655; Thu, 24 Sep 2015 22:00:00 -0700 (PDT) Received: from ip-96-114-220-84.ae.ccp.cable.comcast.com ([96.114.220.84]) by smtp.gmail.com with ESMTPSA id c188sm768477qka.37.2015.09.24.22.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Sep 2015 22:00:00 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Fri, 25 Sep 2015 04:59:14 +0000 Message-Id: <1443157157-33969-3-git-send-email-raj.khem@gmail.com> X-Mailer: git-send-email 2.5.3 In-Reply-To: <1443157157-33969-1-git-send-email-raj.khem@gmail.com> References: <1443157157-33969-1-git-send-email-raj.khem@gmail.com> Subject: [PATCH] pxz: Add recipe and use it for xz image type X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Sep 2015 05:00:00 -0000 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 +# 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 +} + +do_install () { + oe_runmake DESTDIR=${D} INSTALL="install -p" +} + +deltask do_configure + +BBCLASSEXTEND = "native" -- 2.5.3