2020-03-31 11:25 PM
Following https://wiki.st.com/stm32mpu/wiki/How_to_cross-compile_with_the_Distribution_Package
4 Adding an external out-of-tree Linux kernel module
When doing this step, error occurs.
PC $> devtool build mymodule
...
WARNING: /home/tim/STM32MP15-Ecosystem-v1.2.0/Distribution-Package/openstlinux-20-02-19/build-openstlinuxweston-stm32mp1/workspace/recipes/mymodule/mymodule.bb: Exception during build_dependencies for do_install
WARNING: /home/tim/STM32MP15-Ecosystem-v1.2.0/Distribution-Package/openstlinux-20-02-19/build-openstlinuxweston-stm32mp1/workspace/recipes/mymodule/mymodule.bb: Error during finalise of /home/tim/STM32MP15-Ecosystem-v1.2.0/Distribution-Package/openstlinux-20-02-19/build-openstlinuxweston-stm32mp1/workspace/recipes/mymodule/mymodule.bb
ERROR: Unable to parse /home/tim/STM32MP15-Ecosystem-v1.2.0/Distribution-Package/openstlinux-20-02-19/build-openstlinuxweston-stm32mp1/workspace/recipes/mymodule/mymodule.bb
...
Need your help.
Regards,
Tim
Solved! Go to Solution.
2020-04-05 08:21 PM
After changing the do_install () in mymodule.bb like this:
install -d ${D}/lib/modules/${KERNEL_VERSION}
#install -d ${D}/lib/modules/${KERNEL_VERSION}</font>
install -m 0755 ${B}/kernel_module_example.ko ${D}/lib/modules/${KERNEL_VERSION}/
#install -m 0755 ${B}/kernel_module_example.ko ${D}/lib/modules/${KERNEL_VERSION}/</font>
it works fine.
2020-04-05 08:21 PM
After changing the do_install () in mymodule.bb like this:
install -d ${D}/lib/modules/${KERNEL_VERSION}
#install -d ${D}/lib/modules/${KERNEL_VERSION}</font>
install -m 0755 ${B}/kernel_module_example.ko ${D}/lib/modules/${KERNEL_VERSION}/
#install -m 0755 ${B}/kernel_module_example.ko ${D}/lib/modules/${KERNEL_VERSION}/</font>
it works fine.