Skip to content

Commit

Permalink
BaseTools: Add external definitions for RISC-V assembly build
Browse files Browse the repository at this point in the history
Add opensbi external definitions to RISC-V build for assembly
code. Use GCC5_RISCV_OPENSBI_TYPES to refer to edk2 data type
for assembly files instead of using opensbi data type.

Signed-off-by: Abner Chang <[email protected]>

Reviewed-by: Bob Feng <[email protected]>

Cc: Bob Feng <[email protected]>
Cc: Liming Gao <[email protected]>
Cc: Daniel Schaefer <[email protected]>
Cc: Leif Lindholm <[email protected]>
  • Loading branch information
Abner Chang authored and mergify[bot] committed Jun 24, 2020
1 parent 3900a63 commit 20286e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions BaseTools/Conf/tools_def.template
Original file line number Diff line number Diff line change
Expand Up @@ -2037,6 +2037,7 @@ DEFINE GCC5_RISCV64_CC_FLAGS = DEF(GCC5_RISCV_ALL_CC_FLAGS) DEF(GC
DEFINE GCC5_RISCV64_DLINK_FLAGS = DEF(GCC5_RISCV_ALL_DLINK_FLAGS) -Wl,-melf64lriscv,--oformat=elf64-littleriscv,--no-relax
DEFINE GCC5_RISCV64_DLINK2_FLAGS = DEF(GCC5_RISCV_ALL_DLINK2_FLAGS)
DEFINE GCC5_RISCV64_ASM_FLAGS = DEF(GCC5_RISCV_ALL_ASM_FLAGS) -march=DEF(GCC5_RISCV64_ARCH) -mcmodel=medany -mabi=lp64
DEFINE GCC_PP_FLAGS = -E -x assembler-with-cpp -include AutoGen.h DEF(GCC5_RISCV_OPENSBI_TYPES)

####################################################################################
#
Expand Down

0 comments on commit 20286e1

Please sign in to comment.