Commit dd185f86 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev
Browse files

append to deploy

parent edc8afcc
Loading
Loading
Loading
Loading
+17 −2
Original line number Original line Diff line number Diff line
@@ -99,7 +99,9 @@ do_compile(){


  echo "Other files are already created, repeating it here just to remind their paths"
  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"
    UBOOT_FILE="spl/u-boot-spl.bin"
  else
  else
    UBOOT_FILE="u-boot.bin"
    UBOOT_FILE="u-boot.bin"
@@ -113,3 +115,16 @@ do_compile(){
}
}


##########################################################################################
##########################################################################################
# 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
}

+2 −0
Original line number Original line Diff line number Diff line
@@ -12,3 +12,5 @@ include u-boot-ezynq.inc
PROVIDES = "u-boot virtual/bootloader"
PROVIDES = "u-boot virtual/bootloader"


inherit zynq7-platform-paths
inherit zynq7-platform-paths

#UBOOT_CONFIG="dtb"