cancel
Showing results for 
Search instead for 
Did you mean: 

Unsuccessfully Adding an external out-of-tree Linux kernel module with Distribution_Package

tpeng.1
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
tpeng.1
Associate III

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.

View solution in original post

1 REPLY 1
tpeng.1
Associate III

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.