Skip to content

Commit

Permalink
test check
Browse files Browse the repository at this point in the history
  • Loading branch information
soumeh01 committed Jul 30, 2024
1 parent 6625b5a commit 9df9d7f
Show file tree
Hide file tree
Showing 31 changed files with 2,395 additions and 39 deletions.
21 changes: 21 additions & 0 deletions test/data/include-define/project/asm.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

.syntax unified
.arch armv7-m

.include "target.s"
.include "group.s"
.include "file.s"

.ifndef TARGET_ASM_DEF
.error "TARGET_ASM_DEF is not defined!"
.endif

.ifndef GROUP_ASM_DEF
.error "GROUP_ASM_DEF is not defined!"
.endif

.ifndef FILE_ASM_DEF
.error "FILE_ASM_DEF is not defined!"
.endif

.end
1 change: 1 addition & 0 deletions test/data/include-define/project/file/file.s
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.set FILE_ASM_DEF,1
1 change: 1 addition & 0 deletions test/data/include-define/project/group/group.s
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.set GROUP_ASM_DEF,1
2 changes: 1 addition & 1 deletion test/data/include-define/project/inc3/inc.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define INC3 1
#define INC3 1
181 changes: 181 additions & 0 deletions test/data/include-define/project/project.AC6+ARMCM0.cbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
build:
generated-by: csolution version 2.4.0-devint1
solution: ../solution.csolution.yml
project: project.cproject.yml
context: project.AC6+ARMCM0
compiler: AC6
device: ARMCM0
device-pack: ARM::Cortex_DFP@1.0.0
processor:
fpu: off
core: Cortex-M0
packs:
- pack: ARM::CMSIS@6.0.0
path: ${CMSIS_PACK_ROOT}/ARM/CMSIS/6.0.0
- pack: ARM::Cortex_DFP@1.0.0
path: ${CMSIS_PACK_ROOT}/ARM/Cortex_DFP/1.0.0
misc:
ASM:
- -masm=auto
C:
- -std=gnu11
- -Wno-macro-redefined
- -Wno-pragma-pack
- -Wno-parentheses-equality
- -Wno-license-management
CPP:
- -Wno-macro-redefined
- -Wno-pragma-pack
- -Wno-parentheses-equality
- -Wno-license-management
Link:
- --entry=Reset_Handler
- --map
- --info summarysizes
- --summary_stderr
- --diag_suppress=L6314W
define:
- ARMCM0
- _RTE_
define-asm:
- ARMCM0
- _RTE_
add-path-asm:
- target
- RTE/_AC6_ARMCM0
- ${CMSIS_PACK_ROOT}/ARM/CMSIS/6.0.0/CMSIS/Core/Include
- ${CMSIS_PACK_ROOT}/ARM/Cortex_DFP/1.0.0/Device/ARMCM0/Include
add-path:
- RTE/_AC6_ARMCM0
- ${CMSIS_PACK_ROOT}/ARM/CMSIS/6.0.0/CMSIS/Core/Include
- ${CMSIS_PACK_ROOT}/ARM/Cortex_DFP/1.0.0/Device/ARMCM0/Include
output-dirs:
intdir: ../tmp/project/ARMCM0/AC6
outdir: ../out/project/ARMCM0/AC6
rtedir: RTE
output:
- type: elf
file: project.axf
components:
- component: ARM::CMSIS:CORE@6.0.0
condition: ARMv6_7_8-M Device
from-pack: ARM::CMSIS@6.0.0
selected-by: ARM::CMSIS:CORE
undefine:
- DEF1
del-path:
- inc1
files:
- file: ${CMSIS_PACK_ROOT}/ARM/CMSIS/6.0.0/CMSIS/Core/Include
category: include
version: 6.0.0
- file: ${CMSIS_PACK_ROOT}/ARM/CMSIS/6.0.0/CMSIS/Core/Include/tz_context.h
category: header
version: 6.0.0
- file: ${CMSIS_PACK_ROOT}/ARM/CMSIS/6.0.0/CMSIS/Core/Template/ARMv8-M/main_s.c
category: sourceC
attr: template
version: 1.1.1
select: Secure mode 'main' module for ARMv8-M
- file: ${CMSIS_PACK_ROOT}/ARM/CMSIS/6.0.0/CMSIS/Core/Template/ARMv8-M/tz_context.c
category: sourceC
attr: template
version: 1.1.1
select: RTOS Context Management (TrustZone for ARMv8-M)
- file: ${CMSIS_PACK_ROOT}/ARM/CMSIS/6.0.0/CMSIS/Documentation/html/Core/index.html
category: doc
version: 6.0.0
- component: ARM::Device:Startup&C Startup@2.2.0
condition: ARMCM0 CMSIS
from-pack: ARM::Cortex_DFP@1.0.0
selected-by: ARM::Device:Startup&C Startup
define:
- DEF2: 1
add-path:
- inc2
add-path-asm:
- component
files:
- file: ${CMSIS_PACK_ROOT}/ARM/Cortex_DFP/1.0.0/Device/ARMCM0/Include/ARMCM0.h
category: header
version: 2.2.0
- file: RTE/Device/ARMCM0/ARMCM0_ac6.sct
category: linkerScript
attr: config
version: 1.0.0
- file: RTE/Device/ARMCM0/startup_ARMCM0.c
category: sourceC
attr: config
version: 2.0.3
- file: RTE/Device/ARMCM0/system_ARMCM0.c
category: sourceC
attr: config
version: 1.0.0
linker:
script: RTE/Device/ARMCM0/ARMCM0_ac6.sct
groups:
- group: Source1
define:
- DEF1: 1
add-path:
- inc1
add-path-asm:
- group
files:
- file: asm.s
category: sourceAsm
add-path-asm:
- file
- file: source1.c
category: sourceC
- file: source3.c
category: sourceC
define:
- DEF3
undefine:
- DEF1
add-path:
- inc3
del-path:
- inc1
groups:
- group: Source2
define:
- DEF2: 1
undefine:
- DEF1
add-path:
- inc2
del-path:
- inc1
files:
- file: source2.c
category: sourceC
- group: Main
files:
- file: main.c
category: sourceC
define:
- DEF2
add-path:
- inc2
- group: Headers
files:
- file: inc1/inc.h
category: header
constructed-files:
- file: RTE/_AC6_ARMCM0/RTE_Components.h
category: header
licenses:
- license: <unknown>
license-agreement: ${CMSIS_PACK_ROOT}/ARM/CMSIS/6.0.0/LICENSE
packs:
- pack: ARM::CMSIS@6.0.0
components:
- component: ARM::CMSIS:CORE@6.0.0
- license: <unknown>
license-agreement: ${CMSIS_PACK_ROOT}/ARM/Cortex_DFP/1.0.0/LICENSE
packs:
- pack: ARM::Cortex_DFP@1.0.0
components:
- component: ARM::Device:Startup&C Startup@2.2.0
173 changes: 173 additions & 0 deletions test/data/include-define/project/project.CLANG+ARMCM0.cbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
build:
generated-by: csolution version 2.4.0-devint1
solution: ../solution.csolution.yml
project: project.cproject.yml
context: project.CLANG+ARMCM0
compiler: CLANG
device: ARMCM0
device-pack: ARM::Cortex_DFP@1.0.0
processor:
fpu: off
core: Cortex-M0
packs:
- pack: ARM::CMSIS@6.0.0
path: ${CMSIS_PACK_ROOT}/ARM/CMSIS/6.0.0
- pack: ARM::Cortex_DFP@1.0.0
path: ${CMSIS_PACK_ROOT}/ARM/Cortex_DFP/1.0.0
misc:
C:
- -std=gnu11
- -fomit-frame-pointer
- -ffunction-sections
- -fdata-sections
CPP:
- -fomit-frame-pointer
- -ffunction-sections
- -fdata-sections
Link:
- -lcrt0-semihost
- -lsemihost
- -Wl,-Map=../out/project/ARMCM0/CLANG/project.elf.map
- -Wl,--gc-sections
define:
- ARMCM0
- _RTE_
define-asm:
- ARMCM0
- _RTE_
add-path-asm:
- target
- RTE/_CLANG_ARMCM0
- ${CMSIS_PACK_ROOT}/ARM/CMSIS/6.0.0/CMSIS/Core/Include
- ${CMSIS_PACK_ROOT}/ARM/Cortex_DFP/1.0.0/Device/ARMCM0/Include
add-path:
- RTE/_CLANG_ARMCM0
- ${CMSIS_PACK_ROOT}/ARM/CMSIS/6.0.0/CMSIS/Core/Include
- ${CMSIS_PACK_ROOT}/ARM/Cortex_DFP/1.0.0/Device/ARMCM0/Include
output-dirs:
intdir: ../tmp/project/ARMCM0/CLANG
outdir: ../out/project/ARMCM0/CLANG
rtedir: RTE
output:
- type: elf
file: project.elf
components:
- component: ARM::CMSIS:CORE@6.0.0
condition: ARMv6_7_8-M Device
from-pack: ARM::CMSIS@6.0.0
selected-by: ARM::CMSIS:CORE
undefine:
- DEF1
del-path:
- inc1
files:
- file: ${CMSIS_PACK_ROOT}/ARM/CMSIS/6.0.0/CMSIS/Core/Include
category: include
version: 6.0.0
- file: ${CMSIS_PACK_ROOT}/ARM/CMSIS/6.0.0/CMSIS/Core/Include/tz_context.h
category: header
version: 6.0.0
- file: ${CMSIS_PACK_ROOT}/ARM/CMSIS/6.0.0/CMSIS/Core/Template/ARMv8-M/main_s.c
category: sourceC
attr: template
version: 1.1.1
select: Secure mode 'main' module for ARMv8-M
- file: ${CMSIS_PACK_ROOT}/ARM/CMSIS/6.0.0/CMSIS/Core/Template/ARMv8-M/tz_context.c
category: sourceC
attr: template
version: 1.1.1
select: RTOS Context Management (TrustZone for ARMv8-M)
- file: ${CMSIS_PACK_ROOT}/ARM/CMSIS/6.0.0/CMSIS/Documentation/html/Core/index.html
category: doc
version: 6.0.0
- component: ARM::Device:Startup&C Startup@2.2.0
condition: ARMCM0 CMSIS
from-pack: ARM::Cortex_DFP@1.0.0
selected-by: ARM::Device:Startup&C Startup
define:
- DEF2: 1
add-path:
- inc2
add-path-asm:
- component
files:
- file: ${CMSIS_PACK_ROOT}/ARM/Cortex_DFP/1.0.0/Device/ARMCM0/Include/ARMCM0.h
category: header
version: 2.2.0
- file: RTE/Device/ARMCM0/startup_ARMCM0.c
category: sourceC
attr: config
version: 2.0.3
- file: RTE/Device/ARMCM0/system_ARMCM0.c
category: sourceC
attr: config
version: 1.0.0
linker:
script: RTE/Device/ARMCM0/clang_linker_script.ld.src
regions: RTE/Device/ARMCM0/regions_ARMCM0.h
groups:
- group: Source1
define:
- DEF1: 1
add-path:
- inc1
add-path-asm:
- group
files:
- file: asm.s
category: sourceAsm
add-path-asm:
- file
- file: source1.c
category: sourceC
- file: source3.c
category: sourceC
define:
- DEF3
undefine:
- DEF1
add-path:
- inc3
del-path:
- inc1
groups:
- group: Source2
define:
- DEF2: 1
undefine:
- DEF1
add-path:
- inc2
del-path:
- inc1
files:
- file: source2.c
category: sourceC
- group: Main
files:
- file: main.c
category: sourceC
define:
- DEF2
add-path:
- inc2
- group: Headers
files:
- file: inc1/inc.h
category: header
constructed-files:
- file: RTE/_CLANG_ARMCM0/RTE_Components.h
category: header
licenses:
- license: <unknown>
license-agreement: ${CMSIS_PACK_ROOT}/ARM/CMSIS/6.0.0/LICENSE
packs:
- pack: ARM::CMSIS@6.0.0
components:
- component: ARM::CMSIS:CORE@6.0.0
- license: <unknown>
license-agreement: ${CMSIS_PACK_ROOT}/ARM/Cortex_DFP/1.0.0/LICENSE
packs:
- pack: ARM::Cortex_DFP@1.0.0
components:
- component: ARM::Device:Startup&C Startup@2.2.0
Loading

0 comments on commit 9df9d7f

Please sign in to comment.