Commit dd185f86 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

append to deploy

parent edc8afcc
......@@ -99,7 +99,9 @@ do_compile(){
echo "Other files are already created, repeating it here just to remind their paths"
if [ $(cat .config | grep "CONFIG_SPL=y") ]; then
if [ $(cat .config | grep "CONFIG_SPL_OF_CONTROL=y") ]; then
UBOOT_FILE="spl/u-boot-spl-dtb.bin"
elif [ $(cat .config | grep "CONFIG_SPL=y") ]; then
UBOOT_FILE="spl/u-boot-spl.bin"
else
UBOOT_FILE="u-boot.bin"
......@@ -112,4 +114,17 @@ do_compile(){
cd ${WORKDIR}
}
##########################################################################################
\ No newline at end of file
##########################################################################################
# do_deploy_append
do_deploy_append() {
if [ $(cat ${S}/.config | grep "CONFIG_OF_CONTROL=y") ]; then
rm -f ${DEPLOYDIR}/${UBOOT_BINARY}
install ${S}/u-boot-dtb.img ${DEPLOYDIR}/${UBOOT_IMAGE}
cd ${DEPLOYDIR}
rm -f ${UBOOT_BINARY} ${UBOOT_SYMLINK} u-boot-dtb.img
ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK}
ln -sf ${UBOOT_IMAGE} u-boot-dtb.img
fi
}
......@@ -12,3 +12,5 @@ include u-boot-ezynq.inc
PROVIDES = "u-boot virtual/bootloader"
inherit zynq7-platform-paths
#UBOOT_CONFIG="dtb"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment