From patchwork Tue Jul 18 03:10:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 108045 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp5336091qge; Mon, 17 Jul 2017 20:11:29 -0700 (PDT) X-Received: by 10.84.179.194 with SMTP id b60mr859777plc.166.1500347489737; Mon, 17 Jul 2017 20:11:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500347489; cv=none; d=google.com; s=arc-20160816; b=KgBYICLgx/TtoAP2bATWKEpY6+9EDY3f9hMOckx15xajlF9p5h5Ae9aWdkIzy0Dv4V 2S6XTATIbztsXrPgpvB4plBPEGEnrC94FvjkR/2WSrPyNc2qxuawDTL4C8jWc2jFCGmS OgYjq276Dx/cKe4z2NSmhKEi+MKjGBCUaSE9rYG8B3RUfPYaHEw81qcmD6os2YMyX80X p/nnl4sUYfRqD8i8CrWQp6QE5CbImdlvwAhZnQovJcunaeVo6dZq9bHPdN7Ha11/N34r FwH8X6wk1GkAWm2aBXm84Ci2J90mX6bjCpMzlqvvMF4SbnF/ZEbEyFSBWZAe4CBmIkJr YGdw== 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=0h6gEfGbxRJWUX1Ly+tKoHqSZQPLfcwjouBKjbTPqfY=; b=QCJSWwFYZPzlI1jN+0JjBy5Ws705FIiGNFUKVsIFAAIPVDoanu3YMKMj+UCrwImGyM y6a8mQcZpPJtEXU5ZdZZ6R6I0bIZIwM/Bb2hKRM9akQ7qxTvTYEEaNaxcamr6s04NJwq EK6f0CAxGSIwY8I8xyXSu8Ln8RIQwtthliLvhKA5IC3ip1U5LqSAzgrg8+xqerE5BxEP WYlVyOBF0LnKio2w08wyJPNbx5hyw9Ue8Y8L3VlUxSpf5rT+1z2OYxc69QGBSx8+Mc4+ GO4iXTSUoqS1SR9N/T4Had79faIWcUv9BM9wVygEhcqA8zmnFAcJjRf5qOK6yQgZQCE9 aQGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=ByLw4x1l; 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=NONE 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 82si727686pfk.399.2017.07.17.20.11.29; Mon, 17 Jul 2017 20:11:29 -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.b=ByLw4x1l; 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=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 05DFA7809C; Tue, 18 Jul 2017 03:10:44 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f194.google.com (mail-pf0-f194.google.com [209.85.192.194]) by mail.openembedded.org (Postfix) with ESMTP id 6CD8277E88 for ; Tue, 18 Jul 2017 03:10:34 +0000 (UTC) Received: by mail-pf0-f194.google.com with SMTP id q85so1025670pfq.2 for ; Mon, 17 Jul 2017 20:10:35 -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=j9PcXtK9nVRWaDGS3bsbZyOCiUQF/Bk0LRLqBE6VdfE=; b=ByLw4x1lwhnsGJksdKf+65meF/qYfTvTJZnPYa6eVkGol6xD/vVzKYSz+QiqY306nV iFQS9HO8kzcRw+Wa2zwVgm9KQZhbEXGKgPJg+o0f5YAakbgREnH7o2Xwi1XP3UPYQi0f hq1I2Dpsyroj0bFDVLmQIzaTIZYbP9XvcEQAMgaTzkO3KW7rMMZBC3BEco3S4dj0Hh5R 7Hh6k0l7D33ne2ReXQr1cVSk5FwIbaOpWjU5D2r0euwnygeoncVMn8Nn7xS25D2ebwkG NJTBTaM9ENS3wEM4tj7pO07fFmX5jAIiehOKfsAOkm9zgQBzYdIu6hsb0Ty3Xns3JSYd b8og== 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=j9PcXtK9nVRWaDGS3bsbZyOCiUQF/Bk0LRLqBE6VdfE=; b=nkbWlrVhgZS6fwf8HhKaYFhuY5hVTY3LHanN0GHg/1fHwLub0KnerPjQ0u5L/DOT/j Ux8j6nIwsmhmyVKDH6k8ovsiZ9pkkfuJd9e+znPkU9K3xkmUcd8zP1QB3uWyojsY5FVC FeCvDsFR8wShNXiqDASNb2cMCkSgM5TO6cOCmMuJSEc3bs/2VfhUw4tqnlEHcNaPViXu R/sWQnPWPo+wyR+ASYMQsoSkSPdwNRCPDQesea+06ML8j13/cr09s9r+fP4puUqykbjR bL+Ipp1jrqEeeiJnDgVIFL/rPeRSophHKMfNy/FdOgMOiNGTE+GwyGkKEr9WzF+TR0SO OSYw== X-Gm-Message-State: AIVw113SWwGHqAHPUez3MprKYMkg5jJpWqLiWKLpcbN+wmlhwJCZ1794 JV5I6nc4AGV8RRJv X-Received: by 10.84.128.14 with SMTP id 14mr839351pla.285.1500347435268; Mon, 17 Jul 2017 20:10:35 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c:6245:cbff:fe64:591]) by smtp.gmail.com with ESMTPSA id w85sm1086674pfj.115.2017.07.17.20.10.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jul 2017 20:10:34 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Mon, 17 Jul 2017 20:10:04 -0700 Message-Id: <20170718031013.44536-8-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20170718031013.44536-1-raj.khem@gmail.com> References: <20170718031013.44536-1-raj.khem@gmail.com> Subject: [oe] [meta-initramfs][PATCH 08/17] grubby: Link with libexecinfo on musl 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 --- ...-variable-LIBS-to-provides-libraries-from.patch | 26 ++++++++++++++++++++++ .../0002-include-paths.h-for-_PATH_MOUNTED.patch | 25 +++++++++++++++++++++ .../recipes-devtools/grubby/grubby_8.40.bb | 9 ++++++-- 3 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 meta-initramfs/recipes-devtools/grubby/grubby/0001-Add-another-variable-LIBS-to-provides-libraries-from.patch create mode 100644 meta-initramfs/recipes-devtools/grubby/grubby/0002-include-paths.h-for-_PATH_MOUNTED.patch -- 2.13.3 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-initramfs/recipes-devtools/grubby/grubby/0001-Add-another-variable-LIBS-to-provides-libraries-from.patch b/meta-initramfs/recipes-devtools/grubby/grubby/0001-Add-another-variable-LIBS-to-provides-libraries-from.patch new file mode 100644 index 000000000..1b1a993a0 --- /dev/null +++ b/meta-initramfs/recipes-devtools/grubby/grubby/0001-Add-another-variable-LIBS-to-provides-libraries-from.patch @@ -0,0 +1,26 @@ +From 22afaa21b4b258082be591e54c99e1ba6fbd7748 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 15 Jul 2017 10:19:22 -0700 +Subject: [PATCH 1/2] Add another variable LIBS to provides libraries from env + +Signed-off-by: Khem Raj +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index ac14404..92a8e73 100644 +--- a/Makefile ++++ b/Makefile +@@ -27,7 +27,7 @@ RPM_OPT_FLAGS ?= -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector + CFLAGS += $(RPM_OPT_FLAGS) -std=gnu99 -Wall -Werror -Wno-error=unused-function -Wno-unused-function -ggdb + LDFLAGS := + +-grubby_LIBS = -lblkid -lpopt ++grubby_LIBS = -lblkid -lpopt ${LIBS} + + all: grubby + +-- +2.13.3 + diff --git a/meta-initramfs/recipes-devtools/grubby/grubby/0002-include-paths.h-for-_PATH_MOUNTED.patch b/meta-initramfs/recipes-devtools/grubby/grubby/0002-include-paths.h-for-_PATH_MOUNTED.patch new file mode 100644 index 000000000..de8133a3a --- /dev/null +++ b/meta-initramfs/recipes-devtools/grubby/grubby/0002-include-paths.h-for-_PATH_MOUNTED.patch @@ -0,0 +1,25 @@ +From 8f844ac7f44b8dc428d06cd6958c5f32d383d01c Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 15 Jul 2017 10:19:50 -0700 +Subject: [PATCH 2/2] include paths.h for _PATH_MOUNTED + +Signed-off-by: Khem Raj +--- + grubby.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/grubby.c b/grubby.c +index 47a1a15..59f74a9 100644 +--- a/grubby.c ++++ b/grubby.c +@@ -34,6 +34,7 @@ + #include + #include + #include ++#include + #include + + #include "log.h" +-- +2.13.3 + diff --git a/meta-initramfs/recipes-devtools/grubby/grubby_8.40.bb b/meta-initramfs/recipes-devtools/grubby/grubby_8.40.bb index 0e9379085..5a998248c 100644 --- a/meta-initramfs/recipes-devtools/grubby/grubby_8.40.bb +++ b/meta-initramfs/recipes-devtools/grubby/grubby_8.40.bb @@ -9,11 +9,14 @@ LICENSE = "GPLv2+" LIC_FILES_CHKSUM = "file://COPYING;md5=892f569a555ba9c07a568a7c0c4fa63a" DEPENDS = "popt util-linux" +DEPENDS_append_libc-musl = " libexecinfo" SRC_URI = "https://github.com/rhinstaller/${BPN}/archive/${PV}-1.tar.gz;downloadfilename=${BPN}-${PV}-1.tar.gz \ file://grubby-rename-grub2-editenv-to-grub-editenv.patch \ file://run-ptest \ -" + file://0001-Add-another-variable-LIBS-to-provides-libraries-from.patch \ + file://0002-include-paths.h-for-_PATH_MOUNTED.patch \ + " SRC_URI[md5sum] = "1005907b275d6d93368d045274537d86" SRC_URI[sha256sum] = "85f1c678484f74c8978e8643451594967defce463a86c35cb1ee56d12767a9df" @@ -24,8 +27,10 @@ RDEPENDS_${PN} += "dracut" inherit autotools-brokensep ptest -EXTRA_OEMAKE = "-e 'CC=${CC}' 'LDFLAGS=${LDFLAGS}'" +EXTRA_OEMAKE = "-e 'CC=${CC}' 'LDFLAGS=${LDFLAGS}' LIBS='${LIBS}'" +LIBS_libc-musl = "-lexecinfo" +LIBS ?= "" do_install_ptest() { install -d ${D}${PTEST_PATH} cp -r ${S}/test ${S}/test.sh ${D}${PTEST_PATH}