Commit 00496002 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

forgotten commit

parent d3a055fc
...@@ -118,24 +118,25 @@ do_compile(){ ...@@ -118,24 +118,25 @@ do_compile(){
# do_deploy_append # do_deploy_append
do_deploy_append() { do_deploy_append() {
if [ $(cat ${S}/.config | grep "CONFIG_OF_CONTROL=y") ]; then if [ $(cat ${S}/.config | grep "CONFIG_OF_CONTROL=y") ]; then
rm -f ${DEPLOYDIR}/${UBOOT_BINARY} rm -f ${DEPLOYDIR}/${UBOOT_BINARY}
install ${S}/u-boot-dtb.img ${DEPLOYDIR}/${UBOOT_IMAGE} install ${S}/u-boot-dtb.img ${DEPLOYDIR}/${UBOOT_IMAGE}
cd ${DEPLOYDIR} cd ${DEPLOYDIR}
rm -f ${UBOOT_BINARY} ${UBOOT_SYMLINK} u-boot-dtb.img rm -f ${UBOOT_BINARY} ${UBOOT_SYMLINK} u-boot-dtb.img
ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK} ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK}
ln -sf ${UBOOT_IMAGE} u-boot-dtb.img ln -sf ${UBOOT_IMAGE} u-boot-dtb.img
if [ ! -d ${PRODUCTION_DIR} ]; then for RLOC in ${PRODUCTION_ROOT_LOCATION}; do
mkdir ${PRODUCTION_DIR} if [ ! -d ${RLOC} ]; then
fi mkdir ${RLOC}
if [ -f ${PRODUCTION_DIR}/${PRODUCTION_BOOT} ]; then fi
rm ${PRODUCTION_DIR}/${PRODUCTION_BOOT} if [ -f ${RLOC}/${PRODUCTION_BOOT} ]; then
fi rm ${RLOC}/${PRODUCTION_BOOT}
cp ${SPL_IMAGE} ${PRODUCTION_DIR}/${PRODUCTION_BOOT} fi
cp ${SPL_IMAGE} ${RLOC}/${PRODUCTION_BOOT}
if [ -f ${PRODUCTION_DIR}/${PRODUCTION_UBOOT} ]; then if [ -f ${RLOC}/${PRODUCTION_UBOOT} ]; then
rm ${PRODUCTION_DIR}/${PRODUCTION_UBOOT} rm ${RLOC}/${PRODUCTION_UBOOT}
fi fi
cp ${UBOOT_IMAGE} ${PRODUCTION_DIR}/${PRODUCTION_UBOOT} cp ${UBOOT_IMAGE} ${RLOC}/${PRODUCTION_UBOOT}
done
fi fi
} }
......
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