mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-09-25 08:40:30 +00:00
u-boot: Fix uboot_config for am62lxx
We need to adjust the code for copying tiboot3* files when running under the UBOOT_CONFIG flow for am62lxx. Signed-off-by: Ryan Eatmon <reatmon@ti.com>
This commit is contained in:
@@ -176,6 +176,26 @@ uboot_compile_config_copy_binary:k3r5 () {
|
||||
fi
|
||||
}
|
||||
|
||||
uboot_compile_config_copy_binary:am62lxx () {
|
||||
config=$1
|
||||
type=$2
|
||||
binary=$3
|
||||
|
||||
builddir="${builddir}"
|
||||
|
||||
if ! [ -L ${B}/${builddir}/${binary} ] && ! [ -f ${B}/${builddir}/${binary} ]; then
|
||||
ln -s ${B}/${builddir}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${builddir}/${binary}
|
||||
fi
|
||||
|
||||
if ! [ -L ${B}/${builddir}/${UBOOT_BINARYNAME}-${type}.${UBOOT_SUFFIX} ] && ! [ -f ${B}/${builddir}/${UBOOT_BINARYNAME}-${type}.${UBOOT_SUFFIX} ]; then
|
||||
tgt="${B}/${builddir}/${binary}"
|
||||
if [ -L ${B}/${builddir}/${binary} ]; then
|
||||
tgt=$(realpath ${B}/${builddir}/${binary})
|
||||
fi
|
||||
ln -s ${tgt} ${B}/${builddir}/${UBOOT_BINARYNAME}-${type}.${UBOOT_SUFFIX}
|
||||
fi
|
||||
}
|
||||
|
||||
uboot_install_config:append () {
|
||||
if [ "x${SPL_UART_BINARY}" != "x" ]; then
|
||||
install ${B}/${builddir}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE}-${type}
|
||||
@@ -280,7 +300,7 @@ uboot_deploy_config:append:k3r5 () {
|
||||
}
|
||||
|
||||
uboot_deploy_config:append:am62lxx () {
|
||||
for f in ${B}/${builddir}/tiboot3-*.bin; do
|
||||
for f in ${B}/${builddir}/tiboot3*.bin; do
|
||||
if [ -f "$f" ]; then
|
||||
f_base=$(basename $f)
|
||||
install -m 644 $f ${DEPLOYDIR}/${f_base}-${type}
|
||||
|
||||
Reference in New Issue
Block a user