mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-23 00:15:58 +01:00
- reduced target file redundancies in Unity
- fixed broken gcc makefile git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@95 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
This commit is contained in:
@@ -1,33 +0,0 @@
|
|||||||
compiler:
|
|
||||||
path: gcc
|
|
||||||
source_path: 'src/'
|
|
||||||
unit_tests_path: &unit_tests_path 'test/'
|
|
||||||
build_path: &build_path 'build/'
|
|
||||||
options:
|
|
||||||
- -c
|
|
||||||
includes:
|
|
||||||
prefix: '-I'
|
|
||||||
items:
|
|
||||||
- 'src/'
|
|
||||||
- '../src/'
|
|
||||||
- *unit_tests_path
|
|
||||||
defines:
|
|
||||||
prefix: '-D'
|
|
||||||
items:
|
|
||||||
object_files:
|
|
||||||
prefix: '-o'
|
|
||||||
extension: '.o'
|
|
||||||
destination: *build_path
|
|
||||||
linker:
|
|
||||||
path: gcc
|
|
||||||
options:
|
|
||||||
- -lm
|
|
||||||
includes:
|
|
||||||
prefix: '-I'
|
|
||||||
object_files:
|
|
||||||
path: *build_path
|
|
||||||
extension: '.o'
|
|
||||||
bin_files:
|
|
||||||
prefix: '-o'
|
|
||||||
extension: '.exe'
|
|
||||||
destination: *build_path
|
|
||||||
@@ -1,83 +0,0 @@
|
|||||||
tools_root: &tools_root 'C:\Program Files\IAR Systems\Embedded Workbench 4.0 Kickstart\'
|
|
||||||
compiler:
|
|
||||||
path: [*tools_root, 'arm\bin\iccarm.exe']
|
|
||||||
source_path: 'src\'
|
|
||||||
unit_tests_path: &unit_tests_path 'test\'
|
|
||||||
build_path: &build_path 'build\'
|
|
||||||
options:
|
|
||||||
- --dlib_config
|
|
||||||
- [*tools_root, 'arm\lib\dl4tptinl8n.h']
|
|
||||||
- -z3
|
|
||||||
- --no_cse
|
|
||||||
- --no_unroll
|
|
||||||
- --no_inline
|
|
||||||
- --no_code_motion
|
|
||||||
- --no_tbaa
|
|
||||||
- --no_clustering
|
|
||||||
- --no_scheduling
|
|
||||||
- --debug
|
|
||||||
- --cpu_mode thumb
|
|
||||||
- --endian little
|
|
||||||
- --cpu ARM7TDMI
|
|
||||||
- --stack_align 4
|
|
||||||
- --interwork
|
|
||||||
- -e
|
|
||||||
- --silent
|
|
||||||
- --warnings_are_errors
|
|
||||||
- --fpu None
|
|
||||||
- --diag_suppress Pa050
|
|
||||||
includes:
|
|
||||||
prefix: '-I'
|
|
||||||
items:
|
|
||||||
- [*tools_root, 'arm\inc\']
|
|
||||||
- 'src\'
|
|
||||||
- '../src/'
|
|
||||||
- *unit_tests_path
|
|
||||||
defines:
|
|
||||||
prefix: '-D'
|
|
||||||
items:
|
|
||||||
object_files:
|
|
||||||
prefix: '-o'
|
|
||||||
extension: '.r79'
|
|
||||||
destination: *build_path
|
|
||||||
linker:
|
|
||||||
path: [*tools_root, 'common\bin\xlink.exe']
|
|
||||||
options:
|
|
||||||
- -rt
|
|
||||||
- [*tools_root, 'arm\lib\dl4tptinl8n.r79']
|
|
||||||
- -D_L_EXTMEM_START=0
|
|
||||||
- -D_L_EXTMEM_SIZE=0
|
|
||||||
- -D_L_HEAP_SIZE=120
|
|
||||||
- -D_L_STACK_SIZE=32
|
|
||||||
- -e_small_write=_formatted_write
|
|
||||||
- -s
|
|
||||||
- __program_start
|
|
||||||
- -f
|
|
||||||
- [*tools_root, '\arm\config\lnkarm.xcl']
|
|
||||||
includes:
|
|
||||||
prefix: '-I'
|
|
||||||
items:
|
|
||||||
- [*tools_root, 'arm\config\']
|
|
||||||
- [*tools_root, 'arm\lib\']
|
|
||||||
object_files:
|
|
||||||
path: *build_path
|
|
||||||
extension: '.r79'
|
|
||||||
bin_files:
|
|
||||||
prefix: '-o'
|
|
||||||
extension: '.d79'
|
|
||||||
destination: *build_path
|
|
||||||
simulator:
|
|
||||||
path: [*tools_root, 'common\bin\CSpyBat.exe']
|
|
||||||
pre_support:
|
|
||||||
- --silent
|
|
||||||
- [*tools_root, 'arm\bin\armproc.dll']
|
|
||||||
- [*tools_root, 'arm\bin\armsim.dll']
|
|
||||||
post_support:
|
|
||||||
- --plugin
|
|
||||||
- [*tools_root, 'arm\bin\armbat.dll']
|
|
||||||
- --backend
|
|
||||||
- -B
|
|
||||||
- -p
|
|
||||||
- [*tools_root, 'arm\config\ioat91sam7X256.ddf']
|
|
||||||
- -d
|
|
||||||
- sim
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
tools_root: &tools_root 'C:\Program Files\IAR Systems\Embedded Workbench 5.0 Kickstart\'
|
|
||||||
compiler:
|
|
||||||
path: [*tools_root, 'arm\bin\iccarm.exe']
|
|
||||||
source_path: 'src\'
|
|
||||||
unit_tests_path: &unit_tests_path 'test\'
|
|
||||||
build_path: &build_path 'build\'
|
|
||||||
options:
|
|
||||||
- --dlib_config
|
|
||||||
- [*tools_root, 'arm\inc\DLib_Config_Normal.h']
|
|
||||||
- --no_cse
|
|
||||||
- --no_unroll
|
|
||||||
- --no_inline
|
|
||||||
- --no_code_motion
|
|
||||||
- --no_tbaa
|
|
||||||
- --no_clustering
|
|
||||||
- --no_scheduling
|
|
||||||
- --debug
|
|
||||||
- --cpu_mode thumb
|
|
||||||
- --endian=little
|
|
||||||
- --cpu=ARM7TDMI
|
|
||||||
- --interwork
|
|
||||||
- --warnings_are_errors
|
|
||||||
- --fpu=None
|
|
||||||
- --diag_suppress=Pa050
|
|
||||||
- --diag_suppress=Pe111
|
|
||||||
- -e
|
|
||||||
- -On
|
|
||||||
includes:
|
|
||||||
prefix: '-I'
|
|
||||||
items:
|
|
||||||
- [*tools_root, 'arm\inc\']
|
|
||||||
- 'src\'
|
|
||||||
- '../src/'
|
|
||||||
- *unit_tests_path
|
|
||||||
defines:
|
|
||||||
prefix: '-D'
|
|
||||||
items:
|
|
||||||
object_files:
|
|
||||||
prefix: '-o'
|
|
||||||
extension: '.r79'
|
|
||||||
destination: *build_path
|
|
||||||
linker:
|
|
||||||
path: [*tools_root, 'arm\bin\ilinkarm.exe']
|
|
||||||
options:
|
|
||||||
- --redirect _Printf=_PrintfLarge
|
|
||||||
- --redirect _Scanf=_ScanfSmall
|
|
||||||
- --semihosting
|
|
||||||
- --entry __iar_program_start
|
|
||||||
- --config
|
|
||||||
- [*tools_root, 'arm\config\generic.icf']
|
|
||||||
object_files:
|
|
||||||
path: *build_path
|
|
||||||
extension: '.o'
|
|
||||||
bin_files:
|
|
||||||
prefix: '-o'
|
|
||||||
extension: '.out'
|
|
||||||
destination: *build_path
|
|
||||||
simulator:
|
|
||||||
path: [*tools_root, 'common\bin\CSpyBat.exe']
|
|
||||||
pre_support:
|
|
||||||
- --silent
|
|
||||||
- [*tools_root, 'arm\bin\armproc.dll']
|
|
||||||
- [*tools_root, 'arm\bin\armsim.dll']
|
|
||||||
post_support:
|
|
||||||
- --plugin
|
|
||||||
- [*tools_root, 'arm\bin\armbat.dll']
|
|
||||||
- --backend
|
|
||||||
- -B
|
|
||||||
- -p
|
|
||||||
- [*tools_root, 'arm\config\debugger\atmel\ioat91sam7X256.ddf']
|
|
||||||
- -d
|
|
||||||
- sim
|
|
||||||
@@ -19,7 +19,7 @@ module RakefileHelpers
|
|||||||
|
|
||||||
def configure_toolchain(config_file=DEFAULT_CONFIG_FILE)
|
def configure_toolchain(config_file=DEFAULT_CONFIG_FILE)
|
||||||
config_file += '.yml' unless config_file =~ /\.yml$/
|
config_file += '.yml' unless config_file =~ /\.yml$/
|
||||||
load_configuration(config_file)
|
load_configuration('../targets/'+config_file)
|
||||||
configure_clean
|
configure_clean
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
2
makefile
2
makefile
@@ -15,7 +15,7 @@ TARGET = $(TARGET_BASE)$(TARGET_EXTENSION)
|
|||||||
OUT_FILE=-o $(TARGET)
|
OUT_FILE=-o $(TARGET)
|
||||||
SRC_FILES=src/unity.c test/testunity.c build/testunity_Runner.c
|
SRC_FILES=src/unity.c test/testunity.c build/testunity_Runner.c
|
||||||
INC_DIRS=-Isrc
|
INC_DIRS=-Isrc
|
||||||
SYMBOLS=-DTEST
|
SYMBOLS=-DTEST -DUNITY_SUPPORT_64
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
CLEANUP = del /F /Q build\* && del /F /Q $(TARGET)
|
CLEANUP = del /F /Q build\* && del /F /Q $(TARGET)
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ compiler:
|
|||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
items:
|
items:
|
||||||
- 'src/'
|
- 'src/'
|
||||||
|
- '../src/'
|
||||||
- *unit_tests_path
|
- *unit_tests_path
|
||||||
defines:
|
defines:
|
||||||
prefix: '-D'
|
prefix: '-D'
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ compiler:
|
|||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
items:
|
items:
|
||||||
- 'src/'
|
- 'src/'
|
||||||
|
- '../src/'
|
||||||
- *unit_tests_path
|
- *unit_tests_path
|
||||||
defines:
|
defines:
|
||||||
prefix: '-D'
|
prefix: '-D'
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ compiler:
|
|||||||
items:
|
items:
|
||||||
- [*tools_root, 'arm\inc\']
|
- [*tools_root, 'arm\inc\']
|
||||||
- 'src\'
|
- 'src\'
|
||||||
|
- '../src/'
|
||||||
- *unit_tests_path
|
- *unit_tests_path
|
||||||
- 'vendor\unity\src\'
|
- 'vendor\unity\src\'
|
||||||
defines:
|
defines:
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ compiler:
|
|||||||
items:
|
items:
|
||||||
- [*tools_root, 'arm\inc\']
|
- [*tools_root, 'arm\inc\']
|
||||||
- 'src\'
|
- 'src\'
|
||||||
|
- '../src/'
|
||||||
- *unit_tests_path
|
- *unit_tests_path
|
||||||
- 'vendor\unity\src\'
|
- 'vendor\unity\src\'
|
||||||
- 'iar\iar_v5\incIAR\'
|
- 'iar\iar_v5\incIAR\'
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ compiler:
|
|||||||
items:
|
items:
|
||||||
- [*tools_root, 'arm\inc\']
|
- [*tools_root, 'arm\inc\']
|
||||||
- 'src\'
|
- 'src\'
|
||||||
|
- '../src/'
|
||||||
- *unit_tests_path
|
- *unit_tests_path
|
||||||
- 'vendor\unity\src\'
|
- 'vendor\unity\src\'
|
||||||
- 'iar\iar_v5\incIAR\'
|
- 'iar\iar_v5\incIAR\'
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ compiler:
|
|||||||
- [*core_inc, 'dlib']
|
- [*core_inc, 'dlib']
|
||||||
- [*core_lib, 'dlib']
|
- [*core_lib, 'dlib']
|
||||||
- 'src\'
|
- 'src\'
|
||||||
|
- '../src/'
|
||||||
- *unit_tests_path
|
- *unit_tests_path
|
||||||
- 'vendor\unity\src'
|
- 'vendor\unity\src'
|
||||||
defines:
|
defines:
|
||||||
|
|||||||
Reference in New Issue
Block a user