Apalis iMX8 Yocto Enable HIDRAW Support


Note that bitbake linux-toradex -c menuconfig is not something that makes your changes permanent.
So if bitbake later on decides that it needs to rerun the kernel configuration your changes will be lost.
So IMHO it is best to avoid this workflow.

Note that the yocto kernel’s “*.cfg” fragments are not used in the i.MX8 kernel recipe.

I would recommend to piggy-back on the do_copy_defconfig () task in the i.MX8 kernel recipe. One would delete a potential existing config before amending with whatever you need to have the options set to. E.g. append to that task as follows:

do_copy_defconfig_append () {
    sed -i "/CONFIG_HIDRAW[ =]/d" $config
    echo "CONFIG_HIDRAW=y" >> $config

    sed -i "/CONFIG_HIDRAW[ =]/d" $config
    echo "CONFIG_HIDRAW=y" >> $config