mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-17 18:28:55 +00:00
5af42eafd7
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>
35 lines
657 B
Text
35 lines
657 B
Text
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright 2018 NXP
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
#if defined(CONFIG_MPC85XX_HAVE_RESET_VECTOR) && defined(CONFIG_OF_SEPARATE)
|
|
|
|
/ {
|
|
binman {
|
|
filename = "u-boot.bin";
|
|
skip-at-start = <CONFIG_SYS_TEXT_BASE>;
|
|
sort-by-offset;
|
|
pad-byte = <0xff>;
|
|
size = <CONFIG_SYS_MONITOR_LEN>;
|
|
|
|
u-boot-with-ucode-ptr {
|
|
offset = <CONFIG_SYS_TEXT_BASE>;
|
|
optional-ucode;
|
|
};
|
|
|
|
u-boot-dtb-with-ucode {
|
|
align = <4>;
|
|
};
|
|
#ifndef CONFIG_RESET_VECTOR_ADDRESS
|
|
#define CONFIG_RESET_VECTOR_ADDRESS 0xfffffffc
|
|
#endif
|
|
powerpc-mpc85xx-bootpg-resetvec {
|
|
offset = <(CONFIG_RESET_VECTOR_ADDRESS - 0xffc)>;
|
|
};
|
|
};
|
|
};
|
|
|
|
#endif
|