[BSP] Update X1000 config & SConstruct files.
This commit is contained in:
parent
f859a81d6c
commit
3815ece6d6
@ -46,6 +46,8 @@ CONFIG_RT_USING_CONSOLE=y
|
|||||||
CONFIG_RT_CONSOLEBUF_SIZE=128
|
CONFIG_RT_CONSOLEBUF_SIZE=128
|
||||||
CONFIG_RT_CONSOLE_DEVICE_NAME="uart"
|
CONFIG_RT_CONSOLE_DEVICE_NAME="uart"
|
||||||
# CONFIG_RT_USING_MODULE is not set
|
# CONFIG_RT_USING_MODULE is not set
|
||||||
|
CONFIG_ARCH_MIPS=y
|
||||||
|
CONFIG_ARCH_MIPS_XBURST=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# RT-Thread Components
|
# RT-Thread Components
|
||||||
@ -203,6 +205,8 @@ CONFIG_RT_USING_POSIX=y
|
|||||||
# miscellaneous packages
|
# miscellaneous packages
|
||||||
#
|
#
|
||||||
# CONFIG_PKG_USING_HELLO is not set
|
# CONFIG_PKG_USING_HELLO is not set
|
||||||
|
CONFIG_BOARD_X1000_REALBOARD=y
|
||||||
|
# CONFIG_RT_USING_HARD_FLOAT is not set
|
||||||
# CONFIG_BOARD_PHOENIX is not set
|
# CONFIG_BOARD_PHOENIX is not set
|
||||||
# CONFIG_BOARD_HALLEY2 is not set
|
# CONFIG_BOARD_HALLEY2 is not set
|
||||||
# CONFIG_BOARD_HALLEY2_FIR is not set
|
# CONFIG_BOARD_HALLEY2_FIR is not set
|
||||||
|
@ -20,4 +20,14 @@ config $PKGS_DIR
|
|||||||
|
|
||||||
source "$RTT_DIR/KConfig"
|
source "$RTT_DIR/KConfig"
|
||||||
source "$PKGS_DIR/KConfig"
|
source "$PKGS_DIR/KConfig"
|
||||||
|
|
||||||
|
config BOARD_X1000_REALBOARD
|
||||||
|
bool
|
||||||
|
select ARCH_MIPS_XBURST
|
||||||
|
default y
|
||||||
|
|
||||||
|
config RT_USING_HARD_FLOAT
|
||||||
|
bool "Enable Hardware Float Unit"
|
||||||
|
default y
|
||||||
|
|
||||||
source "$BSP_DIR/drivers/Kconfig"
|
source "$BSP_DIR/drivers/Kconfig"
|
||||||
|
@ -29,5 +29,11 @@ Export('rtconfig')
|
|||||||
# prepare building environment
|
# prepare building environment
|
||||||
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
|
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
|
||||||
|
|
||||||
|
if not GetDepend('RT_USING_HARD_FLOAT'):
|
||||||
|
env['CCFLAGS'] = env['CCFLAGS'].replace('-mhard-float', '-msoft-float')
|
||||||
|
env['ASFLAGS'] = env['ASFLAGS'].replace('-mhard-float', '-msoft-float')
|
||||||
|
env['CXXFLAGS'] = env['CXXFLAGS'].replace('-mhard-float', '-msoft-float')
|
||||||
|
env['LINKFLAGS'] = env['LINKFLAGS'].replace('-mhard-float', '-msoft-float')
|
||||||
|
|
||||||
# make a building
|
# make a building
|
||||||
DoBuilding(TARGET, objs)
|
DoBuilding(TARGET, objs)
|
||||||
|
@ -43,6 +43,8 @@
|
|||||||
#define RT_CONSOLEBUF_SIZE 128
|
#define RT_CONSOLEBUF_SIZE 128
|
||||||
#define RT_CONSOLE_DEVICE_NAME "uart"
|
#define RT_CONSOLE_DEVICE_NAME "uart"
|
||||||
/* RT_USING_MODULE is not set */
|
/* RT_USING_MODULE is not set */
|
||||||
|
#define ARCH_MIPS
|
||||||
|
#define ARCH_MIPS_XBURST
|
||||||
|
|
||||||
/* RT-Thread Components */
|
/* RT-Thread Components */
|
||||||
|
|
||||||
@ -176,6 +178,8 @@
|
|||||||
/* miscellaneous packages */
|
/* miscellaneous packages */
|
||||||
|
|
||||||
/* PKG_USING_HELLO is not set */
|
/* PKG_USING_HELLO is not set */
|
||||||
|
#define BOARD_X1000_REALBOARD
|
||||||
|
/* RT_USING_HARD_FLOAT is not set */
|
||||||
/* BOARD_PHOENIX is not set */
|
/* BOARD_PHOENIX is not set */
|
||||||
/* BOARD_HALLEY2 is not set */
|
/* BOARD_HALLEY2 is not set */
|
||||||
/* BOARD_HALLEY2_FIR is not set */
|
/* BOARD_HALLEY2_FIR is not set */
|
||||||
|
@ -5,11 +5,6 @@ ARCH ='mips'
|
|||||||
CPU ='x1000'
|
CPU ='x1000'
|
||||||
CROSS_TOOL ='gcc'
|
CROSS_TOOL ='gcc'
|
||||||
|
|
||||||
if os.getenv('RTT_ROOT'):
|
|
||||||
RTT_ROOT = os.getenv('RTT_ROOT')
|
|
||||||
else:
|
|
||||||
RTT_ROOT = r'E:\rt-thread'
|
|
||||||
|
|
||||||
if os.getenv('RTT_CC'):
|
if os.getenv('RTT_CC'):
|
||||||
CROSS_TOOL = os.getenv('RTT_CC')
|
CROSS_TOOL = os.getenv('RTT_CC')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user