| 5c24052a | 26-Sep-2025 |
Chris Kay <chris.kay@arm.com> |
feat(build): add helpers for managing compiler launchers
With the introduction of the Event Log library, we now need to forward some of our toolchain information to CMake. However, CMake always trea
feat(build): add helpers for managing compiler launchers
With the introduction of the Event Log library, we now need to forward some of our toolchain information to CMake. However, CMake always treats the first shell word in `CC` as the path to the compiler, which is problematic for users of compiler launchers like `ccache`.
This change introduces some additional heuristics to the toolchain interface to detect compiler launchers and isolate their arguments from the underlying compiler command, which can then be forwarded separately to CMake.
Change-Id: I783833c523380b989bbac05b57503bc76881f6a4 Signed-off-by: Chris Kay <chris.kay@arm.com>
show more ...
|
| 93f45539 | 26-Sep-2025 |
Chris Kay <chris.kay@arm.com> |
refactor(build): track toolchain tool origin
If a toolchain tool cannot be identified, the warning now includes a report describing whether the program was given by a user-specified parameter, the C
refactor(build): track toolchain tool origin
If a toolchain tool cannot be identified, the warning now includes a report describing whether the program was given by a user-specified parameter, the C compiler, or a default value.
Change-Id: Ic71ad33d3123f17433a3c176a93310b39bfa5fff Signed-off-by: Chris Kay <chris.kay@arm.com>
show more ...
|
| 3cc5e789 | 29-Sep-2025 |
Chris Kay <chris.kay@arm.com> |
refactor(build): unify toolchain derivation
At the moment, the process we go through to derive the value for the toolchain tool variables is fairly complicated and not particularly consistent. This
refactor(build): unify toolchain derivation
At the moment, the process we go through to derive the value for the toolchain tool variables is fairly complicated and not particularly consistent. This change brings the three mechanisms we support into alignment in terms of their inputs and outputs via three helpers:
- `toolchain-from-parameter`: load the command from its parameter - `toolchain-from-cc`: load the command from its C compiler - `toolchain-from-default`: load the command from its built-in defaults
These functions take a toolchain identifier and a tool class identifer, and return either a program name/path or a shell command. Sanitisation is then done inside `toolchain-determine-tool`, which now makes a stronger guarantee that the toolchain tools are correctly escaped for the shell.
Change-Id: I3ce73134824e805e8ee47a119c982e7fe4923fae Signed-off-by: Chris Kay <chris.kay@arm.com>
show more ...
|
| 7a0a320d | 24-Oct-2025 |
Chris Kay <chris.kay@arm.com> |
Merge changes from topic "ck/tf-a/shell-utilities" into integration
* changes: feat(build): add shell program reference utility (`shell-program`) feat(build): add shell word map utility (`shell-
Merge changes from topic "ck/tf-a/shell-utilities" into integration
* changes: feat(build): add shell program reference utility (`shell-program`) feat(build): add shell word map utility (`shell-map`) feat(build): add shell fragment joining utility (`shell-join`) feat(build): add shell fragment slicing utility (`shell-slice`) feat(build): add shell fragment length utility (`shell-words`) feat(build): add shell word extraction utility (`shell-word`) feat(build): add shell quoting utility (`shell-quote`) feat(build): add temporary variable binding utility (`with`)
show more ...
|
| 0322d7af | 30-Jan-2025 |
Jay Monkman <jmonkman@google.com> |
feat(el3-spmc): allow physical partitions to have multiple UUIDs
Physical partitions can now be assigned multiple UUIDs. This updates - FFA_PARTITION_INFO_GET handling to return all the required
feat(el3-spmc): allow physical partitions to have multiple UUIDs
Physical partitions can now be assigned multiple UUIDs. This updates - FFA_PARTITION_INFO_GET handling to return all the required parttion descriptors - device tree parsing to read multiple UUIDs
Change-Id: Ib9a961130aace75ba31b6610873138f35d355f09 Signed-off-by: Jay Monkman <jmonkman@google.com> Signed-off-by: Andrei Homescu <ahomescu@xwf.google.com>
show more ...
|
| cd92fb24 | 28-Jul-2025 |
Lauren Wehrmeister <lauren.wehrmeister@arm.com> |
feat(build): setting CRYPTO_LIB via CRYPTO_SUPPORT
Setting CRYPTO_LIB based on CRYPTO_SUPPORT via the CRYPTO_SUPPORT macro to be called by component-specific makefiles.
Signed-off-by: Lauren Wehrme
feat(build): setting CRYPTO_LIB via CRYPTO_SUPPORT
Setting CRYPTO_LIB based on CRYPTO_SUPPORT via the CRYPTO_SUPPORT macro to be called by component-specific makefiles.
Signed-off-by: Lauren Wehrmeister <lauren.wehrmeister@arm.com> Change-Id: Ib400e4668c60c24bb4399de6a320b5c16205affb
show more ...
|
| 6e2fe623 | 06-Jun-2025 |
Lauren Wehrmeister <lauren.wehrmeister@arm.com> |
feat(build): set CRYPTO_SUPPORT macro per BL
Moving the setting of CRYPTO_SUPPORT from the main Makefile to individual component makefiles using the new build macro make_defines for each BL-specific
feat(build): set CRYPTO_SUPPORT macro per BL
Moving the setting of CRYPTO_SUPPORT from the main Makefile to individual component makefiles using the new build macro make_defines for each BL-specific CPPFLAGS.
Rework romlib build command to use CRYPTO_LIB to determine mbedtls need instead of CRYPTO_SUPPORT. If CRYPTO_SUPPORT is set for any component, then CRYPTO_LIB will be filled, romlib can use this instead.
Add a convenience makefile macro for setting CRYPTO_SUPPORT from component specific makefiles, have components call the macro based on whether authenication verification (NEED_AUTH) and/or hash calculation (NEED_HASH) is required for the specific boot stage.
Signed-off-by: Lauren Wehrmeister <lauren.wehrmeister@arm.com> Change-Id: I7e81fede74fb9c04694b022e8eebed460616565c
show more ...
|
| 116d2c09 | 06-Jun-2025 |
Lauren Wehrmeister <lauren.wehrmeister@arm.com> |
feat(build): create define macro to be used by BL
Adding make_defines that creates defines using make_define to be used per the specified boot loader. This can be used for many build flags with the
feat(build): create define macro to be used by BL
Adding make_defines that creates defines using make_define to be used per the specified boot loader. This can be used for many build flags with the intention to separate by BL. First, specifically for use of CRYPTO_SUPPORT to be set separately by BL through the CPPFLAGS build option.
This can be called per component makefile to specify build configurations per BL, i.e. for BL1, BL1_CPPFLAGS += $(call make_defines,CRYPTO_SUPPORT)
Signed-off-by: Lauren Wehrmeister <lauren.wehrmeister@arm.com> Change-Id: Iee40c1e673f04c83534bdbfafe8b1c1dd4898e23
show more ...
|
| aa6edba3 | 10-Sep-2025 |
Boyan Karatotev <boyan.karatotev@arm.com> |
fix(build): put the -target definitions in toolchain.mk
Knowing the target is quite important and must be known early - it is necessary for flag discovery and should be available much earlier than c
fix(build): put the -target definitions in toolchain.mk
Knowing the target is quite important and must be known early - it is necessary for flag discovery and should be available much earlier than cflags.mk's inclusion. So put it in toolchain.mk with the rest of the toolchain configuration.
Change-Id: Ia8b522376d27171ad1282d05c162cddc0fca69ab Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
show more ...
|
| 28973741 | 10-Sep-2025 |
Boyan Karatotev <boyan.karatotev@arm.com> |
fix(build): align the cpu-ops flags with all others
Since the cpu-ops file was created we've obtained the constraints.mk and cflags.mk files and we also have the defaults.mk. The cpu-ops file is not
fix(build): align the cpu-ops flags with all others
Since the cpu-ops file was created we've obtained the constraints.mk and cflags.mk files and we also have the defaults.mk. The cpu-ops file is not much different to these three, just much more complex. This patch keeps the complicated bit in cpu-ops.mk but it makes it behave like defaults.mk. The non-complicated bits (like cross referencing and compiler flags) go to their corresponding files. This centralises responsibilities and makes it nicer to keep track of.
The reason for doing this untangling is that the order of defaulting, cross referencing, and compiler flag selection is significant and we can run into problems where seemingly identical lines of code produce different outcomes.
Change-Id: Id4b7714e432a0d628d33412836fd5c93f0488970 Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
show more ...
|
| a72154ce | 30-Sep-2025 |
Chris Kay <chris.kay@arm.com> |
feat(build): add shell program reference utility (`shell-program`)
This change adds the `shell-program` function to the build system, which accepts a program name, path or shell fragment and ensures
feat(build): add shell program reference utility (`shell-program`)
This change adds the `shell-program` function to the build system, which accepts a program name, path or shell fragment and ensures it is safely and correctly escaped for use in shell command.
Change-Id: I31d00e6da0cc2fd464bb794c7efb8d6ff3685c4b Signed-off-by: Chris Kay <chris.kay@arm.com>
show more ...
|
| 37cd6184 | 30-Sep-2025 |
Chris Kay <chris.kay@arm.com> |
feat(build): add shell word map utility (`shell-map`)
This change adds the `shell-map` function to the build system, which applies a function to every shell word in a shell fragment.
Change-Id: I20
feat(build): add shell word map utility (`shell-map`)
This change adds the `shell-map` function to the build system, which applies a function to every shell word in a shell fragment.
Change-Id: I2053e9741876cfa25878a7cadfbecb6b1127fc19 Signed-off-by: Chris Kay <chris.kay@arm.com>
show more ...
|
| a75ab9a7 | 26-Sep-2025 |
Chris Kay <chris.kay@arm.com> |
feat(build): add shell fragment joining utility (`shell-join`)
This change adds the `shell-join` function to the build system, which parses a shell fragment and joins it shell words with an optional
feat(build): add shell fragment joining utility (`shell-join`)
This change adds the `shell-join` function to the build system, which parses a shell fragment and joins it shell words with an optional user- specified delimiter.
Change-Id: I201f728c2101bf67f14a037454a7b17d9b1c34a2 Signed-off-by: Chris Kay <chris.kay@arm.com>
show more ...
|
| 9a782d40 | 26-Sep-2025 |
Chris Kay <chris.kay@arm.com> |
feat(build): add shell fragment slicing utility (`shell-slice`)
This change adds the `shell-slice` function to the build system, which parses a shell fragment and extracts a sequence of shell words,
feat(build): add shell fragment slicing utility (`shell-slice`)
This change adds the `shell-slice` function to the build system, which parses a shell fragment and extracts a sequence of shell words, returned as a new shell fragment.
Change-Id: I0df1e451bae6b973711e26c75b435939251aeb51 Signed-off-by: Chris Kay <chris.kay@arm.com>
show more ...
|
| 8165d826 | 26-Sep-2025 |
Chris Kay <chris.kay@arm.com> |
feat(build): add shell fragment length utility (`shell-words`)
This change adds the `shell-words` function to the build system, which parses a shell fragment and counts the number of shell words in
feat(build): add shell fragment length utility (`shell-words`)
This change adds the `shell-words` function to the build system, which parses a shell fragment and counts the number of shell words in it.
Change-Id: Ief031efd5e013a74e6e5a09fc8e8382c4d47e591 Signed-off-by: Chris Kay <chris.kay@arm.com>
show more ...
|
| 5980fa7c | 26-Sep-2025 |
Chris Kay <chris.kay@arm.com> |
feat(build): add shell word extraction utility (`shell-word`)
This change adds the `shell-word` function to the build system, which parses a shell fragment and extracts the N-th shell word.
Change-
feat(build): add shell word extraction utility (`shell-word`)
This change adds the `shell-word` function to the build system, which parses a shell fragment and extracts the N-th shell word.
Change-Id: Ie35d5164b58188eade851bbcc3f700e51c0837df Signed-off-by: Chris Kay <chris.kay@arm.com>
show more ...
|
| 10cb835f | 30-Sep-2025 |
Chris Kay <chris.kay@arm.com> |
feat(build): add shell quoting utility (`shell-quote`)
This change adds the `shell-quote` function to the build system, which currently duplicates the existing behaviour of `escape-shell`, but estab
feat(build): add shell quoting utility (`shell-quote`)
This change adds the `shell-quote` function to the build system, which currently duplicates the existing behaviour of `escape-shell`, but establishes a consistent naming style for upcoming shell utilities.
Change-Id: Iae710be4d9b57e4d0f1d4dae9985a0e6af8f7b86 Signed-off-by: Chris Kay <chris.kay@arm.com>
show more ...
|
| 6eb35c60 | 06-Oct-2025 |
Chris Kay <chris.kay@arm.com> |
feat(build): add temporary variable binding utility (`with`)
This change adds the `with` function to the build system, which provides lexically-scoped (temporary) variable bindings during the expans
feat(build): add temporary variable binding utility (`with`)
This change adds the `with` function to the build system, which provides lexically-scoped (temporary) variable bindings during the expansion of a body of text. This largely mirrors the behaviour of the `let` function introduced in GNU Make 4.4 while being compatible with earlier versions.
Change-Id: I83df2be34a7b4e48f31cdf1d615a4b4955299740 Signed-off-by: Chris Kay <chris.kay@arm.com>
show more ...
|
| 3325415b | 26-Aug-2025 |
John Powell <john.powell@arm.com> |
feat(cpufeat): fix build with ENABLE_FEAT_PAUTH_LR=1
Since build system underwent some refactoring, the build has been failing with ENABLE_FEAT_PAUTH_LR=1 so this patch fixes it
Change-Id: I1a3faad
feat(cpufeat): fix build with ENABLE_FEAT_PAUTH_LR=1
Since build system underwent some refactoring, the build has been failing with ENABLE_FEAT_PAUTH_LR=1 so this patch fixes it
Change-Id: I1a3faad53b508d760a65656dad78057027a7d69c Signed-off-by: John Powell <john.powell@arm.com>
show more ...
|
| b3bcfd12 | 14-Aug-2025 |
Andre Przywara <andre.przywara@arm.com> |
feat(cpufeat): enable FEAT_PFAR support
Implement support for FEAT_PFAR, which introduces the PFAR_ELx system register, recording the faulting physical address for some aborts. Those system register
feat(cpufeat): enable FEAT_PFAR support
Implement support for FEAT_PFAR, which introduces the PFAR_ELx system register, recording the faulting physical address for some aborts. Those system registers are trapped by the SCR_EL3.PFARen bit, so set the bit for the non-secure world context to allow OSes to use the feature.
This is controlled by the ENABLE_FEAT_PFAR build flag, which follows the usual semantics of 2 meaning the feature being runtime detected. Let the default for this flag be 0, but set it to 2 for the FVP.
Change-Id: I5c9ae750417e75792f693732df3869e02b6e4319 Signed-off-by: Andre Przywara <andre.przywara@arm.com>
show more ...
|
| aa05796e | 15-Oct-2025 |
Manish Pandey <manish.pandey2@arm.com> |
Merge "feat(cpufeat): enable FEAT_AIE support" into integration |
| 7e8b7096 | 14-Oct-2025 |
Govindraj Raja <govindraj.raja@arm.com> |
Merge changes Id711e387,I531a2ee1,Ic5b48514,I81f5f663,I6c529c13, ... into integration
* changes: refactor(romlib): absorb WRAPPER_FLAGS into LDFLAGS fix(build): simplify the -target options fe
Merge changes Id711e387,I531a2ee1,Ic5b48514,I81f5f663,I6c529c13, ... into integration
* changes: refactor(romlib): absorb WRAPPER_FLAGS into LDFLAGS fix(build): simplify the -target options feat(build): allow full LTO builds with clang refactor(build): make sorting of sections generic feat(build): use clang as a linker fix(build): correctly detect that an option is missing with ld_option feat(build): pass cflags to the linker when LTO is enabled
show more ...
|
| 774fb379 | 15-Sep-2025 |
Boyan Karatotev <boyan.karatotev@arm.com> |
fix(build): prevent races on the build directory
The tools (eg fiptool) don't depend on the build directory so it's possible that make tries to build them before it exists. Doing that leads to rando
fix(build): prevent races on the build directory
The tools (eg fiptool) don't depend on the build directory so it's possible that make tries to build them before it exists. Doing that leads to random and unpredictable errors. Almost always, they are built after a BL image which always has a build directory dependency, but when building MANY tf-a builds over MANY threads concurrently this could be observed (I suspect the high load of the system increases latency just enough that this race is lost).
The fix is simple - have an explicit dependency on the build directory.
This is the same problem as 9855568cc and 25cde5f81.
Change-Id: I769ac07f8882f82ea9d72f3b976337284d697310 Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
show more ...
|
| 5be66449 | 08-Oct-2025 |
Boyan Karatotev <boyan.karatotev@arm.com> |
refactor(build): make it standard to request a custom linker script
Hoist the add_define to a global location so that platforms only have to declare its usage. Fix up #ifdef to #if since we will now
refactor(build): make it standard to request a custom linker script
Hoist the add_define to a global location so that platforms only have to declare its usage. Fix up #ifdef to #if since we will now always pass a definition.
Change-Id: Ia52ad5ed4dcbd157d139c8ca2fb3d35b32343b93 Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
show more ...
|
| 80684b7e | 13-Oct-2025 |
Olivier Deprez <olivier.deprez@arm.com> |
Merge "fix(cm): deprecate use of NS_TIMER_SWITCH" into integration |