add ch32v208 makefile
This commit is contained in:
parent
ec9bcaefb5
commit
7f2d1150b1
|
@ -5,7 +5,7 @@ MAKEFLAGS += --no-print-directory
|
||||||
.PHONY:COMPILE_APP COMPILE_KERNEL
|
.PHONY:COMPILE_APP COMPILE_KERNEL
|
||||||
|
|
||||||
|
|
||||||
riscv_support := kd233 maix-go hifive1-rev-B gapuino gd32vf103-rvstar rv32m1-vega aiit-riscv64-board xidatong-riscv64 edu-riscv64 ch32v307vct6
|
riscv_support := kd233 maix-go hifive1-rev-B gapuino gd32vf103-rvstar rv32m1-vega aiit-riscv64-board xidatong-riscv64 edu-riscv64 ch32v307vct6 ch32v208rbt6
|
||||||
arm_support += stm32f407-st-discovery stm32f407zgt6 stm32f103-nano nuvoton-m2354 ok1052-c imxrt1176-sbc aiit-arm32-board xidatong-arm32 xiwangtong-arm32 edu-arm32 xishutong-arm32 rzv2l-m33 rzg2ul-m33
|
arm_support += stm32f407-st-discovery stm32f407zgt6 stm32f103-nano nuvoton-m2354 ok1052-c imxrt1176-sbc aiit-arm32-board xidatong-arm32 xiwangtong-arm32 edu-arm32 xishutong-arm32 rzv2l-m33 rzg2ul-m33
|
||||||
emulator_support += hifive1-emulator k210-emulator cortex-m0-emulator cortex-m3-emulator cortex-m4-emulator cortex-m7-emulator
|
emulator_support += hifive1-emulator k210-emulator cortex-m0-emulator cortex-m3-emulator cortex-m4-emulator cortex-m7-emulator
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,10 @@ ifeq ($(CONFIG_BOARD_CH32V307VCT6), )
|
||||||
SRC_DIR := shared
|
SRC_DIR := shared
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_BOARD_CH32V208RBT6), )
|
||||||
|
SRC_DIR := shared
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_BOARD_FE310_EVB),y)
|
ifeq ($(CONFIG_BOARD_FE310_EVB),y)
|
||||||
SRC_DIR +=fe310
|
SRC_DIR +=fe310
|
||||||
endif
|
endif
|
||||||
|
@ -37,6 +41,10 @@ ifeq ($(CONFIG_BOARD_CH32V307VCT6), y)
|
||||||
SRC_DIR +=ch32v307vct6
|
SRC_DIR +=ch32v307vct6
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_BOARD_CH32V208RBT6), y)
|
||||||
|
SRC_DIR := ch32v208rbt6
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_BOARD_RV32M1_VEGA),y)
|
ifeq ($(CONFIG_BOARD_RV32M1_VEGA),y)
|
||||||
SRC_DIR +=rv32m1-vega
|
SRC_DIR +=rv32m1-vega
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -11,7 +11,7 @@ export APPLFLAGS := -nostartfiles -Wl,--gc-sections,-Map=XiZi-app.map,-cref,-u,
|
||||||
|
|
||||||
export CXXFLAGS := -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common # -std=gnu99
|
export CXXFLAGS := -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common # -std=gnu99
|
||||||
|
|
||||||
export CROSS_COMPILE ?=/opt/riscv-embedded-gcc/bin/riscv-none-embed-
|
export CROSS_COMPILE ?=/opt/riscv64-toolchain/bin/riscv64-unknown-elf-
|
||||||
|
|
||||||
export DEFINES := -DHAVE_CCONFIG_H -DHAVE_SIGINFO
|
export DEFINES := -DHAVE_CCONFIG_H -DHAVE_SIGINFO
|
||||||
|
|
||||||
|
|
|
@ -227,6 +227,7 @@ int XiUOSStartup(void)
|
||||||
|
|
||||||
#ifdef TOOL_SHELL
|
#ifdef TOOL_SHELL
|
||||||
extern int userShellInit(void);
|
extern int userShellInit(void);
|
||||||
|
KPrintf("%s %d\n", __func__, __LINE__);
|
||||||
userShellInit();
|
userShellInit();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -239,6 +240,7 @@ extern int InitUserspace(void);
|
||||||
CreateMainTask();
|
CreateMainTask();
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
KPrintf("%s %d\n", __func__, __LINE__);
|
||||||
CreateMainTask();
|
CreateMainTask();
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -253,6 +255,9 @@ extern int InitUserspace(void);
|
||||||
StartWatchdog();
|
StartWatchdog();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
KPrintf("%s %d\n", __func__, __LINE__);
|
||||||
|
extern long ShowTask(void);
|
||||||
|
ShowTask();
|
||||||
StartupOsAssign();
|
StartupOsAssign();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -295,6 +295,18 @@ KERNELPATHS += \
|
||||||
-I$(KERNEL_ROOT)/include #
|
-I$(KERNEL_ROOT)/include #
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BSP_ROOT),$(KERNEL_ROOT)/board/ch32v208rbt6)
|
||||||
|
KERNELPATHS += \
|
||||||
|
-I$(KERNEL_ROOT)/arch/risc-v/ch32v208rbt6/Core \
|
||||||
|
-I$(KERNEL_ROOT)/arch/risc-v/ch32v208rbt6/Debug \
|
||||||
|
-I$(KERNEL_ROOT)/arch/risc-v/ch32v208rbt6/User \
|
||||||
|
-I$(KERNEL_ROOT)/arch/risc-v/ch32v208rbt6 \
|
||||||
|
-I$(BSP_ROOT)/third_party_driver/include \
|
||||||
|
-I$(BSP_ROOT)/third_party_driver/Peripheral/inc \
|
||||||
|
-I$(BSP_ROOT)/include \
|
||||||
|
-I$(KERNEL_ROOT)/include #
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(BSP_ROOT),$(KERNEL_ROOT)/board/rv32m1-vega)
|
ifeq ($(BSP_ROOT),$(KERNEL_ROOT)/board/rv32m1-vega)
|
||||||
KERNELPATHS += \
|
KERNELPATHS += \
|
||||||
-I$(KERNEL_ROOT)/arch/risc-v/rv32m1-vega \
|
-I$(KERNEL_ROOT)/arch/risc-v/rv32m1-vega \
|
||||||
|
|
Loading…
Reference in New Issue