1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 09:28:13 +00:00

build: further cleanup common symbols (#63)

This commit is contained in:
mcudev 2017-10-19 09:27:15 -04:00 committed by Pavol Rusnak
parent 7910c88f28
commit a0286bcc29
4 changed files with 7 additions and 7 deletions

View File

@ -98,13 +98,13 @@ env.Replace(
CCFLAGS='-Os ' CCFLAGS='-Os '
'-g3 ' '-g3 '
'-nostdlib ' '-nostdlib '
'-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith ' '-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common '
'-mthumb -mtune=cortex-m4 -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard ' '-mthumb -mtune=cortex-m4 -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard '
'-fsingle-precision-constant -fdata-sections -ffunction-sections ' '-fsingle-precision-constant -fdata-sections -ffunction-sections '
'-fstack-protector-all -ffreestanding ' '-fstack-protector-all -ffreestanding '
+ CCFLAGS_MOD, + CCFLAGS_MOD,
CCFLAGS_QSTR='-DNO_QSTR -DN_X64 -DN_X86 -DN_THUMB', CCFLAGS_QSTR='-DNO_QSTR -DN_X64 -DN_X86 -DN_THUMB',
LINKFLAGS='-nostdlib -T embed/boardloader/memory.ld --gc-sections -Map=build/boardloader/boardloader.map', LINKFLAGS='-nostdlib -T embed/boardloader/memory.ld --gc-sections -Map=build/boardloader/boardloader.map --warn-common',
CPPPATH=[ CPPPATH=[
'embed/boardloader', 'embed/boardloader',
'embed/trezorhal', 'embed/trezorhal',

View File

@ -115,13 +115,13 @@ env.Replace(
CCFLAGS='-Os ' CCFLAGS='-Os '
'-g3 ' '-g3 '
'-nostdlib ' '-nostdlib '
'-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith ' '-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common '
'-mthumb -mtune=cortex-m4 -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard ' '-mthumb -mtune=cortex-m4 -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard '
'-fsingle-precision-constant -fdata-sections -ffunction-sections ' '-fsingle-precision-constant -fdata-sections -ffunction-sections '
'-fstack-protector-all -ffreestanding ' '-fstack-protector-all -ffreestanding '
+ CCFLAGS_MOD, + CCFLAGS_MOD,
CCFLAGS_QSTR='-DNO_QSTR -DN_X64 -DN_X86 -DN_THUMB', CCFLAGS_QSTR='-DNO_QSTR -DN_X64 -DN_X86 -DN_THUMB',
LINKFLAGS='-nostdlib -T embed/bootloader/memory.ld --gc-sections', LINKFLAGS='-nostdlib -T embed/bootloader/memory.ld --gc-sections -Map=build/bootloader/bootloader.map --warn-common',
CPPPATH=[ CPPPATH=[
'embed/bootloader', 'embed/bootloader',
'embed/bootloader/nanopb', 'embed/bootloader/nanopb',

View File

@ -320,13 +320,13 @@ env.Replace(
CCFLAGS='$COPT ' CCFLAGS='$COPT '
'-g3 ' '-g3 '
'-nostdlib ' '-nostdlib '
'-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith ' '-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common '
'-mthumb -mtune=cortex-m4 -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard ' '-mthumb -mtune=cortex-m4 -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard '
'-fsingle-precision-constant -fdata-sections -ffunction-sections ' '-fsingle-precision-constant -fdata-sections -ffunction-sections '
+ CCFLAGS_MOD, + CCFLAGS_MOD,
CCFLAGS_QSTR='-DNO_QSTR -DN_X64 -DN_X86 -DN_THUMB', CCFLAGS_QSTR='-DNO_QSTR -DN_X64 -DN_X86 -DN_THUMB',
CCFLAGS_OPT='-O3', CCFLAGS_OPT='-O3',
LINKFLAGS='-nostdlib -T embed/firmware/memory.ld --gc-sections', LINKFLAGS='-nostdlib -T embed/firmware/memory.ld --gc-sections -Map=build/firmware/firmware.map --warn-common',
CPPPATH=[ CPPPATH=[
'.', '.',
'embed/firmware', 'embed/firmware',

View File

@ -41,7 +41,7 @@ void SystemInit(void)
SCB->CPACR |= ((3U << 22) | (3U << 20)); SCB->CPACR |= ((3U << 22) | (3U << 20));
} }
volatile uint32_t uwTick = 0; extern volatile uint32_t uwTick;
void SysTick_Handler(void) void SysTick_Handler(void)
{ {