arm-trusted-firmware/docs/tools
Boyan Karatotev 1e8b535457 refactor(build): use a standard rule to run the preprocessor
There are a few, functionally identical, ways to call the preprocessor
on a non-C file, depending on the file. They differ in subtle, not
entirely correct, ways - one is missing a dependency to the makefiles,
another generates its .d inline, and the prints are different. That has
resulted in platforms reimplementing this functionality, making the
build brittle - a change to the overall build system doesn't propagate.
So add a MAKE_PRE macro that will make a rule with all the bells and
whistles to run the preprocessor on an arbitrary file.

This patch converts the arm platforms' cot_descriptors DTS rules. The
files are renamed to fit with the build rule and all extra flags are
dropped. Those flags are only necessary for building BL2 c files, which
will be passed to the output C file. Only the DTS flags are needed for
the preprocessing step, which will be passed automatically.

Change-Id: I3c1cc0ecf93b87d828f868214928c1bc9bcb5758
Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
2025-07-17 08:32:32 +01:00
..
cot-dt2c.rst refactor(build): use a standard rule to run the preprocessor 2025-07-17 08:32:32 +01:00
index.rst feat(arm): update documentation for cot-dt2c 2024-08-07 08:46:30 +01:00
memory-layout-tool.rst feat(memmap): add summary command to memory map script 2025-06-12 15:39:31 +01:00
transfer-list-compiler.rst feat: add option to input attr as string of flag names 2024-08-02 12:14:53 +00:00