]> git.baikalelectronics.ru Git - arm-tf.git/commit
refactor(fiptool): move plat_fiptool.mk to tools
authorRaef Coles <raef.coles@arm.com>
Wed, 1 Feb 2023 15:55:08 +0000 (15:55 +0000)
committerRaef Coles <raef.coles@arm.com>
Mon, 6 Feb 2023 09:36:39 +0000 (09:36 +0000)
commit034a2e3ef8a9e8e58f7cb7fab6db4ee60b2f9c29
tree7c3bcddd88a59210a39f0b34a864c162d9f04a72
parent1678bbb57249b6edd4cdebc3cbc33b04df8fa098
refactor(fiptool): move plat_fiptool.mk to tools

Move all plat_fiptool.mks into tools, change the logic to recursively
check for tools/fiptool/plat_fiptool/<plat_path>/plat_fiptool.mk

I.e. for a platform that has the path "plat/arm/board/tc/platform.mk",
the makefile will now load the first existing file from:
 - tools/fiptool/plat_fiptool/arm/board/tc/plat_fiptool.mk
 - tools/fiptool/plat_fiptool/arm/board/plat_fiptool.mk
 - tools/fiptool/plat_fiptool/arm/plat_fiptool.mk

This enables fiptool to support multiple platforms, or a specific one.

Remove file-copying previously being used to handle old default path.
Remove custom file cleaning in plat_fiptool.mk.

Change-Id: I95245bcf7143b329481d4394ab64f29bfe9de5ab
Signed-off-by: Raef Coles <raef.coles@arm.com>
16 files changed:
plat/arm/board/tc/plat_def_uuid_config.c [deleted file]
plat/arm/board/tc/plat_fiptool.mk [deleted file]
plat/arm/board/tc/platform.mk
plat/nxp/common/fip_handler/ddr_fip/ddr_fip_io.mk
plat/nxp/common/fip_handler/fuse_fip/fuse.mk
plat/st/stm32mp1/plat_def_uuid_config.c [deleted file]
plat/st/stm32mp1/plat_fiptool.mk [deleted file]
tools/fiptool/Makefile
tools/fiptool/plat_fiptool/arm/board/tc/plat_def_uuid_config.c [new file with mode: 0644]
tools/fiptool/plat_fiptool/arm/board/tc/plat_fiptool.mk [new file with mode: 0644]
tools/fiptool/plat_fiptool/nxp/plat_def_uuid_config.c [new file with mode: 0644]
tools/fiptool/plat_fiptool/nxp/plat_fiptool.mk [new file with mode: 0644]
tools/fiptool/plat_fiptool/st/stm32mp1/plat_def_uuid_config.c [new file with mode: 0644]
tools/fiptool/plat_fiptool/st/stm32mp1/plat_fiptool.mk [new file with mode: 0644]
tools/nxp/plat_fiptool/plat_def_uuid_config.c [deleted file]
tools/nxp/plat_fiptool/plat_fiptool.mk [deleted file]