From patchwork Fri Jul 27 23:30:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 950423 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=t-online.de Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41clZ36cCzz9rxx for ; Sat, 28 Jul 2018 09:30:18 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id BDCB230148; Fri, 27 Jul 2018 23:30:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wZBzdaaNt8TI; Fri, 27 Jul 2018 23:30:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id D41192E7C4; Fri, 27 Jul 2018 23:30:15 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 90F8C1C041E for ; Fri, 27 Jul 2018 23:30:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 8E6562E7C4 for ; Fri, 27 Jul 2018 23:30:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OCGfQbr0GFVD for ; Fri, 27 Jul 2018 23:30:13 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout01.t-online.de (mailout01.t-online.de [194.25.134.80]) by silver.osuosl.org (Postfix) with ESMTPS id 27ADC2E784 for ; Fri, 27 Jul 2018 23:30:13 +0000 (UTC) Received: from fwd20.aul.t-online.de (fwd20.aul.t-online.de [172.20.26.140]) by mailout01.t-online.de (Postfix) with SMTP id 8BC6142BFC2A; Sat, 28 Jul 2018 01:30:10 +0200 (CEST) Received: from fli4l.lan.fli4l (GcO2CgZJQhGqBTt77TXI28E4QyXTC++DPNscxcy4zOIP1Nc8zqia4RlfzqNqc-hwgF@[91.58.13.130]) by fwd20.t-online.de with (TLSv1:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1fjCBN-1kyahc0; Sat, 28 Jul 2018 01:30:01 +0200 Received: from mahler.lan.fli4l ([192.168.1.1]:45836 helo=kuhls.lan.fli4l) by fli4l.lan.fli4l with esmtp (Exim 4.91) (envelope-from ) id 1fjCBM-0001fY-R1; Sat, 28 Jul 2018 01:30:01 +0200 From: Bernd Kuhls To: buildroot@buildroot.org Date: Sat, 28 Jul 2018 01:30:00 +0200 Message-Id: <20180727233000.29075-1-bernd.kuhls@t-online.de> X-Mailer: git-send-email 2.18.0 X-ID: GcO2CgZJQhGqBTt77TXI28E4QyXTC++DPNscxcy4zOIP1Nc8zqia4RlfzqNqc-hwgF X-TOI-MSGID: 6dac2b2d-7028-4233-9fb0-3d552db802fa Subject: [Buildroot] [PATCH 1/1] package/libnss: fix aarch64_be build X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joseph Kogut MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" libnss does not treat aarch64_be the same way as aarch64: https://hg.mozilla.org/projects/nss/file/fb3585458ac3/lib/freebl/Makefile#l523 Add code to translate "aarch64_be" into "aarch" to fix http://autobuild.buildroot.net/results/4fc/4fca771980f9b049ce2690971ddd856652cd5b43/ Signed-off-by: Bernd Kuhls --- package/libnss/libnss.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package/libnss/libnss.mk b/package/libnss/libnss.mk index 03f575014d..0693f71ee6 100644 --- a/package/libnss/libnss.mk +++ b/package/libnss/libnss.mk @@ -23,6 +23,12 @@ endef LIBNSS_PRE_CONFIGURE_HOOKS += LIBNSS_DROP_GC_SECTIONS endif +ifeq ($(BR2_aarch64_be),y) +LIBNSS_ARCH = aarch64 +else +LIBNSS_ARCH = $(ARCH) +endif + LIBNSS_BUILD_VARS = \ MOZILLA_CLIENT=1 \ NSPR_INCLUDE_DIR=$(STAGING_DIR)/usr/include/nspr \ @@ -35,7 +41,7 @@ LIBNSS_BUILD_VARS = \ NATIVE_CC="$(HOSTCC)" \ OS_ARCH="Linux" \ OS_RELEASE="2.6" \ - OS_TEST="$(ARCH)" + OS_TEST="$(LIBNSS_ARCH)" # #pragma usage needs gcc >= 4.8 # See https://bugzilla.mozilla.org/show_bug.cgi?id=1226179