[BSP][smart] fix link script for smart in vexpress-a9 (#6764)

This commit is contained in:
Bernard Xiong 2022-12-29 15:18:36 +08:00 committed by GitHub
parent 0d1c709fa5
commit 8a71ae75ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 2 deletions

View File

@ -28,5 +28,9 @@ Export('rtconfig')
# prepare building environment # prepare building environment
objs = PrepareBuilding(env, RTT_ROOT) objs = PrepareBuilding(env, RTT_ROOT)
if GetDepend('RT_USING_SMART'):
# use smart link.lds
env['LINKFLAGS'] = env['LINKFLAGS'].replace('link.lds', 'link_smart.lds')
# make a building # make a building
DoBuilding(TARGET, objs) DoBuilding(TARGET, objs)

View File

@ -37,7 +37,7 @@ BUILD = 'debug'
LINK_SCRIPT = 'link.lds' LINK_SCRIPT = 'link.lds'
if PLATFORM == 'gcc': if PLATFORM == 'gcc':
PREFIX = os.getenv('RTT_EXEC_PREFIX') or 'arm-none-eabi-' PREFIX = os.getenv('RTT_CC_PREFIX') or 'arm-none-eabi-'
CC = PREFIX + 'gcc' CC = PREFIX + 'gcc'
CXX = PREFIX + 'g++' CXX = PREFIX + 'g++'
AS = PREFIX + 'gcc' AS = PREFIX + 'gcc'
@ -66,7 +66,7 @@ if PLATFORM == 'gcc':
else: else:
CFLAGS += ' -Os' CFLAGS += ' -Os'
CXXFLAGS += ' -Os' CXXFLAGS += ' -Os'
CXXFLAGS += ' -Woverloaded-virtual -fno-exceptions -fno-rtti' CXXFLAGS += ' -Woverloaded-virtual -fno-rtti'
M_CFLAGS = CFLAGS + ' -mlong-calls -fPIC ' M_CFLAGS = CFLAGS + ' -mlong-calls -fPIC '
M_CXXFLAGS = CXXFLAGS + ' -mlong-calls -fPIC' M_CXXFLAGS = CXXFLAGS + ' -mlong-calls -fPIC'

View File

@ -40,6 +40,8 @@ extern "C" {
#define DST_TUR 9 /* Turkey */ #define DST_TUR 9 /* Turkey */
#define DST_AUSTALT 10 /* Australian style with shift in 1986 */ #define DST_AUSTALT 10 /* Australian style with shift in 1986 */
struct itimerspec;
struct timezone struct timezone
{ {
int tz_minuteswest; /* minutes west of Greenwich */ int tz_minuteswest; /* minutes west of Greenwich */