arm-trusted-firmware/plat/nxp
Chris Kay f4dd18c270 build: consolidate directory creation rules
This commit streamlines directory creation by introducing a single
pattern rule to automatically make directories for which there is a
dependency.

We currently use several macros to generate rules to create directories
upon dependence, which is a significant amount of code and a lot of
redundancy. The rule introduced by this change represents a catch-all:
any rule dependency on a path ending in a forward slash is automatically
created.

Now, rules can rely on an unordered dependency (`|`) on `$$(@D)/` which,
when secondary expansion is enabled, expands to the directory of the
target being built, e.g.:

    build/main.o: main.c | $$(@D)/ # automatically creates `build/`

Change-Id: I7e554efa2ac850e779bb302fd9c7fbb239886c9f
Signed-off-by: Chris Kay <chris.kay@arm.com>
2024-07-22 09:41:30 +00:00
..
common build: unify verbosity handling 2024-06-14 15:54:48 +00:00
s32/s32g274ardb2 feat(s32g274a): enable BL2 early clocks 2024-07-02 19:41:59 +03:00
soc-ls1028a fix(layerscape): fix errata a008850 2022-11-22 14:56:19 +08:00
soc-ls1043a fix(layerscape): unlock write access SMMU_CBn_ACTLR 2022-12-06 22:46:10 +08:00
soc-ls1046a refactor(build): distinguish BL2 as TF-A entry point and BL2 running at EL3 2023-03-15 11:43:14 +00:00
soc-ls1088a fix(tree): correct some typos 2023-05-09 15:57:12 +01:00
soc-lx2160a build: consolidate directory creation rules 2024-07-22 09:41:30 +00:00