From nobody Fri Dec 19 20:27:31 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail header.i=@wdc.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=wdc.com ARC-Seal: i=1; a=rsa-sha256; t=1598075645; cv=none; d=zohomail.com; s=zohoarc; b=b+ssfqZZcIqHmtLbAPqud26XCfPYLQ7nO5tU1sBhSbVK8DuuXKpqQ+XFHJr8rcFqfC/gXjZ82KSIBWruvDQvOpVilB8Rzd33BK/0qp+2GKLnSDcCQhSeVAUG12PuYOGLA1nZSD+bLkx28VZOZEP6p5tw6yOJS5E3y6+ebFpxAbs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1598075645; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=6eDEJ8lwhjaP3NHgnqsUwF3sPiVhG+bAdSaAdZYwCB4=; b=WivY4vSczXjHgC0Z0nWly/AJ8RrS5cnG/eWUpjJSntcT+G9fP4RmD84AGtKX6N2qjUmMsPhNDSvbJA9j+9u7GZxABVQwxSkXibefny9j6Ds9jTHDct1t/E+RXysboRXOU+Ks+bonDACMrDJ8pt/v7PazT0V6PqgdSQ3JC/4A/Es= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail header.i=@wdc.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1598075645420520.2549389967713; Fri, 21 Aug 2020 22:54:05 -0700 (PDT) Received: from localhost ([::1]:56258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k9MTc-0006iq-5K for importer@patchew.org; Sat, 22 Aug 2020 01:54:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33978) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9MR5-0001s6-6a for qemu-devel@nongnu.org; Sat, 22 Aug 2020 01:51:27 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:25955) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9MR3-0000D6-3S for qemu-devel@nongnu.org; Sat, 22 Aug 2020 01:51:26 -0400 Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 22 Aug 2020 13:51:19 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Aug 2020 22:38:59 -0700 Received: from 5zn13g2.ad.shared (HELO risc6-mainframe.hgst.com) ([10.86.59.90]) by uls-op-cesaip02.wdc.com with ESMTP; 21 Aug 2020 22:51:19 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1598075485; x=1629611485; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=6HxENhhq/BMko0T0xzWot/5sw6/Bg+BMrzC/fgaMlvU=; b=KzRDH8ccstz4CRflJuzJPZkzN0JUaS8acaBR9h9zxil+g/9LJpz0B1Di /KSJu2mQsXJFU2O10N0aAIW0YjpW9gV9Xa4o5NL1KZKD0uyn9wCqgY5Ab x7JgUZj1PAK4FYptOzgk2t49ckTRmoqlzwVO1YcdPybvIOivxH5IBKY6s 0shkSFYcWjlfhdC/JjHJZZITju3XtQ9uX+86iZWwRS2K6ZqHmkj6sEYe1 w7csF8PNg+IC5F2MXKs/GIFb/+ALivs+iKmG8Sell/DXf8wkL/zBOscwg WCHcwfIj/idKmh1xXpXebjWizF99yrP+Cnk6Ebm0FNVnXvhiYAJTJJ2/5 g==; IronPort-SDR: G+LVLXvvUmArCOAQ2WNr7hxCtr8iEDeCR6Gx/jwQ5LzewJj3wC54kFkOnQhMxiBYoL7iEM/9kt 7bE44Tkqcq2lxWsQK20oSqMGxicPm9oFtojQFgH9pgJb3eKDujPEZh5lSNu1fCj9J7DZ91p7gV GK+hUlsV+nAb60GZcqGzSdDRjSJIDXccpPbvde+SFDPMGt8F5W30b25ANWldSNU6G/GanHd8B1 4jkTGC1pBDOL4rW6gBS5o/pTwiMadIPuAPWg0dzQ5K2hxeQ5YMOCUpJCApOlQmtxaooYS4x6Tm GcY= X-IronPort-AV: E=Sophos;i="5.76,339,1592841600"; d="scan'208";a="145571962" IronPort-SDR: 1BBS0YlBSearsDjYWjyAEUHKLVXkmbKZC2UZ/zO0D56tXBYQtuJW/sMHc4pU00Zrt73uuwmKOH q77I2F5KRzAQ== IronPort-SDR: YIVvLQKvrjxPglQHp0xS3oM51Cz8MzI9ue1cdtmaE85y1oxMgkaTpc7fuDJpJvs2RRgjbJqytT c6eVcqSlHt+Q== WDCIronportException: Internal From: Alistair Francis To: qemu-devel@nongnu.org Subject: [PULL v3 12/20] roms/Makefile: Build the generic platform for RISC-V OpenSBI firmware Date: Fri, 21 Aug 2020 22:40:53 -0700 Message-Id: <20200822054101.1202175-13-alistair.francis@wdc.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200822054101.1202175-1-alistair.francis@wdc.com> References: <20200822054101.1202175-1-alistair.francis@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=216.71.153.144; envelope-from=prvs=49637c5a7=alistair.francis@wdc.com; helo=esa5.hgst.iphmx.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/22 01:43:18 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer [fuzzy] X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alistair23@gmail.com, Bin Meng , alistair.francis@wdc.com, Anup Patel Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: Bin Meng The RISC-V generic platform is a flattened device tree (FDT) based platform where all platform specific functionality is provided based on FDT passed by previous booting stage. The support was added in the upstream OpenSBI v0.8 release recently. Update our Makefile to build the generic platform instead of building virt and sifive_u separately for RISC-V OpenSBI firmware, and change to use fw_dynamic type images as well. Signed-off-by: Bin Meng Reviewed-by: Anup Patel Reviewed-by: Alistair Francis Message-Id: <1596439832-29238-4-git-send-email-bmeng.cn@gmail.com> Signed-off-by: Alistair Francis --- roms/Makefile | 32 ++++++++++---------------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/roms/Makefile b/roms/Makefile index f9acf39954..5d9f15b677 100644 --- a/roms/Makefile +++ b/roms/Makefile @@ -64,10 +64,8 @@ default help: @echo " u-boot.e500 -- update u-boot.e500" @echo " u-boot.sam460 -- update u-boot.sam460" @echo " efi -- update UEFI (edk2) platform firmware" - @echo " opensbi32-virt -- update OpenSBI for 32-bit virt machine" - @echo " opensbi64-virt -- update OpenSBI for 64-bit virt machine" - @echo " opensbi32-sifive_u -- update OpenSBI for 32-bit sifive_u machine" - @echo " opensbi64-sifive_u -- update OpenSBI for 64-bit sifive_u machine" + @echo " opensbi32-generic -- update OpenSBI for 32-bit generic machine" + @echo " opensbi64-generic -- update OpenSBI for 64-bit generic machine" @echo " bios-microvm -- update bios-microvm.bin (qboot)" @echo " clean -- delete the files generated by the previous= " \ "build targets" @@ -170,29 +168,19 @@ skiboot: efi: edk2-basetools $(MAKE) -f Makefile.edk2 =20 -opensbi32-virt: +opensbi32-generic: $(MAKE) -C opensbi \ CROSS_COMPILE=3D$(riscv32_cross_prefix) \ - PLATFORM=3D"qemu/virt" - cp opensbi/build/platform/qemu/virt/firmware/fw_jump.bin ../pc-bios/opens= bi-riscv32-virt-fw_jump.bin + PLATFORM=3D"generic" + cp opensbi/build/platform/generic/firmware/fw_dynamic.bin ../pc-bios/open= sbi-riscv32-generic-fw_dynamic.bin + cp opensbi/build/platform/generic/firmware/fw_dynamic.elf ../pc-bios/open= sbi-riscv32-generic-fw_dynamic.elf =20 -opensbi64-virt: +opensbi64-generic: $(MAKE) -C opensbi \ CROSS_COMPILE=3D$(riscv64_cross_prefix) \ - PLATFORM=3D"qemu/virt" - cp opensbi/build/platform/qemu/virt/firmware/fw_jump.bin ../pc-bios/opens= bi-riscv64-virt-fw_jump.bin - -opensbi32-sifive_u: - $(MAKE) -C opensbi \ - CROSS_COMPILE=3D$(riscv32_cross_prefix) \ - PLATFORM=3D"sifive/fu540" - cp opensbi/build/platform/sifive/fu540/firmware/fw_jump.bin ../pc-bios/op= ensbi-riscv32-sifive_u-fw_jump.bin - -opensbi64-sifive_u: - $(MAKE) -C opensbi \ - CROSS_COMPILE=3D$(riscv64_cross_prefix) \ - PLATFORM=3D"sifive/fu540" - cp opensbi/build/platform/sifive/fu540/firmware/fw_jump.bin ../pc-bios/op= ensbi-riscv64-sifive_u-fw_jump.bin + PLATFORM=3D"generic" + cp opensbi/build/platform/generic/firmware/fw_dynamic.bin ../pc-bios/open= sbi-riscv64-generic-fw_dynamic.bin + cp opensbi/build/platform/generic/firmware/fw_dynamic.elf ../pc-bios/open= sbi-riscv64-generic-fw_dynamic.elf =20 bios-microvm: $(MAKE) -C qboot --=20 2.28.0