[BSP] Update rtconfig.py for module in QEMU.
This commit is contained in:
parent
48e769c170
commit
4113f6bcda
|
@ -28,6 +28,7 @@ if PLATFORM == 'gcc':
|
||||||
SIZE = PREFIX + 'size'
|
SIZE = PREFIX + 'size'
|
||||||
OBJDUMP = PREFIX + 'objdump'
|
OBJDUMP = PREFIX + 'objdump'
|
||||||
OBJCPY = PREFIX + 'objcopy'
|
OBJCPY = PREFIX + 'objcopy'
|
||||||
|
STRIP = PREFIX + 'strip'
|
||||||
|
|
||||||
DEVICE = ' -march=armv7-a -marm -msoft-float'
|
DEVICE = ' -march=armv7-a -marm -msoft-float'
|
||||||
CFLAGS = DEVICE + ' -Wall'
|
CFLAGS = DEVICE + ' -Wall'
|
||||||
|
@ -50,5 +51,11 @@ if PLATFORM == 'gcc':
|
||||||
|
|
||||||
CXXFLAGS = CFLAGS
|
CXXFLAGS = CFLAGS
|
||||||
|
|
||||||
|
M_CFLAGS = CFLAGS + ' -mlong-calls -fPIC '
|
||||||
|
M_CXXFLAGS = CXXFLAGS + ' -mlong-calls -fPIC'
|
||||||
|
M_LFLAGS = DEVICE + CXXFLAGS + ' -Wl,--gc-sections,-z,max-page-size=0x4' +\
|
||||||
|
' -shared -fPIC -nostartfiles -static-libgcc'
|
||||||
|
M_POST_ACTION = STRIP + ' -R .hash $TARGET\n' + SIZE + ' $TARGET \n'
|
||||||
|
|
||||||
POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' +\
|
POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' +\
|
||||||
SIZE + ' $TARGET \n'
|
SIZE + ' $TARGET \n'
|
||||||
|
|
Loading…
Reference in New Issue