diff --git a/demo_gpio/.cproject b/demo_gpio/.cproject new file mode 100644 index 0000000..69c2147 --- /dev/null +++ b/demo_gpio/.cproject @@ -0,0 +1,168 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + make + + all + true + true + true + + + + diff --git a/demo_gpio/.project b/demo_gpio/.project new file mode 100644 index 0000000..35d4be9 --- /dev/null +++ b/demo_gpio/.project @@ -0,0 +1,26 @@ + + + demo_gpio + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/dhrystone/.cproject b/dhrystone/.cproject new file mode 100644 index 0000000..85bd960 --- /dev/null +++ b/dhrystone/.cproject @@ -0,0 +1,75 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + make + all + true + true + true + + + make + + clean + true + true + true + + + + diff --git a/dhrystone/.project b/dhrystone/.project new file mode 100644 index 0000000..d2675d0 --- /dev/null +++ b/dhrystone/.project @@ -0,0 +1,28 @@ + + + dhrystone + + + bsp + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/hello-world/.cproject b/hello-world/.cproject new file mode 100644 index 0000000..f83f6f9 --- /dev/null +++ b/hello-world/.cproject @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + make + + all + true + true + true + + + make + + clean + true + true + true + + + + diff --git a/hello-world/.project b/hello-world/.project new file mode 100644 index 0000000..0464423 --- /dev/null +++ b/hello-world/.project @@ -0,0 +1,27 @@ + + + hello-world + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/hello-world/Makefile b/hello-world/Makefile index 91feaef..d3ee587 100644 --- a/hello-world/Makefile +++ b/hello-world/Makefile @@ -6,11 +6,10 @@ C_SRCS = $(wildcard *.c) BOARD=freedom-e300-hifive1 LINK_TARGET=flash -RISCV_ARCH=rv32imac -RISCV_ABI=ilp32 +RISCV_ARCH:=rv32i +RISCV_ABI:=ilp32 +LDFLAGS := -Wl,--wrap=scanf -Wl,--wrap=printf -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI) -LDFLAGS = -Wl,--wrap=printf -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI) -mcmodel=medany - -TOOL_DIR?=/opt/riscv/FreedomStudio/20180122/SiFive/riscv64-unknown-elf-gcc-20171231-x86_64-linux-centos6/bin +TOOL_DIR?=/opt/shared/riscv/FreedomStudio/20180122/SiFive/riscv64-unknown-elf-gcc-20171231-x86_64-linux-centos6/bin BSP_BASE = ./bsp include $(BSP_BASE)/env/common.mk diff --git a/hello-world/hello b/hello-world/hello index babda43..0d9c2b2 100755 Binary files a/hello-world/hello and b/hello-world/hello differ diff --git a/hello/.cproject b/hello/.cproject new file mode 100644 index 0000000..1135715 --- /dev/null +++ b/hello/.cproject @@ -0,0 +1,235 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + make + + all + true + true + true + + + make + + clean + true + true + true + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/hello/.project b/hello/.project new file mode 100644 index 0000000..5635cdb --- /dev/null +++ b/hello/.project @@ -0,0 +1,28 @@ + + + hello + + + bsp + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/hello/Makefile b/hello/Makefile index 728bd2d..9d622b6 100644 --- a/hello/Makefile +++ b/hello/Makefile @@ -3,7 +3,7 @@ TARGET = hello C_SRCS += $(wildcard *.c) CFLAGS += -g #-fno-builtin-printf -LDFLAGS := -Wl,--wrap=scanf -Wl,--wrap=printf +LDFLAGS := -Wl,--wrap=scanf -Wl,--wrap=printf #BOARD = iss BOARD=freedom-e300-hifive1 diff --git a/hello/hello b/hello/hello index 467a96e..023f489 100755 Binary files a/hello/hello and b/hello/hello differ