[BSP] Update X1000 config & SConstruct files.

This commit is contained in:
bernard 2017-11-13 16:00:52 +08:00
parent f859a81d6c
commit 3815ece6d6
5 changed files with 24 additions and 5 deletions

View File

@ -46,6 +46,8 @@ CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart"
# CONFIG_RT_USING_MODULE is not set
CONFIG_ARCH_MIPS=y
CONFIG_ARCH_MIPS_XBURST=y
#
# RT-Thread Components
@ -203,6 +205,8 @@ CONFIG_RT_USING_POSIX=y
# miscellaneous packages
#
# 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_HALLEY2 is not set
# CONFIG_BOARD_HALLEY2_FIR is not set

View File

@ -20,4 +20,14 @@ config $PKGS_DIR
source "$RTT_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"

View File

@ -29,5 +29,11 @@ Export('rtconfig')
# prepare building environment
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
DoBuilding(TARGET, objs)

View File

@ -43,6 +43,8 @@
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart"
/* RT_USING_MODULE is not set */
#define ARCH_MIPS
#define ARCH_MIPS_XBURST
/* RT-Thread Components */
@ -176,6 +178,8 @@
/* miscellaneous packages */
/* PKG_USING_HELLO is not set */
#define BOARD_X1000_REALBOARD
/* RT_USING_HARD_FLOAT is not set */
/* BOARD_PHOENIX is not set */
/* BOARD_HALLEY2 is not set */
/* BOARD_HALLEY2_FIR is not set */

View File

@ -5,11 +5,6 @@ ARCH ='mips'
CPU ='x1000'
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'):
CROSS_TOOL = os.getenv('RTT_CC')