From patchwork Wed Oct 16 22:55:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 1178219 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=wdc.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=wdc.com header.i=@wdc.com header.b="lLF6+imU"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46tnnS1M2pz9sPJ for ; Thu, 17 Oct 2019 10:00:12 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8D9B684737; Wed, 16 Oct 2019 23:00:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i3MNr65JK9Wq; Wed, 16 Oct 2019 23:00:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 7F1FE86786; Wed, 16 Oct 2019 23:00:09 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id B18131BF356 for ; Wed, 16 Oct 2019 23:00:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id AE52286786 for ; Wed, 16 Oct 2019 23:00:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cZmP+9pbtjHm for ; Wed, 16 Oct 2019 23:00:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from esa2.hgst.iphmx.com (esa2.hgst.iphmx.com [68.232.143.124]) by whitealder.osuosl.org (Postfix) with ESMTPS id 01B5984737 for ; Wed, 16 Oct 2019 23:00:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1571266849; x=1602802849; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=+bvWMwGlIcQZiV2a5gsLM9EQABiG6zCoadsol6dpcZk=; b=lLF6+imUBEQTTzEZiO3cHVCyhEF4TwoTtvtWDFlQCQ7aCsXT4bD8XhUU 5FLNJqQnj4gIIvUIlahzVs0sp3s81CxX+3x6D6UpVgClsFSEIm3LWh3x3 ZFcU+p2s7MJPbY00qhaafgZxSrng1P1iPvhoO+U1SY8D5kdO8jw17AMQ+ TEW8O7rWLjlfZ/IkJ9BM08rYPpxPyZ5zQj94Rri/DbM0cVJPMisHvVdxr Tk6S7eOUnLbgfJCokL+orDEBG1jIhZRc1FHOxTv9PxfuX9ivrK1jvImx0 gCVoCfvBn4GIk91VSSl9Bmq7a2dUemkImaSzr5YFovWYxcZPWwHbOByeD g==; IronPort-SDR: e+tn1XcLYN+7ww9/13chnFuDTBgKVPSqOdp8ysa8zk/pQ7vnWwLpGTqvLqfiVYmrCVxjvTEDaD DzJksjyrsyzT0zE2PGkWboWMrfODff2EsxE0BX9baoE8PhcuJkc+dcBUsOApGCYstxH+zUvFhx nGjd6FBTqjQgY8e1GmiOTta5cBPjVeFRN1v1FT8fgkb6oUgPIkmlzN6v2ghNDK0FamG9EUSZg7 NyHNywBvO4c6wIW1mze1qFlePLI7+eExc2M/zz+T1e+JRfqG9gg7CrjgCgAbIqq9Y8kYmWrOAM ics= X-IronPort-AV: E=Sophos;i="5.67,305,1566835200"; d="scan'208";a="221761049" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 17 Oct 2019 07:00:48 +0800 IronPort-SDR: saP3yrDdFaWKLFeQbXi4gTkFZM4LbGOxEv8q/OT7LwAst16M/GevLFz+p8aWAF9lWlOKlo9zV4 wRVaRfan26DnreVsjsoyemFrmeD+MRtYdmR49EEdJ83in53BCt7ClTxatgQvEiWCUlrBuRvuvr hLkgoSrgKNwAXrKwT1g88qI4+WEo9isi9K7oqJz9NyvRC/ig2V2knnzPqW6yN7INcaAj8VccEU hPR1geeI4vC98XDtUlNFmMH3niNcuR7wDf88WCSKIzkydMfUaLnLR7PNH4xN4GzFa7IK0HnuS9 lfHmBZmsyiMIZ4HlwGSyq8WC Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2019 15:55:48 -0700 IronPort-SDR: lwBGVcA0fMFmi5fvyc1F7GdbjF0uyEmjaeBErOuBR0wBbKAuqBKoHrbT8DgN7rO0GAIn6vgWvH 9jrniyGYrUeoR0LRNWOsW/1kYxoYcUGt0qCRW1yBoN75sR+gmJUJzIWMzdCjyhKgrx/ud54Azx 5PLQCx3fLS4xcNcedrUkzmLWzbipsQ+3XSk1xvWirVidfx0DLSq2mXtS/xudClCmy05n+gRI+Q qyjet2WZYbBuJtBY2VbZDm9b0pq0eT7hXcG6nzSnAFUhbNMjgQ4yVhX2ae3MmRT7U8DkLzhZeq XvE= WDCIronportException: Internal Received: from risc6-mainframe.sdcorp.global.sandisk.com (HELO risc6-mainframe.int.fusionio.com) ([10.196.157.58]) by uls-op-cesaip01.wdc.com with ESMTP; 16 Oct 2019 16:00:06 -0700 From: Alistair Francis To: buildroot@buildroot.org Date: Wed, 16 Oct 2019 15:55:25 -0700 Message-Id: <20191016225525.12804-1-alistair.francis@wdc.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2] boot/opensbi: bump to 0.5 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alistair23@gmail.com, mark.corbin@embecosm.com, Alistair Francis Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Bump OpenSBI to the latest version. We need a patch for RV32 to avoid hard/soft float build failures. Signed-off-by: Alistair Francis --- v2: - Fixup title - Add COPYING.BSD SHA - Apply patch to all OpenSBI builds ...Makefile-Don-t-specify-mabi-or-march.patch | 37 +++++++++++++++++++ boot/opensbi/opensbi.hash | 3 +- boot/opensbi/opensbi.mk | 2 +- 3 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 boot/opensbi/0001-Makefile-Don-t-specify-mabi-or-march.patch diff --git a/boot/opensbi/0001-Makefile-Don-t-specify-mabi-or-march.patch b/boot/opensbi/0001-Makefile-Don-t-specify-mabi-or-march.patch new file mode 100644 index 0000000000..5f554a6c24 --- /dev/null +++ b/boot/opensbi/0001-Makefile-Don-t-specify-mabi-or-march.patch @@ -0,0 +1,37 @@ +From f5871e1f3650d6c8a032928cb5d8ca00c275c377 Mon Sep 17 00:00:00 2001 +From: Alistair Francis +Date: Fri, 15 Feb 2019 14:57:41 -0800 +Subject: [PATCH] Makefile: Don't specify mabi or march + +To avoid + can't link double-float modules with soft-float modules +errors when building 32-bit openSBI don't specify mabi or march. + +Signed-off-by: Alistair Francis +--- + Makefile | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/Makefile b/Makefile +index ae68f55..10851fc 100644 +--- a/Makefile ++++ b/Makefile +@@ -145,7 +145,6 @@ GENFLAGS += $(firmware-genflags-y) + CFLAGS = -g -Wall -Werror -nostdlib -fno-strict-aliasing -O2 + CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls + CFLAGS += -mno-save-restore -mstrict-align +-CFLAGS += -mabi=$(PLATFORM_RISCV_ABI) -march=$(PLATFORM_RISCV_ISA) + CFLAGS += -mcmodel=$(PLATFORM_RISCV_CODE_MODEL) + CFLAGS += $(GENFLAGS) + CFLAGS += $(platform-cflags-y) +@@ -158,7 +157,6 @@ CPPFLAGS += $(firmware-cppflags-y) + ASFLAGS = -g -Wall -nostdlib -D__ASSEMBLY__ + ASFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls + ASFLAGS += -mno-save-restore -mstrict-align +-ASFLAGS += -mabi=$(PLATFORM_RISCV_ABI) -march=$(PLATFORM_RISCV_ISA) + ASFLAGS += -mcmodel=$(PLATFORM_RISCV_CODE_MODEL) + ASFLAGS += $(GENFLAGS) + ASFLAGS += $(platform-asflags-y) +-- +2.20.1 + diff --git a/boot/opensbi/opensbi.hash b/boot/opensbi/opensbi.hash index 21f802bcbc..47d5930ace 100644 --- a/boot/opensbi/opensbi.hash +++ b/boot/opensbi/opensbi.hash @@ -1,2 +1,3 @@ # locally computed -sha256 d3060bf51af00204ce90fc73106955c694463b59a5b81be64cf780cd32743abf opensbi-0.4.tar.gz +sha256 bc82f1e63663cafb7976b324d8a01263510cfd816063dc89e0ccffb9763fb1dd opensbi-0.5.tar.gz +sha256 82d13fb1bf6bb162629deeea9eb9c117e74548d3b707e478967691fe79a68e21 COPYING.BSD diff --git a/boot/opensbi/opensbi.mk b/boot/opensbi/opensbi.mk index e202bd0b97..2df746ab00 100644 --- a/boot/opensbi/opensbi.mk +++ b/boot/opensbi/opensbi.mk @@ -4,7 +4,7 @@ # ################################################################################ -OPENSBI_VERSION = 0.4 +OPENSBI_VERSION = 0.5 OPENSBI_SITE = $(call github,riscv,opensbi,v$(OPENSBI_VERSION)) OPENSBI_LICENSE = BSD-2-Clause OPENSBI_LICENSE_FILES = COPYING.BSD