From patchwork Thu Aug 30 00:05:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 145482 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp185747ljw; Wed, 29 Aug 2018 17:06:20 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaVNRrSxFSZP4ZBp4qMyrrFHmUaiDBA+AolII/Un3v0LJnHrq7vFntzU3IP3NHFsU9vtPWE X-Received: by 2002:a62:571b:: with SMTP id l27-v6mr8026712pfb.29.1535587580141; Wed, 29 Aug 2018 17:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535587580; cv=none; d=google.com; s=arc-20160816; b=inQUa57bZT3YKckoV5D4uFk15BtZLjyzOXfOtzIugQAWvZBTX08Q3/6QpxuJipu0DG uBYbReU9NvxSIZeMTD+kk8lv+9bYbw7MIo/Gq6ZqWmX6UF6RKkEZRP/tO3C93rAKstZy 70B/Vb7iBIuH1+NCP8KJZcZHaTjDcXYoa/rSseNOGRuq4NnYTiJyz8Wy1TaCEGYhz577 p6R6RcjmEA6j+CwIsO/h0s8KiGfwuiBZcYHDBtkE7w7kgMknuitas/jyRRMVONBrPJMy vyvPbT905QmmvSPMc1c+8cZCSFn/jGUCRKxBGvd0yvYzAcaTGIHQDCNmqLEOwa+uqBVn cajQ== 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=2dejc7dwaxtu1K/wf1bpKO7Qdz+0L6Gi0YslZsr0IdE=; b=dk9Sxw1Ob3SKzbK6h7CnnR6pWusWXqFUKVnLKE9TyBUdCS+5d19fXHw+klgBAmg0VD hHrWUDZDdPzap7J/DyKsBNvXjzynoO4mmbeuq4Xq3shshLdz6JbSw/vqgJiZj8D37KoF 35nhfH5v4NBI4bDZ3VBqn1mxsFHbGdP8xT5UQQDkFP00zwTcON5GR0xkbbN8/UxwPCB8 JjKJ5V9gjfZWHJc4AogfKq2DqqAgE2k2DFnFt22KoJCYMu0ecmk4ekEUfMh6Rwe84emw 8fWFLiTEnw3Iw1QNGrVuNF2f9mlahPsiESMTqsyNvDyJmPLlQPmKNi8P2AEiqVf88tjD 3o4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=mb6TURZk; 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=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 e72-v6si5135965pfk.198.2018.08.29.17.06.19; Wed, 29 Aug 2018 17:06:20 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=mb6TURZk; 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=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 74A3679312; Thu, 30 Aug 2018 00:06:17 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by mail.openembedded.org (Postfix) with ESMTP id 2B625792B4 for ; Thu, 30 Aug 2018 00:06:10 +0000 (UTC) Received: by mail-pf1-f193.google.com with SMTP id h69-v6so3015770pfd.4 for ; Wed, 29 Aug 2018 17:06:11 -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=ZqcKqs+1Aa9xhhut5yN77xaP63J0Wi1zUCFW6Cqe5VI=; b=mb6TURZkz/8R2SBAzveItwEeMWWJLHAZDMorjF5MZAeIldUl6WVoI6TCJfdD1so5Yn bZRDmNHGyzrAJ8e3sn+zOGylseR9ZyhARYr7k4Jeo0/kT+WVDXxI4Zq0gXntggZ9+QNJ DNYw6lVYHpdFscLHYGgRebzRfBHWDCX4K4/yTHARa6iybkpVUumTRL7yQrR0ILyqpGxB avGN86jjK/D5rdtaJZpwSgD4Y995ydVyfu1vQs7vKwLR1P/0YFlKfM/OVS6+iqq9J1o+ lP+fLCIKLhDtpSaCMb2ISJ6gnPJNHMExyhQrHbo+fgs11MlCCRkLjvlC46DW7CFNZSg6 Z+Wg== 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=ZqcKqs+1Aa9xhhut5yN77xaP63J0Wi1zUCFW6Cqe5VI=; b=Pm5mpj/YONOfqfNUtetkvWc5ePSunCWl/tEEYph1WF1OzUNL8shxlce6xoehFh9EhC o1aDv66Vcd0Jy25EWRmmGehaVSzb0vvuS+F52iDsy6HnANW/u/O7hJ8Sj+Wsov9tYf5C OOO2g1CVqL+67tKVGenZwx91CYCDIj61zZWyFxgcQ4CUHbgSkDgwHkG9NftX+KUzTul5 ETvAFOjLJAAFkxwgUZ6oUmjSHT1SvPW36mp3gjfHMAhiUBquPpOKPiUOfMM6Wd+1gpQo BpBI/Yb+K5Fo5gvIRLI0TX003FjVjGgYZ56pOBKGeut8CO2+y+kzFexVtce0/J1uHCyP qBBw== X-Gm-Message-State: APzg51CfRnosntb6oIBwFZ45j7Vpl+3KNZHz2YJxdkQmtCMrvUs9j88+ E8qMpp2FhLH0CeOYw6drf0ItjfmG X-Received: by 2002:a63:c608:: with SMTP id w8-v6mr7565430pgg.16.1535587570833; Wed, 29 Aug 2018 17:06:10 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::f180]) by smtp.gmail.com with ESMTPSA id x65-v6sm8295727pfk.140.2018.08.29.17.06.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Aug 2018 17:06:10 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Wed, 29 Aug 2018 17:05:59 -0700 Message-Id: <7af643301d5c3961595ec7ec4f18e94454eabacd.1535587162.git.raj.khem@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: Subject: [OE-core] [PATCH 1/4] boost: Fix invalid const in atomic builtins 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 Fixes build with clang Signed-off-by: Khem Raj --- ...ecific-branch-for-x86-DCAS-based-loa.patch | 76 +++++++++++++++++++ meta/recipes-support/boost/boost_1.67.0.bb | 15 ++-- 2 files changed, 84 insertions(+), 7 deletions(-) create mode 100644 meta/recipes-support/boost/boost/0001-Removed-clang-specific-branch-for-x86-DCAS-based-loa.patch -- 2.18.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-support/boost/boost/0001-Removed-clang-specific-branch-for-x86-DCAS-based-loa.patch b/meta/recipes-support/boost/boost/0001-Removed-clang-specific-branch-for-x86-DCAS-based-loa.patch new file mode 100644 index 0000000000..182693079a --- /dev/null +++ b/meta/recipes-support/boost/boost/0001-Removed-clang-specific-branch-for-x86-DCAS-based-loa.patch @@ -0,0 +1,76 @@ +From 39b027171e0a619d49b9dd2e8471d10b6c41bc25 Mon Sep 17 00:00:00 2001 +From: Andrey Semashev +Date: Tue, 17 Jul 2018 12:37:29 +0300 +Subject: [PATCH] Removed clang-specific branch for x86 DCAS-based loads. + +The storage to load from is const-qualified and DCAS via compiler intrinsics +require an unqualified pointer. Use asm implementation instead, which should be +as efficient as intrinsics, if not better, in this case. + +Fixes https://github.com/boostorg/atomic/issues/15. + +Upstream-Status: Backport [https://github.com/boostorg/atomic/commit/6e14ca24dab50ad4c1fa8c27c7dd6f1cb791b534] +Signed-off-by: Khem Raj +--- + boost/atomic/detail/ops_gcc_x86_dcas.hpp | 23 ++++++++++++----------- + 1 file changed, 12 insertions(+), 11 deletions(-) + +diff --git a/boost/atomic/detail/ops_gcc_x86_dcas.hpp b/boost/atomic/detail/ops_gcc_x86_dcas.hpp +index 4dacc66f..b43ef23a 100644 +--- a/boost/atomic/detail/ops_gcc_x86_dcas.hpp ++++ b/boost/atomic/detail/ops_gcc_x86_dcas.hpp +@@ -158,11 +158,13 @@ struct gcc_dcas_x86 + } + else + { +-#if defined(__clang__) +- // Clang cannot allocate eax:edx register pairs but it has sync intrinsics +- value = __sync_val_compare_and_swap(&storage, (storage_type)0, (storage_type)0); +-#elif defined(BOOST_ATOMIC_DETAIL_X86_NO_ASM_AX_DX_PAIRS) ++ // Note that despite const qualification cmpxchg8b below may issue a store to the storage. The storage value ++ // will not change, but this prevents the storage to reside in read-only memory. ++ ++#if defined(BOOST_ATOMIC_DETAIL_X86_NO_ASM_AX_DX_PAIRS) ++ + uint32_t value_bits[2]; ++ + // We don't care for comparison result here; the previous value will be stored into value anyway. + // Also we don't care for ebx and ecx values, they just have to be equal to eax and edx before cmpxchg8b. + __asm__ __volatile__ +@@ -175,7 +177,9 @@ struct gcc_dcas_x86 + : BOOST_ATOMIC_DETAIL_ASM_CLOBBER_CC_COMMA "memory" + ); + BOOST_ATOMIC_DETAIL_MEMCPY(&value, value_bits, sizeof(value)); ++ + #else // defined(BOOST_ATOMIC_DETAIL_X86_NO_ASM_AX_DX_PAIRS) ++ + // We don't care for comparison result here; the previous value will be stored into value anyway. + // Also we don't care for ebx and ecx values, they just have to be equal to eax and edx before cmpxchg8b. + __asm__ __volatile__ +@@ -187,6 +191,7 @@ struct gcc_dcas_x86 + : [storage] "m" (storage) + : BOOST_ATOMIC_DETAIL_ASM_CLOBBER_CC_COMMA "memory" + ); ++ + #endif // defined(BOOST_ATOMIC_DETAIL_X86_NO_ASM_AX_DX_PAIRS) + } + +@@ -401,15 +406,11 @@ struct gcc_dcas_x86_64 + + static BOOST_FORCEINLINE storage_type load(storage_type const volatile& storage, memory_order) BOOST_NOEXCEPT + { +-#if defined(__clang__) ++ // Note that despite const qualification cmpxchg16b below may issue a store to the storage. The storage value ++ // will not change, but this prevents the storage to reside in read-only memory. + +- // Clang cannot allocate rax:rdx register pairs but it has sync intrinsics +- storage_type value = storage_type(); +- return __sync_val_compare_and_swap(&storage, value, value); +- +-#elif defined(BOOST_ATOMIC_DETAIL_X86_NO_ASM_AX_DX_PAIRS) ++#if defined(BOOST_ATOMIC_DETAIL_X86_NO_ASM_AX_DX_PAIRS) + +- // Some compilers can't allocate rax:rdx register pair either and also don't support 128-bit __sync_val_compare_and_swap + uint64_t value_bits[2]; + + // We don't care for comparison result here; the previous value will be stored into value anyway. diff --git a/meta/recipes-support/boost/boost_1.67.0.bb b/meta/recipes-support/boost/boost_1.67.0.bb index 7bb451166c..ef178edc0c 100644 --- a/meta/recipes-support/boost/boost_1.67.0.bb +++ b/meta/recipes-support/boost/boost_1.67.0.bb @@ -2,10 +2,11 @@ require boost-${PV}.inc require boost.inc SRC_URI += "\ - file://arm-intrinsics.patch \ - file://boost-CVE-2012-2677.patch \ - file://boost-math-disable-pch-for-gcc.patch \ - file://0001-Apply-boost-1.62.0-no-forced-flags.patch.patch \ - file://0003-Don-t-set-up-arch-instruction-set-flags-we-do-that-o.patch \ - file://0001-make_x86_64_sysv_elf_gas.S-set-.file-section.patch \ -" + file://arm-intrinsics.patch \ + file://boost-CVE-2012-2677.patch \ + file://boost-math-disable-pch-for-gcc.patch \ + file://0001-Apply-boost-1.62.0-no-forced-flags.patch.patch \ + file://0003-Don-t-set-up-arch-instruction-set-flags-we-do-that-o.patch \ + file://0001-make_x86_64_sysv_elf_gas.S-set-.file-section.patch \ + file://0001-Removed-clang-specific-branch-for-x86-DCAS-based-loa.patch \ + " From patchwork Thu Aug 30 00:06:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 145483 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp185800ljw; Wed, 29 Aug 2018 17:06:25 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZHOmEl/UgWvmxQUujz+Z5koUBfnWqohG+RE8j0Ujb7sqEjZYuTrpNEByXxr/fiQopf4Qhu X-Received: by 2002:a17:902:2f43:: with SMTP id s61-v6mr7671105plb.176.1535587585136; Wed, 29 Aug 2018 17:06:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535587585; cv=none; d=google.com; s=arc-20160816; b=zrGZ/W/gbZgg0zw7LUOW3H1EyRG6hEIOFdWx/+z+xd+my1G14aIXNHkpzQ86K/cDZ7 tP9jvu9B/0DsgwVrs7CLzhzVlvpbq5VlmP8Ync/p+2FZ/+PyR6DeMxVdnCHCAgFeM7bA 2/parrL34npQhoYVsWNModbGVHQRcH008+ZKcCG1uhUksJRe0GhxEUIQu2fZNwzmIIJt jJd4hJayZeVzVKB5I0q/K92ULkzPhG6V3zmtW+ObE+ufsOhkPOqPgNPEZm2R8gBLZbY9 oj20ykcInoFlfIowKgnZxkn9lL/979aPdSOYlCpj4q3S7zVtPqSRgqe6P8ucSeWzG+Fz Ew8w== 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=3FgRk1+sK6EqwGFI+BkmgiLbTrf+C4ti8aup1lWMyaQ=; b=MGhj13FBNa2GTgsYiR5hISyANkgXFliW4RvXIVQoB0OePjR2J65vv2Pc8LaZb6UBxN QkTRF+zkqEF9baItrVwNoGRYeTPJtTgm2p0pQPegi9quyxFomj/vvnIFt+aSETUqz0dn hiNAwgjWbqiT7T5tXE6v/4XnBknDBRN5orY/+J/aJqOueCGwDOBjUm9sOyGx7G55imcD 9bmsaUNrM5yERg7YaRqIN3wVKgE7/bp9x6pDFb2fyqyqBnDe/YV/DY3XeV8IWq6M0VKq OjfdxiUZz+90RpE84ESA7E7EHBCvNMZKobxTDWNTx8QQOSOMAlrsuYdSvON2NCN8coHZ Zg4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=dYLs9p1S; 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=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 200-v6si5105945pfv.137.2018.08.29.17.06.24; Wed, 29 Aug 2018 17:06:25 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=dYLs9p1S; 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=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 C78CC79331; Thu, 30 Aug 2018 00:06:18 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by mail.openembedded.org (Postfix) with ESMTP id 1665379306 for ; Thu, 30 Aug 2018 00:06:10 +0000 (UTC) Received: by mail-pf1-f169.google.com with SMTP id k21-v6so2996865pff.11 for ; Wed, 29 Aug 2018 17:06:12 -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=GwWrT9migWX8lRDRMPqYh/dNZQk/JcaTcQaLqqQXxik=; b=dYLs9p1SxtctCEJPMigvsyTissRG1muAaXUKXC0TcpByCBrXEtQOkQc1hH0XT+xbzC VL1BhHuCDbcP5AL15gS/vtq9Y4Zfx8LmfXV1yJXzIJyHaXWcoFSbSUf9m3lQ6XeMu5ml U7Q1HuS2Q7OtW66hkuqy4h3NrYklErxehbzv+bEFZNaK46VObMx888QXBwd8R3FYj2nx wkzSgs1AWFoTOkhbQRK1uvokPBhE3ubpvtHr58DhzPj0uArv806fr+VHp+wsChENfcU3 YXdaTNvZc9q/mcu/Lu8WqeVMIx93qwF2mV0S+j46DnIieQxAEl2pwpHZ3Ko3qVtBPgWs p0mg== 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=GwWrT9migWX8lRDRMPqYh/dNZQk/JcaTcQaLqqQXxik=; b=fnl/sAz+0OI625xQO6OISECOvf5MFT0TKavdjgpOMQjpGOhItNRfsIxIdmr3NAUMZD 4fxyP3r606r7qzwR3aHzgVrdynfm7gceZmtqHdnBFi2msqoZPcqpVmxf/SzIF7vS3ud/ fyEpYnikLL1mtIyKGAzryqqBY5v/PO1OGjuMpZO0kYieu2JcnNEPGlDoigLVmvB8VSER C/asURZrnIk3RcNsecpoFhKhsVS8HxVSC1ryRF1o8Yhnm6glqQUvxCdiwVwlm9V2iZlG WPzr1SQfBK4VZv4X4ICfPMJ+p7V++xLGaJkp0VCKsYaFNQjOCnnDLY/oT4tFVDOqIEnk m4nw== X-Gm-Message-State: APzg51BIYJlwKG6gBOohFWppMC7R2aBx7EhdCdan8cDfgNmAmMwNxch+ F1//yO6Zc5d6d7U3iXJ6bluRt8ks X-Received: by 2002:a65:6292:: with SMTP id f18-v6mr7402548pgv.85.1535587571554; Wed, 29 Aug 2018 17:06:11 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::f180]) by smtp.gmail.com with ESMTPSA id x65-v6sm8295727pfk.140.2018.08.29.17.06.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Aug 2018 17:06:11 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Wed, 29 Aug 2018 17:06:00 -0700 Message-Id: X-Mailer: git-send-email 2.18.0 In-Reply-To: References: Subject: [OE-core] [PATCH 2/4] libc-package: Add risc-v specific options to cross-localedef invocation 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 It was otherwise being deferred until boot time Signed-off-by: Khem Raj --- meta/classes/libc-package.bbclass | 2 ++ 1 file changed, 2 insertions(+) -- 2.18.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/libc-package.bbclass b/meta/classes/libc-package.bbclass index 2e7cd25297..9d09c7be6a 100644 --- a/meta/classes/libc-package.bbclass +++ b/meta/classes/libc-package.bbclass @@ -257,6 +257,8 @@ python package_do_split_gconvs () { "mipsisa32r6el": " --uint32-align=4 --little-endian ", \ "mips64el":" --uint32-align=4 --little-endian ", \ "mipsisa64r6el":" --uint32-align=4 --little-endian ", \ + "riscv64": " --uint32-align=4 --little-endian ", \ + "riscv32": " --uint32-align=4 --little-endian ", \ "i586": " --uint32-align=4 --little-endian ", \ "i686": " --uint32-align=4 --little-endian ", \ "x86_64": " --uint32-align=4 --little-endian " } From patchwork Thu Aug 30 00:06:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 145484 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp185889ljw; Wed, 29 Aug 2018 17:06:30 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZihpqHQSqC36UFQnb2X6JyiaF0yelHZIIrD1Z98e2LtBzQ4qJYcPlhS75nBwyKOWv3zePV X-Received: by 2002:a17:902:904c:: with SMTP id w12-v6mr7886344plz.95.1535587590702; Wed, 29 Aug 2018 17:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535587590; cv=none; d=google.com; s=arc-20160816; b=Uz6KECkiShbJDF6sb6/0r0/B0FUuvl2s6bmksKMdlMfuhbWoWQhI/unYpH6xb7I7ek LlPacllIHA/jjZ0BEzWQEpXUderinZVUwy1dyCMsG9An4siabgcj8BC6fBoFH3q2ep6j 72A5nRDxcMIjo7c3r/k4Q07ni4Xp6G/MdmhubTp5UqE++UMX2mNlfw0sq9RQ2E4ItmoB UL9UgBHbltcb0Gyefn9wT0FA6ox8+s26ckzhqsfgAue30RRHVlUaQFeebSIHnpXodQ7i CtHqDxn7/E3OY66wFEllLrj3a6O/njErETQy8hHCDahWe7LCXZLi+7d+kX/rI7TlR1CJ YRzA== 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=TQmpstMnop3U7Y/VJ5P4y/vvtUS4WRmCA/pwRflZgo0=; b=F3nzui6ixEoS6VHQD0rCSwREpG4y+3LEtHNnn2ko6X8DVWj37p2P6XMsaayMkqMJu1 XwRorP8hvhBAyuc/4WoeWag8iQIc2+BPyANFYKxyFe9MmlgRPtx1KkiNrRdW3U8gwImq kALCEydwd6txwd78vPpOT3OE2CCbOZcqfexz4vOclkX6jwbyqiugatcYMbQ1NttyCHfk cTlYv6w4JePblTQHsy2y5V367j4yW44QLmeDnM+BatC0ihBe7PJn0pWOVsS7YTWoul+s CMqa6pHjD4oAbhwS3YDowrj7DQa9QGr9GwYHbgyT/o+43MqwyuiKSfOzfVg7HFmvNZhj NKOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=bL9zD7Rr; 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=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 t32-v6si5175036pgk.202.2018.08.29.17.06.30; Wed, 29 Aug 2018 17:06:30 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=bL9zD7Rr; 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=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 0257479348; Thu, 30 Aug 2018 00:06:20 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by mail.openembedded.org (Postfix) with ESMTP id C9D5F792C0 for ; Thu, 30 Aug 2018 00:06:11 +0000 (UTC) Received: by mail-pf1-f174.google.com with SMTP id d4-v6so3028977pfn.0 for ; Wed, 29 Aug 2018 17:06:13 -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=pqiXdvS1f+0VEn6CBhOEjtsCBeC4av4AMBd7e1OkBXg=; b=bL9zD7RrdcML2qDU+Wl9lLPN4LliderQwDlILoo1tdDSIzTgqT8u1KTY/AnL2WjnOR c2FLMjwCxHrCQcKsXhpmLHXIsHdJvQnlgVa9LTPglCgrUpevSLSrcw6r02NyfoD44uQ9 xrRLQmosZFnlw2lVqkXDACrTgZSwQNOernKeWw7esaI71yZGqB3pAYwcazn32US6ck6o AM9/3wNFWdRFBUmWOGDdTWBWlXRN0h7dNv+Kg5FEQXp5z7yWQX9v6yHbYbJZ89q1D3JJ t3362yphG4mOlvFjB8TeZxOHiBV+JlxGIL9ukkdMKJtllyd4+7/IhSAz9B54sfN+fWW/ RFAg== 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=pqiXdvS1f+0VEn6CBhOEjtsCBeC4av4AMBd7e1OkBXg=; b=fIWdlZmc6oxolYtlapV1cCvnD7/l8vhCgWVPqbBUy3vj5fww3CipLoHV+OoQdj6/kW 84uIuMu2P7jVigkcHjKBj+kN21QJY1EPSKcfgrIrlGQfJUmmaOVIw1q9Q1iVMrXAVCDd oB3oRwf95FOaIjorvpyHGLvcLXEOC7zegoG4M3XkBvYJSKa7a5qb5XaGFzejWbP1hmoy vjX3yzpJN9FRMkC4sk6zCieOYP0k9tMWsZHRW0egOFfi0p8cvWobHGnrCm8N2HRucARc RItr1lki83rQQetKQ3FNLGKRwmdNUwwi4Eko5GYnPGhiFcpCKsHcyjnVhU4zg+YIYuRY ueqQ== X-Gm-Message-State: APzg51Adn6da4vdjl8N+1AxfWlSJuFiBBCJhWbHx8t/7ClgPu6TPKFnj Ad/hykWpzzsqExeZhtPBWrTo0AGy X-Received: by 2002:a65:5288:: with SMTP id y8-v6mr7533018pgp.284.1535587572332; Wed, 29 Aug 2018 17:06:12 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::f180]) by smtp.gmail.com with ESMTPSA id x65-v6sm8295727pfk.140.2018.08.29.17.06.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Aug 2018 17:06:11 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Wed, 29 Aug 2018 17:06:01 -0700 Message-Id: X-Mailer: git-send-email 2.18.0 In-Reply-To: References: Subject: [OE-core] [PATCH 3/4] sysklogd: Use update-alternatives 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 busybox also provides klogd and syslogd, this change makes it coexist peacefully. Currently rootfs fails in situations where both of them are providing these binaries and busybox postinsts fail update-alternatives: Error: not linking /mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-full-cmdline/1.0-r0/rootfs/sbin/klogd to /bin/busybox.nosuid since /mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-full-cmdline/1.0-r0/rootfs/sbin/klogd exists and is not a link Signed-off-by: Khem Raj --- meta/recipes-extended/sysklogd/sysklogd.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) -- 2.18.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-extended/sysklogd/sysklogd.inc b/meta/recipes-extended/sysklogd/sysklogd.inc index fc4e67c18e..2a8bed00f3 100644 --- a/meta/recipes-extended/sysklogd/sysklogd.inc +++ b/meta/recipes-extended/sysklogd/sysklogd.inc @@ -11,7 +11,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \ file://klogd.c;beginline=2;endline=19;md5=7e87ed0ae6142de079bce738c10c899d \ " -inherit update-rc.d systemd +inherit update-rc.d systemd update-alternatives SRC_URI = "http://www.infodrom.org/projects/sysklogd/download/sysklogd-${PV}.tar.gz \ file://no-strip-install.patch \ @@ -70,3 +70,9 @@ python () { if not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d): d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1") } + +ALTERNATIVE_PRIORITY = "100" +ALTERNATIVE_${PN} = "klogd syslogd" +ALTERNATIVE_LINK_NAME[klogd] = "${base_sbindir}/klogd" +ALTERNATIVE_LINK_NAME[syslogd] = "${base_sbindir}/syslogd" + From patchwork Thu Aug 30 00:06:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 145485 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp185970ljw; Wed, 29 Aug 2018 17:06:36 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYdT0edut+RRmCuT40j2fsqX9Sl5As/5mKxFF950cLLo99VZGp+Ja4vvw+WxU/sAMewKRcI X-Received: by 2002:a65:5284:: with SMTP id y4-v6mr7474634pgp.283.1535587596811; Wed, 29 Aug 2018 17:06:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535587596; cv=none; d=google.com; s=arc-20160816; b=H3rJHQzZzwtYyp89IZaR7dfTpsu0TKVx9T+RNPudbqXSQy1H7Y0hvcLTvG7OEAW7qH 0VhXdTnlYtpFuS58Ks3Ps2wRnEeu3XDejn7U/414t7/L5bBBNVAERg57Hiu6DBLuSNCP M2qRZq0XF+hADPQjBOTZWSdG4kj8jhgaeBcDpf6+/J8Z2cihgmullRZcnRBMOXpi2Ewm k23PVHFSKRxSOKgeBYuKvXSFew0z3/kFwoIkoWE91LuyamPzN7LEpruOuYZSrdK08zpc VrpxifQT2yhlulx6FjbZcvG5m9cS3s2f0sRJ5rdgxHOpuusE98Hvjs1vdEOc9c83cJ5S XMKw== 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=yaKXNNTFtOo6IZDGY7CHG11DoFHBxTXVQW3W7INodhY=; b=fhiU/wNf71i+aLsybmA5Y0H5+e8A8VrzhBfLbyslgShB0qiaoaFj5uPot1lawuiCeV WvfykxIOtvTP8NTJxYI7EcNaMyeGgVLQEnj0A3UyGiq+YSNWYvTA6ZaNzqkDr4tvXpFI YqW6RiyNdHZveGURgQfZCNy89OgyNscWoXhYzHX6T1GIXU0yZtf58elcxH6p295S+EzB ATGxMAK1dRMv4wb1MNI9i35ZfbAFHq7DvwattuS+ui9CS1LIsA0mv/jItbFA7ySoY+eY dk+41wvU27Sc8rEOjuXiorsM5ecxRVw/cgAs9nOCswML/+k3cKXmqIHjwfKQ5VrzbaHC UO8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="I1rZhj/q"; 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=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 l5-v6si5100598pgb.686.2018.08.29.17.06.36; Wed, 29 Aug 2018 17:06:36 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b="I1rZhj/q"; 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=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 200CB79367; Thu, 30 Aug 2018 00:06:21 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by mail.openembedded.org (Postfix) with ESMTP id 76E8379322 for ; Thu, 30 Aug 2018 00:06:12 +0000 (UTC) Received: by mail-pg1-f194.google.com with SMTP id d19-v6so3045951pgv.1 for ; Wed, 29 Aug 2018 17:06:13 -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=i4FZFubAl8mUdHopqOn4T0iMMssQT5lcHaMSCleChXA=; b=I1rZhj/qgrVEQvlrpAS0Zex8dlEEDmh7yTH2+00hJq+qq51WgZWXUxKKFbKVk7/49I XXTyMliPI1eozzicB2c5cONziHHJlx7YiJl4RdkgJTvIf+jhF9dxapUqL6juPv6893g4 4QUWyJjXBLelTrI8Dq4kVO5xVYC/AhOHqVfqBRpdZlM8A8gbRxlBb9XyIzKtBrLNt62J HOR7JABdEJKiBDzxeUXkUfIr/xy+4Gry0ue5PJvDo8vuhi5OWhECOFqSFxOsc0er+f8+ zCbD52ZS/mDtPaOb7NouXYBcwcQYjT0GtdrqZRxBOlffAqvBdCEuIZg2WWWu7kR2eis8 ESfw== 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=i4FZFubAl8mUdHopqOn4T0iMMssQT5lcHaMSCleChXA=; b=LysaCW87GQ3sMusKakFPWpxT34o0HxV4Gupv8fkCXQHIoAjsdWBV1YB+hNDrMK8+uH yXZeXupZTZ9gw1n0UsmWO/A2E9yjLCtXCgY9s4aW/pjwgJU3sDa/aHz8VxK/7XGOj7I+ fmpDgtDh0lTucfDhWbYSk1CvsghvtTlbhVNLRJuHJ31c/7SVvoPETcuGfBLboAQ+TR4G eelQC/AxcHZhsWjnPRDoPrD8qLa6V3Fcu3OXEXGnTTPjJUVnyNwiIoMSuvedAj3nVCn6 Q1MYz07sL2GHolguREm0PJNuhqFz5WX+BULe0R3kS1npaYJI/Rvfz2q8A7BM6rg3sx9r kj3g== X-Gm-Message-State: APzg51AExbEE5jlTb4a/83lzoELfBwIFWs0YK/l/SRFOnMZThkmPoFlQ znqh4vgC6RS05CTJaN2YYyuYHPAd X-Received: by 2002:a63:e647:: with SMTP id p7-v6mr7246268pgj.218.1535587573115; Wed, 29 Aug 2018 17:06:13 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::f180]) by smtp.gmail.com with ESMTPSA id x65-v6sm8295727pfk.140.2018.08.29.17.06.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Aug 2018 17:06:12 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Wed, 29 Aug 2018 17:06:02 -0700 Message-Id: X-Mailer: git-send-email 2.18.0 In-Reply-To: References: Subject: [OE-core] [PATCH 4/4] glibc-locale: Enable riscv64 and riscv32 in BINARY_LOCALE_ARCHES supported architectures 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 This support is there using cross-localedef but was not enabled, this caused the post-install for locales to be emitted which delays the boot significantly. emitted postints for locales contain exit 1 which is flagged now and was causing image generation to fail. Signed-off-by: Khem Raj --- meta/recipes-core/glibc/glibc-locale.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.18.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-core/glibc/glibc-locale.inc b/meta/recipes-core/glibc/glibc-locale.inc index e50e5cf5e3..1b676dc26e 100644 --- a/meta/recipes-core/glibc/glibc-locale.inc +++ b/meta/recipes-core/glibc/glibc-locale.inc @@ -21,13 +21,13 @@ RDEPENDS_localedef += "glibc" # to decrease initial boot time and avoid localedef being killed by the OOM # killer which used to effectively break i18n on machines with < 128MB RAM. -# default to disabled +# default to disabled ENABLE_BINARY_LOCALE_GENERATION ?= "0" ENABLE_BINARY_LOCALE_GENERATION_pn-nativesdk-glibc-locale = "1" #enable locale generation on these arches # BINARY_LOCALE_ARCHES is a space separated list of regular expressions -BINARY_LOCALE_ARCHES ?= "arm.* aarch64 i[3-6]86 x86_64 powerpc mips mips64" +BINARY_LOCALE_ARCHES ?= "arm.* aarch64 i[3-6]86 x86_64 powerpc mips mips64 riscv32 riscv64" # set "1" to use cross-localedef for locale generation # set "0" for qemu emulation of native localedef for locale generation