| 1 |
Makefile to build CppUTest library to run in hardware using ARM C/C++ compiler. |
| 2 |
|
| 3 |
Also it is possible to build CppUTestExt library using |
| 4 |
"make all COMPONENT_NAME=CppUTestExt". |
| 5 |
|
| 6 |
All libraries is placed in lib directory of CppUTest home. |
| 7 |
|
| 8 |
Thumb mode is using. For ARM mode, you need to remove compiler key |
| 9 |
"--apcs=/interwork" and change $(CPU_MODE) to arm. |
| 10 |
|
| 11 |
You need installed CYGWIN with make.exe, rm.exe, mkdir.exe and installed |
| 12 |
Keil MDK-ARM. |
| 13 |
|
| 14 |
For compiling CppUTest library using ARMCC, please adjust Makefile: |
| 15 |
1. # Path to cygwin binary |
| 16 |
CYGWIN_DIR :=C:/CYGWIN/bin |
| 17 |
2. # Path to ARMCC of Keil MDK-ARM, with libraries, includes and executables |
| 18 |
KEIL_DIR :=D:/Keil/ARM/ARMCC |
| 19 |
3. # source CppUTest files |
| 20 |
CPPUTEST_HOME := ../.. |
| 21 |
4. other options explained in $(CPPUTEST_HOME)/build/MakefileWorker.mk |
| 22 |
CPPUTEST_USE_MEM_LEAK_DETECTION := Y |
| 23 |
CPPUTEST_USE_STD_CPP_LIB := N |
| 24 |
CPPUTEST_USE_VPATH := Y |
| 25 |
CPPUTEST_USE_STD_C_LIB := Y |
| 26 |
CPPUTEST_ENABLE_DEBUG := Y |
| 27 |
|
| 28 |
You may add additional options "CPU=xx" and "CPU_MODE=yy" |
| 29 |
CPU is an option that passed to armcc.exe. It selects CPU. List of CPU is |
| 30 |
available by executing 'armcc.exe --cpu list'. |
| 31 |
Default CPU architecture is ARM7TDMI. |
| 32 |
For armcc v5.02 build 28, CPU is one of the next: |
| 33 |
ARM7EJ-S |
| 34 |
ARM7TM |
| 35 |
ARM7TDM |
| 36 |
ARM7TDMI |
| 37 |
ARM710T |
| 38 |
ARM720T |
| 39 |
ARM740T |
| 40 |
ARM7TM-S |
| 41 |
ARM7TDMI-S |
| 42 |
ARM9TDMI |
| 43 |
ARM920T |
| 44 |
ARM922T |
| 45 |
ARM940T |
| 46 |
ARM9E-S |
| 47 |
ARM9EJ-S |
| 48 |
ARM926EJ-S |
| 49 |
ARM946E-S |
| 50 |
ARM966E-S |
| 51 |
ARM968E-S |
| 52 |
Cortex-M0 |
| 53 |
Cortex-M0plus |
| 54 |
SC000 |
| 55 |
Cortex-M1 |
| 56 |
Cortex-M1.os_extension |
| 57 |
Cortex-M1.no_os_extension |
| 58 |
Cortex-M3 |
| 59 |
Cortex-M3-rev0 |
| 60 |
SC300 |
| 61 |
Cortex-M4 |
| 62 |
Cortex-M4.fp |
| 63 |
Cortex-R4 |
| 64 |
Cortex-R4F |
| 65 |
|
| 66 |
CPU_MODE is one of 'arm', 'thumb'. |
| 67 |
Default is thumb. |
| 68 |
|
| 69 |
Tested with Keil MDK-ARM Pro v4.60 |