From patchwork Mon Nov 12 22:43:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Brodkin X-Patchwork-Id: 996705 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=synopsys.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Uda3ulsA"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="IcxHYx3b"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="jSMvN7MK"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42v5R451kQz9s3q for ; Tue, 13 Nov 2018 09:44:16 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=aIoqCYQ6YQEApRCJAlyOBEU3C+Roz7GR+neeA3oDXMA=; b=Uda 3ulsAqf79OdCYIWBZbzBPUdG9lRXcMZmwpgEn7VDUy3iIgdQHjDGdFeC/crtU/RP2vqOrMHm3w9Jc kLRBYRDR78orB7Qz3zcHcVutFdym1JXozMjsUHVur86wpgrx1fcM8W86ZjfhQBA21n6/8l0paSV1h nWPkLvYjrsQJo8mWJc3VVOf8Fqe4vvLetKV/LnreDy+p9pZUylbYdfGvtLGlcs+OTcFH/LCd9OQ92 RqDQHEqHykZJ77FhoTk3Z4dnsbndjsbc36ybwflSsDert17u0/Sj6ACBxVAEyT/97xfoGkovK+Drd datrTQ7wWa3PcaxYnndLVBPjtei3FKg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMKwI-00035W-P9; Mon, 12 Nov 2018 22:44:14 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMKwH-00035M-3Q for linux-snps-arc@bombadil.infradead.org; Mon, 12 Nov 2018 22:44:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=8XgYh9LdOfBLdfgkvAvr47IYSv7Vx/Hki2sy8w6dNQM=; b=IcxHYx3bUGqcmPAT4yxcHVaz6 IWQgs7vednqF+QqlByIpkhInZvwNFkHX6yX2Y0B1AKv0ZBFbNVAhSkbmiFLbiJ+LkFFgIyz4K1aIz 0zbTzsf7eOx6t6BDA7Plu4JhVzfc6TiTg/oYSYCMr0OnwbIY5iUgsfWMwnUgKPPzEO6WzAZUu2oW0 VYcKDe5qq8AEyDOWR2dAtq30YgUEN5z+beAquj3n3Cgf92jaeDG10A7Fu1w2QF7L2lMAnWaYCdBH3 y1ktDkq2GPOaAvvmwZ2WO2XqsPpg0UW4Lmur9TfloVGYqw0vJBNDbhF1VEoGhgLPTT3/Vh9lTeYzI cj0X1qSBg==; Received: from us01smtprelay-2.synopsys.com ([198.182.47.9] helo=smtprelay.synopsys.com) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMKwD-0001dz-RZ for linux-snps-arc@lists.infradead.org; Mon, 12 Nov 2018 22:44:11 +0000 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id 27B8024E061B; Mon, 12 Nov 2018 14:43:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1542062636; bh=KGxx+UzgXBQ4VoeX9WVYyqCWKO0bsEeAaQk3nZa+rOw=; h=From:To:Cc:Subject:Date:From; b=jSMvN7MKwmN14byQTL1mTeCDzRoQNPLy5NKhvAFPK5KnX3HlJ88E1z9gZVMb+1ovr j1kf+thtIPsnVf8yY1zDMFQ9u+69ITuOfr1h2I9dSmskDjI6JbBptCdeGTDN+zqCWJ 7HX+D6oUMCgvg9WIUatb+on1i7FkYctyvgJnZuRaNsGLLtjKIB9FKBypGUTUKouud/ 55kLZcwH9L9Co+C30bAXGPLM/cYM6AbRftJ01cF6L0AOfUBzGt4NpA2J32miSZlaxZ ZRk62tpm1NsIpXW/5tIQhOhtyvbIodG+sceApypbBm4GirdX+130fHn1EgUeW3yE2Q QfhI6vMt/toqw== Received: from ru20arcgnu1.internal.synopsys.com (ru20arcgnu1.internal.synopsys.com [10.121.9.48]) by mailhost.synopsys.com (Postfix) with ESMTP id B219B5C1A; Mon, 12 Nov 2018 14:43:54 -0800 (PST) From: Alexey Brodkin To: openembedded-core@lists.openembedded.org Subject: [PATCH] locale: Allow usage of cross-localedef for ARC Date: Tue, 13 Nov 2018 01:43:51 +0300 Message-Id: <20181112224351.2050-1-abrodkin@synopsys.com> X-Mailer: git-send-email 2.16.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181112_224410_070658_7D8F5F68 X-CRM114-Status: UNSURE ( 9.60 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on casper.infradead.org summary: Content analysis details: (-0.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [198.182.47.9 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-snps-arc@lists.infradead.org, Alexey Brodkin , Ross Burton , Khem Raj MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org With this it's possible to build locale data for ARC and not do it instead on the first boot. Signed-off-by: Alexey Brodkin --- meta/classes/libc-package.bbclass | 2 ++ meta/lib/oe/package_manager.py | 2 ++ meta/recipes-core/glibc/glibc-locale.inc | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/meta/classes/libc-package.bbclass b/meta/classes/libc-package.bbclass index 9d09c7be6a..4c694ab5e2 100644 --- a/meta/classes/libc-package.bbclass +++ b/meta/classes/libc-package.bbclass @@ -242,6 +242,8 @@ python package_do_split_gconvs () { if use_cross_localedef == "1": target_arch = d.getVar('TARGET_ARCH') locale_arch_options = { \ + "arc": " --uint32-align=4 --little-endian ", \ + "arceb": " --uint32-align=4 --big-endian ", \ "arm": " --uint32-align=4 --little-endian ", \ "armeb": " --uint32-align=4 --big-endian ", \ "aarch64": " --uint32-align=4 --little-endian ", \ diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index 882e7c429f..aa4de6e7c3 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py @@ -94,6 +94,8 @@ def generate_locale_archive(d, rootfs, target_arch, localedir): # Pretty sure we don't need this for locale archive generation but # keeping it to be safe... locale_arch_options = { \ + "arc": ["--uint32-align=4", "--little-endian"], + "arceb": ["--uint32-align=4", "--big-endian"], "arm": ["--uint32-align=4", "--little-endian"], "armeb": ["--uint32-align=4", "--big-endian"], "aarch64": ["--uint32-align=4", "--little-endian"], diff --git a/meta/recipes-core/glibc/glibc-locale.inc b/meta/recipes-core/glibc/glibc-locale.inc index 1b676dc26e..57b465dd5d 100644 --- a/meta/recipes-core/glibc/glibc-locale.inc +++ b/meta/recipes-core/glibc/glibc-locale.inc @@ -27,7 +27,7 @@ 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 riscv32 riscv64" +BINARY_LOCALE_ARCHES ?= "arc 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