Makefile: Reduce usage of custom mpc85xx u-boot.bin target
authorPali Rohár <pali@kernel.org>
Wed, 3 Aug 2022 11:24:42 +0000 (13:24 +0200)
committerMarek Behún <kabel@kernel.org>
Fri, 16 Sep 2022 15:39:42 +0000 (17:39 +0200)
commit5af42eafd7e132ba36740e6438ee5e6fac2062ae
tree08eaaf58f69eff8302173c35606a77422aadb653
parentd8fa0a76681af3ecea3941f5c743332dd76c7543
Makefile: Reduce usage of custom mpc85xx u-boot.bin target

Building of final u-boot.bin binary for mpc85xx via binman is needed only
when inserting DTB binary in the middle of the u-boot ELF binary (before
.bootpg and .resetvec ELF sections).

These requirements are met when CONFIG_MPC85XX_HAVE_RESET_VECTOR is enabled
(= generating .bootpg/.resetvec sections) and CONFIG_OF_SEPARATE is enabled
(= inserting DTB binary).

So in all other cases use standard build procedure instead of custom
mpc85xx u-boot.bin Makefile target via binman.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <kabel@kernel.org>
Makefile
arch/powerpc/Kconfig
arch/powerpc/dts/u-boot.dtsi