Skip to content

Commit

Permalink
Merge pull request advancedtelematic#773 from liuming50/introduce-OST…
Browse files Browse the repository at this point in the history
…REE_MULTI_DEVICETREE_SUPPORT-for-dunfell

sota: introduce OSTREE_MULTI_DEVICETREE_SUPPORT
  • Loading branch information
aodukha authored Sep 7, 2020
2 parents 805e2c6 + bd0a055 commit a491e47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions classes/sota.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ OSTREE_BOOT_PARTITION ??= "/boot"
OSTREE_KERNEL ??= "${KERNEL_IMAGETYPE}"
OSTREE_DEPLOY_DEVICETREE ??= "0"
OSTREE_DEVICETREE ??= "${KERNEL_DEVICETREE}"
OSTREE_MULTI_DEVICETREE_SUPPORT ??= "0"

INITRAMFS_IMAGE ?= "initramfs-ostree-image"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ALLOW_EMPTY_ostree-devicetrees = "1"
FILES_ostree-kernel = "${nonarch_base_libdir}/modules/*/vmlinuz"
FILES_ostree-initramfs = "${nonarch_base_libdir}/modules/*/initramfs.img"
FILES_ostree-devicetrees = "${nonarch_base_libdir}/modules/*/dtb/* \
${nonarch_base_libdir}/modules/*/devicetree \
${@'' if oe.types.boolean(d.getVar('OSTREE_MULTI_DEVICETREE_SUPPORT')) else '${nonarch_base_libdir}/modules/*/devicetree'} \
"

PACKAGE_ARCH = "${MACHINE_ARCH}"
Expand Down Expand Up @@ -47,7 +47,10 @@ do_install() {
dts_file_basename=$(basename $dts_file)
cp ${DEPLOY_DIR_IMAGE}/$dts_file_basename $kerneldir/dtb/$dts_file_basename
done
cp $kerneldir/dtb/$(basename $(echo ${OSTREE_DEVICETREE} | awk '{print $1}')) $kerneldir/devicetree

if [ ${@ oe.types.boolean('${OSTREE_MULTI_DEVICETREE_SUPPORT}')} = False ]; then
cp $kerneldir/dtb/$(basename $(echo ${OSTREE_DEVICETREE} | awk '{print $1}')) $kerneldir/devicetree
fi
fi
fi
}
Expand Down

0 comments on commit a491e47

Please sign in to comment.