From patchwork Mon Mar 4 17:31:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 159565 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp4021108jad; Mon, 4 Mar 2019 09:32:45 -0800 (PST) X-Google-Smtp-Source: APXvYqy2vW319YLfGnc5WahtodL3JKHh28x6g1GMHpWBEH/gRbl0dJBs8BpZieTYbaS6NI2DZzDi X-Received: by 2002:a17:902:9341:: with SMTP id g1mr21726398plp.80.1551720765788; Mon, 04 Mar 2019 09:32:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551720765; cv=none; d=google.com; s=arc-20160816; b=y4aqNFE4gVo8yMJh4OkMGqlj3nObpRRk3hyqDe3KAkP1J4rcBSYE9ZyydUEdtsAeUG RHj0U/rfU6upQ0TZa3ojDJeFSQ94XmOI765mr40vpp0r2BSG1lBrlNFMszy/5U3AqOx4 5sOjxhcl2F0BW2nvlyPKwUwDHAD/VTpIF+D1dFCCHCdbkmWdFYV/XImWHHifyO/ck4ch gfVsoBfYQFVjYAJd1Bda/iG9/VM4D0kRawO5xXw7mEiMNjvbPolwvcpet1GSeczCUxth 3u5vHbgyr1nKpua7/a3SiTndTPV3ehpopgCoB2fo94d3ukmGY6om0/kgISs4VyvJaypN oGQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=FCHq26J1uka3WUyhHf8+fa0G+3xOkBXf2EEfvHIYpdM=; b=ibkKadPiXZufdQcCFFnbK5epIFJRwQOVuYmfjMQV5aADSPPSF9JWVwR1yRu283TAFU MufQOtAX+23OpybVWB24EnIffWs0ss6tTjaQ68xIPiryfUmFh82Tw2lEotyK0MHxZmm/ a/RLxMZb5ZbBmD97sebNB+DHOUsGcThtsSJ0TwMoHQ4o2coQB8AQTGSCK1vsxjYfV+5A 2bEutlhQ4XLrdl7O17jCqKv2lDrHT2TckUlPlno0zALH53GTmmxPVwFQkFjt9eEgElfb QRNQT10zdB+tLLPOVSeyZynJuJzzZcpzvCDluW9NYnNel2spUWOQpitWBFGec9WNiSvt tjww== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=Sf9+aLzw; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id 34si5734164pgs.553.2019.03.04.09.32.45; Mon, 04 Mar 2019 09:32:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=Sf9+aLzw; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 9D8357CC81; Mon, 4 Mar 2019 17:32:24 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) by mail.openembedded.org (Postfix) with ESMTP id 93D767C930 for ; Mon, 4 Mar 2019 17:31:54 +0000 (UTC) Received: by mail-wr1-f47.google.com with SMTP id i16so6459486wrs.13 for ; Mon, 04 Mar 2019 09:31:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=20goqt+Z0rse72KgnS/YkA88O4svURkt3dDZC9GWwyw=; b=Sf9+aLzwFUYfBBN5ZJ7nYYJZMRRbpU3bzBkc1+BYeBunogGe4vvgaxyxu6WHASLyoT 1/EHbwHHFg+dWm1fvR3yobG7Y5alvl8j1kSbr6SY+4MiKlFn/GjdWWHAX9H5AUMWYNfi 5+/QXJTve/DI4L4Qaon2QpEZKSX4LsqGKqzxhQRCETU8pkLEiS4tSJ+FfRAojROET/FX 8g9Av+F4dR/bKNQgJK/kCcy6IZRDcjSGT71ZPLkbTnbz29P777lsh8V+VDECnTR296wz rr30o2mzhS6ruaGhgNricKYryVZsixz2PU2wuIp66TYglz19WNIvsJmt14I+6N8yCILa 3MJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=20goqt+Z0rse72KgnS/YkA88O4svURkt3dDZC9GWwyw=; b=PI9KvdMJzFqKQNBQzfV6OSvG0C5pwkd2YuDO0E1QYFZqm20JpeB/FdKmYfThxnh4ve +sufzXxp1CwyuOaDVsgwiyS135tCdPoP9bvqIxsl3J+OHQ0CFiryBhQ4EKubUGp615Yf kqtgFN8bIEih0SuNF+C2J9dqUGeo81P1D68/CFM1tUIjuVFit7Agz4LoWl1KYZVR0C8y iUiywW9MJAFQR/gLe7rUygHARp0O7Roki2exICNv2iU32AnV1+HodCr+cDh8YUQ45RHv 11aUCg+U54gp14SKRhfGHWs4uPgGX2PrrK+lEKVJ/oaKKQJ1K6RvhfdToJjqjVr/Bkfw bv4A== X-Gm-Message-State: APjAAAVoLIRY47GT7EXiev6NLwqcpNVfHrXUBwdq0frnSn+G3PsB0Vvb 4zC1wT1qYsXi7tNC64DKdLV1YEgOUdA= X-Received: by 2002:adf:f487:: with SMTP id l7mr12779379wro.86.1551720715080; Mon, 04 Mar 2019 09:31:55 -0800 (PST) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id v67sm10137991wmb.9.2019.03.04.09.31.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Mar 2019 09:31:54 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Mon, 4 Mar 2019 17:31:44 +0000 Message-Id: <20190304173144.25675-6-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190304173144.25675-1-ross.burton@intel.com> References: <20190304173144.25675-1-ross.burton@intel.com> Subject: [OE-core] [PATCH 6/6] squashfs-tools: add PACKAGECONFIGs for all the tunables 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Upstream lets you control what compression algorithms are used, so add PACKAGECONFIGs for them all. Instead of bundling a copy of the SevenZIP SDK from 2009 (!), reuse XZ. This means we can drop Public Domain from the license list. Also -e was removed from EXTRA_OEMAKE in 2016 (oe-core aeb653) so the fiddling to work around that can be removed. Signed-off-by: Ross Burton --- .../squashfs-tools/squashfs-tools_git.bb | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb b/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb index 2f412634571..e871f1cbf54 100644 --- a/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb +++ b/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb @@ -2,16 +2,12 @@ # and I don't think the kernel supports it any more. SUMMARY = "Tools for manipulating SquashFS filesystems" SECTION = "base" -LICENSE = "GPL-2 & PD" -LIC_FILES_CHKSUM = "file://../COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ - file://../../7zC.txt;beginline=12;endline=16;md5=2056cd6d919ebc3807602143c7449a7c \ -" -DEPENDS = "attr zlib xz lzo lz4" +LICENSE = "GPL-2" +LIC_FILES_CHKSUM = "file://../COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" PV = "4.3+gitr${SRCPV}" SRCREV = "9c1db6d13a51a2e009f0027ef336ce03624eac0d" SRC_URI = "git://github.com/plougher/squashfs-tools.git;protocol=https \ - http://downloads.sourceforge.net/sevenzip/lzma465.tar.bz2;name=lzma \ file://0001-mksquashfs.c-get-inline-functions-work-with-C99.patch;striplevel=2 \ file://squashfs-tools-4.3-sysmacros.patch;striplevel=2 \ file://fix-compat.patch \ @@ -23,14 +19,20 @@ SRC_URI[lzma.sha256sum] = "c935fd04dd8e0e8c688a3078f3675d699679a90be81c12686837e S = "${WORKDIR}/git/squashfs-tools" -# EXTRA_OEMAKE is typically: -e MAKEFLAGS= -# the -e causes problems as CFLAGS is modified in the Makefile, so -# we redefine EXTRA_OEMAKE here -EXTRA_OEMAKE = "MAKEFLAGS= LZMA_SUPPORT=1 LZMA_DIR=../.. XZ_SUPPORT=1 LZO_SUPPORT=1 LZ4_SUPPORT=1" +EXTRA_OEMAKE = "${PACKAGECONFIG_CONFARGS}" + +PACKAGECONFIG ??= "gzip xz lzo lz4 lzma xattr" +PACKAGECONFIG[gzip] = "GZIP_SUPPORT=1,GZIP_SUPPORT=0,zlib" +PACKAGECONFIG[xz] = "XZ_SUPPORT=1,XZ_SUPPORT=0,xz" +PACKAGECONFIG[lzo] = "LZO_SUPPORT=1,LZO_SUPPORT=0,lzo" +PACKAGECONFIG[lz4] = "LZ4_SUPPORT=1,LZ4_SUPPORT=0,lz4" +PACKAGECONFIG[lzma] = "LZMA_XZ_SUPPORT=1,LZMA_XZ_SUPPORT=0,xz" +PACKAGECONFIG[xattr] = "XATTR_SUPPORT=1,XATTR_SUPPORT=0,attr" do_compile() { oe_runmake mksquashfs unsquashfs } + do_install () { install -d ${D}${sbindir} install -m 0755 mksquashfs ${D}${sbindir}/