minor update

This commit is contained in:
Blaise Tine
2021-10-09 13:19:46 -07:00
parent ca1d97a3c2
commit 28e26f3130
12 changed files with 81 additions and 113 deletions

View File

@@ -6,7 +6,7 @@ all:
$(MAKE) -C nearn
$(MAKE) -C guassian
$(MAKE) -C oclprintf
$(MAKE) -C psort
#$(MAKE) -C psort
run-simx:
$(MAKE) -C vecadd run-simx

View File

@@ -1,8 +1,4 @@
#LLVM_PREFIX ?= /opt/llvm-riscv
#LLVM_PREFIX=/home/blaise/dev/llvm-riscv/builddbg
#LLVM_PREFIX=/home/blaise/dev/llvm_rv12/build_dbg/release
LLVM_PREFIX=/home/blaise/dev/llvm-riscv/build_rel
LLVM_PREFIX ?= /opt/llvm-riscv
RISCV_TOOLCHAIN_PATH ?= /opt/riscv-gnu-toolchain
SYSROOT ?= $(RISCV_TOOLCHAIN_PATH)/riscv32-unknown-elf
POCL_CC_PATH ?= /opt/pocl/compiler
@@ -13,11 +9,6 @@ OPTS ?= -f -n16
VORTEX_DRV_PATH ?= $(realpath ../../../driver)
VORTEX_RT_PATH ?= $(realpath ../../../runtime)
#CC = ${CLANG_PATH}/bin/clang
#AR = ${CLANG_PATH}/bin/llvm-ar
#DP = ${CLANG_PATH}/bin/llvm-objdump
#CP = ${CLANG_PATH}/bin/llvm-objcopy
K_LLCFLAGS += "-O3 -march=riscv32 -target-abi=ilp32f -mcpu=generic-rv32 -mattr=+m,+f -mattr=+vortex -float-abi=hard -code-model=small"
K_CFLAGS += "-v -O3 --sysroot=$(SYSROOT) --gcc-toolchain=$(RISCV_TOOLCHAIN_PATH) -march=rv32imf -mabi=ilp32f -Xclang -target-feature -Xclang +vortex -I$(VORTEX_RT_PATH)/include -fno-rtti -fno-exceptions -ffreestanding -nostartfiles -fdata-sections -ffunction-sections"
K_LDFLAGS += "-Wl,-Bstatic,-T$(VORTEX_RT_PATH)/linker/vx_link.ld -Wl,--gc-sections $(VORTEX_RT_PATH)/libvortexrt.a -lm"