temp commit

Signed-off-by: liangkangnan <liangkangnan@163.com>
pull/4/head
Blue Liang 2021-03-29 18:22:52 +08:00
parent f23b545499
commit b4b54d831b
8 changed files with 24 additions and 31 deletions

View File

@ -10,22 +10,22 @@ RISCV_AR := $(abspath $(RISCV_TOOLS_PATH)/$(RISCV_TOOLS_PREFIX)ar)
RISCV_OBJCOPY := $(abspath $(RISCV_TOOLS_PATH)/$(RISCV_TOOLS_PREFIX)objcopy) RISCV_OBJCOPY := $(abspath $(RISCV_TOOLS_PATH)/$(RISCV_TOOLS_PREFIX)objcopy)
RISCV_READELF := $(abspath $(RISCV_TOOLS_PATH)/$(RISCV_TOOLS_PREFIX)readelf) RISCV_READELF := $(abspath $(RISCV_TOOLS_PATH)/$(RISCV_TOOLS_PREFIX)readelf)
BIN_TO_MEM := $(COMMON_DIR)/../../tools/BinToMem.py BIN_TO_MEM := $(BSP_DIR)/../../tools/BinToMem.py
.PHONY: all .PHONY: all
all: $(TARGET) all: $(TARGET)
ASM_SRCS += $(COMMON_DIR)/start.S ASM_SRCS += $(BSP_DIR)/start.S
ASM_SRCS += $(COMMON_DIR)/trap_entry.S ASM_SRCS += $(BSP_DIR)/trap_entry.S
C_SRCS += $(COMMON_DIR)/init.c C_SRCS += $(BSP_DIR)/init.c
C_SRCS += $(COMMON_DIR)/trap_handler.c C_SRCS += $(BSP_DIR)/trap_handler.c
C_SRCS += $(COMMON_DIR)/lib/utils.c C_SRCS += $(BSP_DIR)/lib/utils.c
C_SRCS += $(COMMON_DIR)/lib/xprintf.c C_SRCS += $(BSP_DIR)/lib/xprintf.c
C_SRCS += $(COMMON_DIR)/lib/uart.c C_SRCS += $(BSP_DIR)/lib/uart.c
LINKER_SCRIPT := $(COMMON_DIR)/link.lds LINKER_SCRIPT := $(BSP_DIR)/link.lds
INCLUDES += -I$(COMMON_DIR) INCLUDES += -I$(BSP_DIR)
LDFLAGS += -T $(LINKER_SCRIPT) -nostartfiles -Wl,--gc-sections -Wl,--check-sections LDFLAGS += -T $(LINKER_SCRIPT) -nostartfiles -Wl,--gc-sections -Wl,--check-sections

View File

@ -23,6 +23,5 @@ C_SRCS := \
../../Source/portable/RISC-V/port.c \ ../../Source/portable/RISC-V/port.c \
COMMON_DIR = ../../../../bsp BSP_DIR = ../../../../bsp
TOOLCHAIN_DIR = ../../../../.. include ../../../../bsp/bsp.mk
include ../../../../bsp/common.mk

View File

@ -16,6 +16,5 @@ CFLAGS := -O2 -fno-common -funroll-loops -finline-functions --param max-inline-i
CFLAGS += -DFLAGS_STR=\""$(CFLAGS)"\" CFLAGS += -DFLAGS_STR=\""$(CFLAGS)"\"
CFLAGS += -DITERATIONS=10000 -DPERFORMANCE_RUN=1 CFLAGS += -DITERATIONS=10000 -DPERFORMANCE_RUN=1
COMMON_DIR = ../../bsp BSP_DIR = ../../bsp
TOOLCHAIN_DIR = ../../.. include ../../bsp/bsp.mk
include ../../bsp/common.mk

View File

@ -16,6 +16,5 @@ C_SRCS := \
main.c \ main.c \
COMMON_DIR = ../../bsp BSP_DIR = ../../bsp
TOOLCHAIN_DIR = ../../.. include ../../bsp/bsp.mk
include ../../bsp/common.mk

View File

@ -16,6 +16,5 @@ C_SRCS := \
main.c \ main.c \
COMMON_DIR = ../../bsp BSP_DIR = ../../bsp
TOOLCHAIN_DIR = ../../.. include ../../bsp/bsp.mk
include ../../bsp/common.mk

View File

@ -16,6 +16,5 @@ C_SRCS := \
main.c \ main.c \
COMMON_DIR = ../../bsp BSP_DIR = ../../bsp
TOOLCHAIN_DIR = ../../.. include ../../bsp/bsp.mk
include ../../bsp/common.mk

View File

@ -16,6 +16,5 @@ C_SRCS := \
main.c \ main.c \
COMMON_DIR = ../../bsp BSP_DIR = ../../bsp
TOOLCHAIN_DIR = ../../.. include ../../bsp/bsp.mk
include ../../bsp/common.mk

View File

@ -16,6 +16,5 @@ C_SRCS := \
main.c \ main.c \
COMMON_DIR = ../../bsp BSP_DIR = ../../bsp
TOOLCHAIN_DIR = ../../.. include ../../bsp/bsp.mk
include ../../bsp/common.mk