From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from g2t4622.austin.hp.com (g2t4622.austin.hp.com [15.73.212.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id B4C3421CB74C1 for ; Mon, 3 Jul 2017 22:30:28 -0700 (PDT) Received: from UB16Abner.asiapacific.hpqcorp.net (ub16abner.asiapacific.hpqcorp.net [15.119.158.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by g2t4622.austin.hp.com (Postfix) with ESMTPS id 39181376; Tue, 4 Jul 2017 05:32:04 +0000 (UTC) From: Abner Chang To: edk2-devel@lists.01.org Date: Tue, 4 Jul 2017 13:29:24 +0800 Message-Id: <1499146164-26231-5-git-send-email-abner.chang@hpe.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1499146164-26231-1-git-send-email-abner.chang@hpe.com> References: <1499146164-26231-1-git-send-email-abner.chang@hpe.com> Subject: [staging/branch RISC-V PATCH 4/4] RiscVVirtPkg: Update README file X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jul 2017 05:30:28 -0000 Update README for supporting RISC-V gcc 7.1.1. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Abner Chang --- RiscVVirtPkg/README | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/RiscVVirtPkg/README b/RiscVVirtPkg/README index 64611ad..ff48f62 100644 --- a/RiscVVirtPkg/README +++ b/RiscVVirtPkg/README @@ -1,7 +1,7 @@ ## @file # Readme of how to build and launch RiscVVirtPkg on QEMU. # -# Copyright (c) 2016, Hewlett Packard Enterprise Development LP. All rights reserved.
+# Copyright (c) 2016-2017, Hewlett Packard Enterprise Development LP. All rights reserved.
# # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License @@ -40,19 +40,23 @@ Current capabilities: === Get source code === * QEMU RISC-V PC/AT port. - git clone https://github.com/AbnerChang/RiscVQemuPcat.git + git clone https://github.com/AbnerChang/RiscVQemuPcat.git (Latest commit SHA 9992f910 07/03/2017) -* RISC-V tools - $git clone https://github.com/riscv/riscv-tools.git (Lastest commit 419f1b5 2016/4/1) +* RISC-V tools (RISC-V GCC 7.1.1) + $git clone https://github.com/riscv/riscv-tools.git (Lastest commit SHA 7cd1d105 06/22/2017) * EDK2 open source === Build RISC-V tool chain === Before you build RISC-V tool chain, you need below packages. -*sudo apt-get install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc +*sudo apt-get install autoconf automake autotools-dev curl device-tree-compiler libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev *Change directory to riscv-tools git submodule update --init --recursive export RISCV=~/riscv +*In build.sh, add build option "--with-arch=rv64g" to "build_project" as below, +build_project riscv-gnu-toolchain --prefix=$RISCV --with-arch=rv64g +This builds RISC-V tool chain to use RISC-V "G" varient. +*Build RISC-V tool chain ./build.sh The binaries needed for building EDK2 open source to RISC-V ISA are built in to ~/riscv @@ -80,7 +84,7 @@ Before you build QEMU RISC-V EDK2, you need belwo package. *Conf/target.txt ACTIVE_PLATFORM = RiscVVirtPkg/RiscVVirt64.dsc TARGET_ARCH = RISCV64 -TOOL_CHAIN_TAG = GCC53RISCV +TOOL_CHAIN_TAG = GCC711RISCV *$export PATH=$PATH:~/riscv/bin *$make -C BaseTools -- 2.7.4