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
PREFERRED_VERSION_ezynq-u-boot = "v2016.01%"
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"
SERIAL_CONSOLE = "115200 ttyPS0"
......@@ -25,7 +25,6 @@ MACHINE_KCONFIG := "common/elphel393_defconfig_${LINUX_VERSION}"
hostname_pn-base-files = "elphel393"
PRODUCTION_ROOT_LOCATION := "mmc nand"
PRODUCTION_DIR := "mmc"
PRODUCTION_BOOT := "boot.bin"
PRODUCTION_UBOOT := "u-boot-dtb.img"
......
do_deploy_append(){
#ln -sf ${DEPLOY_DIR_IMAGE}/${DTS_NAME}.dtb ${DEPLOY_DIR_IMAGE}/devicetree.dtb
for ROOTFSLOC in ${PRODUCTION_ROOT_LOCATION}; do
echo "RootFS is in ${ROOTFSLOC} "
done
if [ ! -d ${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR} ]; then
mkdir ${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR}
for RLOC in ${PRODUCTION_ROOT_LOCATION}; do
echo "RootFS located in ${RLOC}"
if [ ! -d ${DEPLOY_DIR_IMAGE}/${RLOC} ]; then
mkdir ${DEPLOY_DIR_IMAGE}/${RLOC}
fi
if [ -f ${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR}/${PRODUCTION_DEVICETREE} ]; then
rm ${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR}/${PRODUCTION_DEVICETREE}
if [ -f ${DEPLOY_DIR_IMAGE}/${RLOC}/${PRODUCTION_DEVICETREE} ]; then
rm ${DEPLOY_DIR_IMAGE}/${RLOC}/${PRODUCTION_DEVICETREE}
fi
cp ${DEPLOY_DIR_IMAGE}/${DTS_NAME}.dtb ${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR}/${PRODUCTION_DEVICETREE}
cp ${DEPLOY_DIR_IMAGE}/${MACHINE}_${RLOC}.dtb ${DEPLOY_DIR_IMAGE}/${RLOC}/${PRODUCTION_DEVICETREE}
done
}
\ 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