Skip to content

Commit bf9f748

Browse files
Added support for reproducible builds. (#4)
Added support for reproducible builds. Reworked and updated the **RTE** folder, **hello.csolution.yml**, **hello.cproject.yml**, **hello.cbuild-pack.yml**, and the **hello.cbuild-set.yml** file. Updated the **vcpkg-configuration.json** configuration file. Added **build.yml** workflow file which is not using **--update-rte** for building. --------- Co-authored-by: [email protected] <Eve07@Git>
1 parent 70e1fb2 commit bf9f748

File tree

10 files changed

+155
-54
lines changed

10 files changed

+155
-54
lines changed

.github/workflows/build.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build example
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
branches: [main]
6+
push:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
# https://github.com/ARM-software/cmsis-actions
18+
- name: Activate vcpkg
19+
uses: ARM-software/cmsis-actions/vcpkg@v1
20+
with:
21+
config: "./vcpkg-configuration.json"
22+
23+
# https://github.com/ARM-software/cmsis-actions
24+
- name: Activate Arm tool license
25+
uses: ARM-software/cmsis-actions/armlm@v1
26+
27+
- name: Cache downloaded packs
28+
uses: actions/cache@v4
29+
with:
30+
key: cmsis-packs-download
31+
path: /home/runner/.cache/arm/packs/.Download
32+
33+
# Initialize and update the index of CMSIS packs available online
34+
- name: Initialize CMSIS pack root folder
35+
run: |
36+
cpackget init https://www.keil.com/pack/index.pidx
37+
cpackget update-index
38+
39+
# Build the release and debug executable for the AC6 compiler
40+
- name: Build release and debug executable
41+
run: |
42+
cbuild hello.csolution.yml --packs --context .+MIMXRT1060-EVKB --rebuild

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[![License](https://img.shields.io/github/license/Arm-Examples/Hello_MIMXRT1060-EVKB?label)](https://github.com/Arm-Examples/Hello_MIMXRT1060-EVKB/blob/main/LICENSE)
2+
[![Build and Execution Test](https://img.shields.io/github/actions/workflow/status/Arm-Examples/Hello_MIMXRT1060-EVKB/build.yml?logo=arm&logoColor=0091bd&label=Build%20and%20Execution%20Test)](https://github.com/Arm-Examples/Hello_MIMXRT1060-EVKB/tree/main/.github/workflows/build.yml)
3+
14
# Hello example for MIMXRT1060-EVKB
25

36
Simple Hello World example for NXP [MIMXRT1060-EVKB](https://www.nxp.com/part/MIMXRT1060-EVKB#/) Evaluation Kit.

RTE/_Debug_MIMXRT1060-EVKB/RTE_Components.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* CSOLUTION generated file: DO NOT EDIT!
3-
* Generated by: csolution version 2.0.0
3+
* Generated by: csolution version 2.6.0
44
*
55
* Project: 'hello.Debug+MIMXRT1060-EVKB'
66
* Target: 'Debug+MIMXRT1060-EVKB'
@@ -15,13 +15,13 @@
1515
*/
1616
#define CMSIS_device_header "fsl_device_registers.h"
1717

18-
/* ARM::CMSIS-Compiler:I/O:STDOUT:User:1.0.0 */
19-
#define RTE_Compiler_IO_STDOUT /* Compiler I/O: STDOUT */
20-
#define RTE_Compiler_IO_STDOUT_User /* Compiler I/O: STDOUT User */
21-
/* ARM::CMSIS:RTOS2:Keil RTX5:Source:5.5.4 */
18+
/* ARM::CMSIS-Compiler:STDOUT:Custom@1.0.0 */
19+
#define RTE_CMSIS_Compiler_STDOUT /* CMSIS-Compiler STDOUT */
20+
#define RTE_CMSIS_Compiler_STDOUT_Custom /* CMSIS-Compiler STDOUT: Custom */
21+
/* ARM::CMSIS:RTOS2:Keil RTX5&Source@5.8.0 */
2222
#define RTE_CMSIS_RTOS2 /* CMSIS-RTOS2 */
23-
#define RTE_CMSIS_RTOS2_RTX5 /* CMSIS-RTOS2 Keil RTX5 */
24-
#define RTE_CMSIS_RTOS2_RTX5_SOURCE /* CMSIS-RTOS2 Keil RTX5 Source */
23+
#define RTE_CMSIS_RTOS2_RTX5 /* CMSIS-RTOS2 Keil RTX5 */
24+
#define RTE_CMSIS_RTOS2_RTX5_SOURCE /* CMSIS-RTOS2 Keil RTX5 Source */
2525
/* NXP::Board Support:SDK Drivers:evkbmimxrt1060:2.0.1 */
2626
#ifndef XIP_EXTERNAL_FLASH
2727
#define XIP_EXTERNAL_FLASH 1

RTE/_Release_MIMXRT1060-EVKB/RTE_Components.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* CSOLUTION generated file: DO NOT EDIT!
3-
* Generated by: csolution version 2.0.0
3+
* Generated by: csolution version 2.6.0
44
*
55
* Project: 'hello.Release+MIMXRT1060-EVKB'
66
* Target: 'Release+MIMXRT1060-EVKB'
@@ -15,13 +15,13 @@
1515
*/
1616
#define CMSIS_device_header "fsl_device_registers.h"
1717

18-
/* ARM::CMSIS-Compiler:I/O:STDOUT:User:1.0.0 */
19-
#define RTE_Compiler_IO_STDOUT /* Compiler I/O: STDOUT */
20-
#define RTE_Compiler_IO_STDOUT_User /* Compiler I/O: STDOUT User */
21-
/* ARM::CMSIS:RTOS2:Keil RTX5:Source:5.5.4 */
18+
/* ARM::CMSIS-Compiler:STDOUT:Custom@1.0.0 */
19+
#define RTE_CMSIS_Compiler_STDOUT /* CMSIS-Compiler STDOUT */
20+
#define RTE_CMSIS_Compiler_STDOUT_Custom /* CMSIS-Compiler STDOUT: Custom */
21+
/* ARM::CMSIS:RTOS2:Keil RTX5&Source@5.8.0 */
2222
#define RTE_CMSIS_RTOS2 /* CMSIS-RTOS2 */
23-
#define RTE_CMSIS_RTOS2_RTX5 /* CMSIS-RTOS2 Keil RTX5 */
24-
#define RTE_CMSIS_RTOS2_RTX5_SOURCE /* CMSIS-RTOS2 Keil RTX5 Source */
23+
#define RTE_CMSIS_RTOS2_RTX5 /* CMSIS-RTOS2 Keil RTX5 */
24+
#define RTE_CMSIS_RTOS2_RTX5_SOURCE /* CMSIS-RTOS2 Keil RTX5 Source */
2525
/* NXP::Board Support:SDK Drivers:evkbmimxrt1060:2.0.1 */
2626
#ifndef XIP_EXTERNAL_FLASH
2727
#define XIP_EXTERNAL_FLASH 1

cdefault.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
default:
2+
3+
misc:
4+
- for-compiler: AC6
5+
6+
C-CPP:
7+
- -fno-common -fdata-sections -ffreestanding -fno-builtin -mthumb
8+
- -fno-rtti
9+
- -funsigned-char
10+
- -fshort-enums
11+
- -fshort-wchar
12+
- -ffunction-sections
13+
- -std=c99
14+
- -Wno-packed
15+
- -Wno-missing-variable-declarations
16+
- -Wno-missing-prototypes
17+
- -Wno-missing-noreturn
18+
- -Wno-sign-conversion
19+
- -Wno-nonportable-include-path
20+
- -Wno-reserved-id-macro
21+
- -Wno-unused-macros
22+
- -Wno-documentation-unknown-command
23+
- -Wno-documentation
24+
- -Wno-license-management
25+
- -Wno-parentheses-equality
26+
ASM:
27+
- -masm=auto
28+
Link:
29+
- --map
30+
- --load_addr_map_info
31+
- --xref
32+
- --callgraph
33+
- --symbols
34+
- --info sizes
35+
- --info totals
36+
- --info unused
37+
- --info veneers
38+
- --list
39+
- --remove
40+
- --entry=Reset_Handler
41+
- --strict
42+
- --diag_suppress 6314
43+
- --summary_stderr
44+
- --info summarysizes
45+
- --predefine="-DXIP_BOOT_HEADER_ENABLE=1"

hello.cbuild-pack.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
cbuild-pack:
2+
resolved-packs:
3+
- resolved-pack: ARM::[email protected]
4+
selected-by-pack:
5+
6+
- resolved-pack: ARM::[email protected]
7+
selected-by-pack:
8+
9+
- resolved-pack: NXP::[email protected]
10+
selected-by-pack:
11+
12+
- resolved-pack: NXP::[email protected]
13+
selected-by-pack:
14+

hello.cbuild-set.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
cbuild-set:
2+
generated-by: csolution version 2.6.0
3+
contexts:
4+
- context: hello.Release+MIMXRT1060-EVKB
5+
- context: hello.Debug+MIMXRT1060-EVKB

hello.cproject.yml

Lines changed: 20 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ project:
1919
linker:
2020
- script: RTE/Device/MIMXRT1062DVL6A/MIMXRT1062xxxxx_flexspi_nor.scf
2121

22-
misc:
23-
- Link:
24-
- '--predefine="-DXIP_BOOT_HEADER_ENABLE=1"'
25-
2622
components:
2723
- component: CMSIS:CORE
2824
- component: CMSIS:RTOS2:Keil RTX5&Source
@@ -31,28 +27,23 @@ project:
3127

3228
- component: Device:Startup
3329

34-
- component: NXP::Device:CMSIS:MIMXRT1062_header
35-
- component: NXP::Device:CMSIS:MIMXRT1062_system
36-
37-
- component: NXP::Device:SDK Drivers:clock
38-
- component: NXP::Device:SDK Drivers:common
39-
- component: NXP::Device:SDK Drivers:gpio
40-
- component: NXP::Device:SDK Drivers:iomuxc
41-
- component: NXP::Device:SDK Drivers:lists
42-
- component: NXP::Device:SDK Drivers:lpuart
43-
- component: NXP::Device:SDK Drivers:lpuart_adapter
44-
- component: NXP::Device:SDK Drivers:nic301
45-
- component: NXP::Device:SDK Drivers:xip_device
46-
47-
- component: NXP::Device:SDK Utilities:assert
48-
- component: NXP::Device:SDK Utilities:debug_console
49-
- component: NXP::Device:SDK Utilities:serial_manager
50-
- component: NXP::Device:SDK Utilities:serial_manager_uart
51-
52-
- component: NXP::Board Support:SDK Drivers:evkbmimxrt1060
53-
- component: NXP::Board Support:SDK Project Template:project_template&evkbmimxrt1060
54-
55-
output:
56-
type:
57-
- elf
58-
- hex
30+
- component: Device:CMSIS:MIMXRT1062_header
31+
- component: Device:CMSIS:MIMXRT1062_system
32+
33+
- component: Device:SDK Drivers:clock
34+
- component: Device:SDK Drivers:common
35+
- component: Device:SDK Drivers:gpio
36+
- component: Device:SDK Drivers:iomuxc
37+
- component: Device:SDK Drivers:lists
38+
- component: Device:SDK Drivers:lpuart
39+
- component: Device:SDK Drivers:lpuart_adapter
40+
- component: Device:SDK Drivers:nic301
41+
- component: Device:SDK Drivers:xip_device
42+
43+
- component: Device:SDK Utilities:assert
44+
- component: Device:SDK Utilities:debug_console
45+
- component: Device:SDK Utilities:serial_manager
46+
- component: Device:SDK Utilities:serial_manager_uart
47+
48+
- component: Board Support:SDK Drivers:evkbmimxrt1060
49+
- component: Board Support:SDK Project Template:project_template&evkbmimxrt1060

hello.csolution.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
solution:
22
description: Simple Hello World example for MIMXRT1060-EVKB
3-
created-for: CMSIS-Toolbox@2.0.0
3+
created-for: CMSIS-Toolbox@2.6.0
44
compiler: AC6
5+
cdefault:
56

67
packs:
78
- pack: ARM::[email protected]
@@ -16,11 +17,11 @@ solution:
1617
build-types:
1718
- type: Debug
1819
debug: on
19-
optimize: none
20+
optimize: debug
2021

2122
- type: Release
2223
debug: off
2324
optimize: balanced
2425

2526
projects:
26-
- project: ./hello.cproject.yml
27+
- project: ./hello.cproject.yml

vcpkg-configuration.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"registries": [
33
{
4+
"name": "arm",
45
"kind": "artifact",
5-
"location": "https://artifacts.tools.arm.com/vcpkg-ce-registry/registry.zip",
6-
"name": "arm"
6+
"location": "https://artifacts.tools.arm.com/vcpkg-registry"
77
}
88
],
99
"requires": {
10-
"arm:tools/kitware/cmake": "^3.25.2",
11-
"arm:tools/ninja-build/ninja": "^1.10.2",
12-
"arm:tools/open-cmsis-pack/cmsis-toolbox": "^2.2.0-0",
13-
"arm:compilers/arm/arm-none-eabi-gcc": "^12.2.1-0",
14-
"arm:compilers/arm/armclang": "^6.21.0",
10+
"arm:tools/open-cmsis-pack/cmsis-toolbox": "^2.6.1",
11+
"arm:tools/kitware/cmake": "^3.28.4",
12+
"arm:tools/ninja-build/ninja": "^1.12.0",
13+
"arm:compilers/arm/armclang": "^6.22.0",
14+
"arm:compilers/arm/arm-none-eabi-gcc": "^13.2.1",
1515
"arm:debuggers/arm/armdbg": "*"
1616
}
17-
}
17+
}

0 commit comments

Comments
 (0)