Hi,
Im using Yocto Kirkstone on IMX8MM devboard. I add custom device tree (custom.dts) to linux-imx recipe by this solution. Image build ok, DTS is as i expect. The problem is that devtool modify create tmp dir with almost all files except my custom.dts (original recipe have it in workdir, devtool cat get it). How can i fix it? Devtool remove tempdir after error and i cant add it by my own.
已解决! 转到解答。
Hi,
the problem was in
do_configure:append(){
cp ${WORKDIR}/custom.dts ${S}/arch/arm64/boot/dts/freescale
echo "dtb-\$(CONFIG_ARCH_MXC) += custom.dtb" >> ${S}/arch/arm64/boot/dts/freescale/Makefile
}
i remove cp and set subdir in SRC_URI
SRC_URI = "file://custom.dts;subdir=git/arch/arm64/boot/dts/freescale"
Now it works.
Hi,
the problem was in
do_configure:append(){
cp ${WORKDIR}/custom.dts ${S}/arch/arm64/boot/dts/freescale
echo "dtb-\$(CONFIG_ARCH_MXC) += custom.dtb" >> ${S}/arch/arm64/boot/dts/freescale/Makefile
}
i remove cp and set subdir in SRC_URI
SRC_URI = "file://custom.dts;subdir=git/arch/arm64/boot/dts/freescale"
Now it works.