From patchwork Mon Oct 14 23:21:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 1176702 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.137; helo=fraxinus.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="Rxaq/S34"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46sZSF1jCpz9sPV for ; Tue, 15 Oct 2019 10:26:05 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id C8CA386357; Mon, 14 Oct 2019 23:26:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QGyEPBGCyER5; Mon, 14 Oct 2019 23:26:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2E50D8624A; Mon, 14 Oct 2019 23:26:01 +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 C5A3F1BF391 for ; Mon, 14 Oct 2019 23:25:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C2F0B86E21 for ; Mon, 14 Oct 2019 23:25:59 +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 I1nR0yLrMaEk for ; Mon, 14 Oct 2019 23:25:59 +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 04EF886E1D for ; Mon, 14 Oct 2019 23:25:58 +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=1571095605; x=1602631605; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=9gCl3L6hGjX+8h52yIU2xmqemLy4QQGgSQEASw0wieM=; b=Rxaq/S34Awyh4IIjy6zGVRkW+uIU4biQZ3rZOEOzzBuY7N3e7rQhvcfU 7fveJWyT7RjKObj9KMgjz2ye14MAsybDz1vFwUnsreoFiuu+wpnLPxQy6 8eKgvJas6xlpKdtV+o83+wM9Wom6+jJcOESDNsEF2YaQWNInjAzeGAyhE BSTeOJgxyEbiquB7EPn0EJ7WGVDTt7qL0WUAE8tFYo0zqsKrk5nsaVqlF ofMEVwWDlSw4fyVZbd4p07m8ETyPCfBZU5+B8r+iGbIYRoGkoqlvTs72k TukLsUPTYH2i98v5rCnvZu8gTMYJs0VNNjmgAqV5eDfSx5J+WCp7i9enW w==; IronPort-SDR: A/p8GgjgfooU6AjMwP+zbWpmpev34CLrac9R44E6184OC0WD2JzPo0FZtHJnPjWdFHi938crwT S/hO7bXV4vdWjOVDes9hW6SylOaiMA9hsHZrPKXV7vdKonn7OE7EP5fUdKV6J0hxumfqstGyTV oyH618zM1bzutwbD9av+R4lMIKDRwblI1DFjdQ6AA/InIx0wF1+p+4w30rfWzpXoTLgNyE/i0I VGeNqGa6HeJnT+EK4KEGpIFpzpnKmAAMiRAPU2sytgt2UN1d/MhbTajISw1X9mvwgmlYdPt7qI JmQ= X-IronPort-AV: E=Sophos;i="5.67,296,1566835200"; d="scan'208";a="221568528" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 15 Oct 2019 07:26:25 +0800 IronPort-SDR: tiPmTJcF5Yl9XyEq77qEp2MtONz4pJ1Gim0I/8y7OO/eHbU/RXiCPASWFYF7L7lLd8VcmptFW0 /CUMkNFNBMYulNzOL2QRTtZWwiLXLRPGxBdFxukYfXayXzNaTTmfde+CeaTXsHn30zxcMjZAJ2 ryhAmCiGsX001q8vCGYIeOid1ryuMfdxXzhhbHHaSs6W8xjSx9mwHoFg2SnRf69XRc8gyBHe+9 LkrP1z8Lw/o7B2o8qWoXExQW1uJ1EpLEdHP10tajeZ72BTaNPc7GhjsFPZDDe25zUR1baIGojC iLfJYnwkL2Rd/RWm5T+jIBYH Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2019 16:21:36 -0700 IronPort-SDR: 36D/qQVPSLbIOp1RPT2DC8pOyfZDV9rEG102VyHpgCDXSFjAXwqJXBH04lqNIDn+Sr1qFI/fQn p+3ULcVjAbNSQdlj3mVJnBmxIH8i9ljd77LJFHZG/zVvcoyjPg7H2mss8eyQ7jVK+9zkh6ZaaT rohjb3S+Q1Fj7YfhnEfp08+NAJ8PLsd5IYGLnb5bPwkwa8OBZKqmD1Aik/xrTeIhgSTukY/U8T DXRxShSskP1VZht1LVeV3gQTBLw6rY3/fKjIcQyiIO44dh5Uuyca0X0DRNLj5idPvmgx+NibNB 1CU= 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; 14 Oct 2019 16:25:46 -0700 From: Alistair Francis To: buildroot@buildroot.org Date: Mon, 14 Oct 2019 16:21:06 -0700 Message-Id: <20191014232106.13179-1-alistair.francis@wdc.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] opensbi: Bump from 0.4 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 --- ...Makefile-Don-t-specify-mabi-or-march.patch | 37 +++++++++++++++++++ boot/opensbi/opensbi.hash | 2 +- boot/opensbi/opensbi.mk | 2 +- 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 board/qemu/riscv32-virt/patches/opensbi/0001-Makefile-Don-t-specify-mabi-or-march.patch diff --git a/board/qemu/riscv32-virt/patches/opensbi/0001-Makefile-Don-t-specify-mabi-or-march.patch b/board/qemu/riscv32-virt/patches/opensbi/0001-Makefile-Don-t-specify-mabi-or-march.patch new file mode 100644 index 0000000000..5f554a6c24 --- /dev/null +++ b/board/qemu/riscv32-virt/patches/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..cf29f9a16b 100644 --- a/boot/opensbi/opensbi.hash +++ b/boot/opensbi/opensbi.hash @@ -1,2 +1,2 @@ # locally computed -sha256 d3060bf51af00204ce90fc73106955c694463b59a5b81be64cf780cd32743abf opensbi-0.4.tar.gz +sha256 bc82f1e63663cafb7976b324d8a01263510cfd816063dc89e0ccffb9763fb1dd opensbi-0.5.tar.gz 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