From patchwork Sat May 12 03:07:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 135619 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1669277lji; Fri, 11 May 2018 20:08:59 -0700 (PDT) X-Google-Smtp-Source: AB8JxZohPjL0Y91WSt5+Rb1iJfbPWaLy744ccGGDhXutdDi7MrL+KIyY8VkJSNED0ySbaJw2gNs5 X-Received: by 2002:a62:ec18:: with SMTP id k24-v6mr1409229pfh.204.1526094538839; Fri, 11 May 2018 20:08:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526094538; cv=none; d=google.com; s=arc-20160816; b=x6n07SoAX8+OQ3t8JjWDE8Qf+Jg0H3bERm+Z5Kg4/1yJlSRGE243ORmkzuPcQM6jFb ocbNft5Zmrri5Q5Lc2fLYdROX05jJgG0uLtbhEYcy2HJYU4M4YNKoGo6NSi2het16V5R RPK6MwN82wVhC7XRSl6Rs+Z0EJDwD9AkV+gWMGKyIHh4GdTckHJtonSAf/Nlamv6KnPy IdZNarOgnOpyYQI9or1LBaourMduM7dNDxhirdwXqOQPJbBNb0jH78s1lrZacnoyirTk 1Yp8ttWboEPZNyzgteJIQicou4lGybEfzR9uBzWa3FQFdZWlCpIJvben1V2pCUIBouTI VUtQ== 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:arc-authentication-results; bh=AArmMVf/2wfLgO84dBQJq2ivpBMFWknIT78W46PzS+s=; b=froPSLy6uZrynOeUpMu4RlErQk91s7xvI+4h6VZZDSqIRxYYQxHddO0e+l7IrA0hbN lkkfL4WF3k41ipXXF92hIWS7ui3f2XmeBBcaDmtAlSWyojtA8gvqoIIK/VwXe1UhzA/C G+NdFubV01Cq0IsNFXDJtnS/103G7qyxu3k20f6/O++V1rTkeyuvgD0JJdgr8KDR8PtI A1hZQSuGhar4dcXwaT57oGPE/v4xS++eT77Y7tXPz4eLA3Dk99FXWRE6Dq/Z6Sq6VDSh ORMOJXHVeMgeEETPy4jkiWcMlDYY3wTNxZGu9Phq3d8q/PCcO/Iqc8w37voS7gzikZV5 ZZPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=kym2Z1Pa; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id r87-v6si4665873pfg.305.2018.05.11.20.08.58; Fri, 11 May 2018 20:08:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-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=@gmail.com header.s=20161025 header.b=kym2Z1Pa; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id B3F16788D4; Sat, 12 May 2018 03:08:43 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl0-f53.google.com (mail-pl0-f53.google.com [209.85.160.53]) by mail.openembedded.org (Postfix) with ESMTP id 418397887A for ; Sat, 12 May 2018 03:08:03 +0000 (UTC) Received: by mail-pl0-f53.google.com with SMTP id n10-v6so4276620plp.0 for ; Fri, 11 May 2018 20:08:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ScezCUW+tO0oKFZZ6EngBxlepwmdgO1oXSsRAssEpBU=; b=kym2Z1PaG4oMkVJNEow9PndzSGCXlb2NpR/e/EJEkx37n8/8+6K+wJM0ogtME3Y/03 qCr9mPILWVbD5l+pInUlKztovqaPSyfeOjuLHAF1gpxMVVwVKTs8anKW0xXWBdH4xAh4 OupbrFti9FNOuXPnlW5VNKvwZUBwcG1/kJ4STBbrgFmwStDvxFvgw03DY8aWFryD6HdT trkVVqqS3cYaN35U3QHWE4/Lqi2P2TqudDXWbfDKds/+nDn9K0bPH4bsDSfbGOZp14Qx 4+/MZD3SNKbQrP2qhIqqDh0iQtQzblZfQSXO2jgLrnK0bXSsnkURY6rWkurvJvdg1y6V Jm9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ScezCUW+tO0oKFZZ6EngBxlepwmdgO1oXSsRAssEpBU=; b=J9abEahAz4y6PJtEoxWfurprPy6dw0ylADLD7r+VM7TzsDX++xOVe61DaET2GfqJu4 0Sr3W3MgU7V6BO92gejoAeB/XYjng+Ifo/5/9G/bL2qXtvDq+kwP2ziMoPX+8gY3ehPY X4vNkiv0T2uTgHwEtNg5bVC3ms/ySg6W6ZacA9jRk3SYaL+m4Q0DE3CGHwfQAxY4RF57 ESWCpAP6Ux8p6PXNQSpLWPLNO1erv9RvNHrjgF2Wthfzx2JkAyZTtkBUZL4LLj/gBFuY j8h+32lorafv73LCupg8iaG8WNFt7O2I5tKGacQmhkwVf+F1HHtnKHAxyz3coNe00Je6 aVUA== X-Gm-Message-State: ALKqPwdoyY7GZhrFkBfKI2+CgJJy+IDL7NPHUmDU3aYbjldC/3dBXXph eqHwq/YKTdfRBgccQ8IInStPNQ== X-Received: by 2002:a17:902:988b:: with SMTP id s11-v6mr719785plp.304.1526094484565; Fri, 11 May 2018 20:08:04 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::c68]) by smtp.gmail.com with ESMTPSA id d4-v6sm6440933pgv.73.2018.05.11.20.08.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 May 2018 20:08:03 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Fri, 11 May 2018 20:07:54 -0700 Message-Id: <20180512030758.31409-4-raj.khem@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180512030758.31409-1-raj.khem@gmail.com> References: <20180512030758.31409-1-raj.khem@gmail.com> Subject: [oe] [meta-oe][PATCH 4/8] flashrom: Fix build with libusb 1.0.22 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...pi-Avoid-deprecated-libusb-functions.patch | 39 +++++++++++++++++++ meta-oe/recipes-bsp/flashrom/flashrom_1.0.bb | 1 + 2 files changed, 40 insertions(+) create mode 100644 meta-oe/recipes-bsp/flashrom/flashrom/0001-ch341a_spi-Avoid-deprecated-libusb-functions.patch -- 2.17.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-bsp/flashrom/flashrom/0001-ch341a_spi-Avoid-deprecated-libusb-functions.patch b/meta-oe/recipes-bsp/flashrom/flashrom/0001-ch341a_spi-Avoid-deprecated-libusb-functions.patch new file mode 100644 index 0000000000..df8028627a --- /dev/null +++ b/meta-oe/recipes-bsp/flashrom/flashrom/0001-ch341a_spi-Avoid-deprecated-libusb-functions.patch @@ -0,0 +1,39 @@ +From e5f68189ab3602b1042cc8423fd6a3a23abd5455 Mon Sep 17 00:00:00 2001 +From: Alex James +Date: Sat, 14 Apr 2018 22:59:57 -0500 +Subject: [PATCH] ch341a_spi: Avoid deprecated libusb functions + +libusb 1.0.22 marked libusb_set_debug as deprecated. For such versions +of libusb, use libusb_set_option instead. + +Change-Id: Ib71ebe812316eaf49136979a942a946ef9e4d487 +Signed-off-by: Alex James +Reviewed-on: https://review.coreboot.org/25681 +Tested-by: Nico Huber +Reviewed-by: David Hendricks +--- +Upstream-Status: Backport + ch341a_spi.c | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/ch341a_spi.c b/ch341a_spi.c +index 6eb2804..d880510 100644 +--- a/ch341a_spi.c ++++ b/ch341a_spi.c +@@ -444,7 +444,12 @@ int ch341a_spi_init(void) + return -1; + } + +- libusb_set_debug(NULL, 3); // Enable information, warning and error messages (only). ++ /* Enable information, warning, and error messages (only). */ ++#if LIBUSB_API_VERSION < 0x01000106 ++ libusb_set_debug(NULL, 3); ++#else ++ libusb_set_option(NULL, LIBUSB_OPTION_LOG_LEVEL, LIBUSB_LOG_LEVEL_INFO); ++#endif + + uint16_t vid = devs_ch341a_spi[0].vendor_id; + uint16_t pid = devs_ch341a_spi[0].device_id; +-- +2.17.0 + diff --git a/meta-oe/recipes-bsp/flashrom/flashrom_1.0.bb b/meta-oe/recipes-bsp/flashrom/flashrom_1.0.bb index 9eac876ba1..1c17246681 100644 --- a/meta-oe/recipes-bsp/flashrom/flashrom_1.0.bb +++ b/meta-oe/recipes-bsp/flashrom/flashrom_1.0.bb @@ -8,6 +8,7 @@ DEPENDS = "pciutils libusb libusb-compat" SRC_URI = "https://download.flashrom.org/releases/flashrom-${PV}.tar.bz2 \ file://sst26.patch \ file://0001-platform-Add-riscv-to-known-platforms.patch \ + file://0001-ch341a_spi-Avoid-deprecated-libusb-functions.patch \ " SRC_URI[md5sum] = "42d999990c735d88653627cefcc13b9a" SRC_URI[sha256sum] = "3702fa215ba5fb5af8e54c852d239899cfa1389194c1e51cb2a170c4dc9dee64"