Commit 57f0eaa3 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

images for mmc and nand

parent 14e2eefe
...@@ -10,7 +10,7 @@ require include/machine-xilinx-default.inc ...@@ -10,7 +10,7 @@ require include/machine-xilinx-default.inc
PREFERRED_VERSION_ezynq-u-boot = "v2016.01%" PREFERRED_VERSION_ezynq-u-boot = "v2016.01%"
PREFERRED_VERSION_linux-xlnx = "4.%" PREFERRED_VERSION_linux-xlnx = "4.%"
# Zedboard machine definition known by ezynq and xilinx u-boot # Machine definition known by ezynq and xilinx u-boot
UBOOT_MACHINE = "elphel393_config" UBOOT_MACHINE = "elphel393_config"
SERIAL_CONSOLE = "115200 ttyPS0" SERIAL_CONSOLE = "115200 ttyPS0"
...@@ -25,7 +25,6 @@ MACHINE_KCONFIG := "common/elphel393_defconfig_${LINUX_VERSION}" ...@@ -25,7 +25,6 @@ MACHINE_KCONFIG := "common/elphel393_defconfig_${LINUX_VERSION}"
hostname_pn-base-files = "elphel393" hostname_pn-base-files = "elphel393"
PRODUCTION_ROOT_LOCATION := "mmc nand" PRODUCTION_ROOT_LOCATION := "mmc nand"
PRODUCTION_DIR := "mmc" PRODUCTION_DIR := "mmc"
PRODUCTION_BOOT := "boot.bin" PRODUCTION_BOOT := "boot.bin"
PRODUCTION_UBOOT := "u-boot-dtb.img" PRODUCTION_UBOOT := "u-boot-dtb.img"
......
do_deploy_append(){ do_deploy_append(){
#ln -sf ${DEPLOY_DIR_IMAGE}/${DTS_NAME}.dtb ${DEPLOY_DIR_IMAGE}/devicetree.dtb for RLOC in ${PRODUCTION_ROOT_LOCATION}; do
echo "RootFS located in ${RLOC}"
for ROOTFSLOC in ${PRODUCTION_ROOT_LOCATION}; do if [ ! -d ${DEPLOY_DIR_IMAGE}/${RLOC} ]; then
echo "RootFS is in ${ROOTFSLOC} " mkdir ${DEPLOY_DIR_IMAGE}/${RLOC}
fi
if [ -f ${DEPLOY_DIR_IMAGE}/${RLOC}/${PRODUCTION_DEVICETREE} ]; then
rm ${DEPLOY_DIR_IMAGE}/${RLOC}/${PRODUCTION_DEVICETREE}
fi
cp ${DEPLOY_DIR_IMAGE}/${MACHINE}_${RLOC}.dtb ${DEPLOY_DIR_IMAGE}/${RLOC}/${PRODUCTION_DEVICETREE}
done done
if [ ! -d ${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR} ]; then
mkdir ${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR}
fi
if [ -f ${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR}/${PRODUCTION_DEVICETREE} ]; then
rm ${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR}/${PRODUCTION_DEVICETREE}
fi
cp ${DEPLOY_DIR_IMAGE}/${DTS_NAME}.dtb ${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR}/${PRODUCTION_DEVICETREE}
} }
\ No newline at end of file
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