Commit 56f23fad authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

fixed copying the device tree

parent 8427398c
......@@ -16,6 +16,10 @@ SRC_URI += "file://${MACHINE_DEVICETREE} \
do_deploy(){
for DTS_FILE in ${S}/devicetree/*.dts; do
DTS_NAME=`basename ${DTS_FILE} | awk -F "." '{print $1}'`
MACHINE_DTS_NAME=`basename ${MACHINE_DEVICETREE} | awk -F "." '{print $1}'`
if test $MACHINE_DTS_NAME = $DTS_NAME; then
echo "Copying ${MACHINE_DTS_NAME}"
for RLOC in ${PRODUCTION_ROOT_LOCATION}; do
if [ ! -f ${B}/${DTS_NAME}_${RLOC}.dtb ]; then
echo "Warning: ${B}/${DTS_NAME}_${RLOC}.dtb is not available!"
......@@ -35,6 +39,9 @@ do_deploy(){
cp ${DEPLOY_DIR_IMAGE}/${DTS_NAME}_${RLOC}.dtb ${DEPLOY_DIR_IMAGE}/${RLOC}/${PRODUCTION_DEVICETREE}
done
else
echo "Skipping ${DTS_NAME} (machine dts = ${MACHINE_DTS_NAME})"
fi
done
}
......
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