So over the past five days, I have had in my driver’s deepest directory a Kconfig file which contains:
1 # SPDX-License-Identifier: Apache-2.0
3 config KX132_1211
4 bool "KX132-1211 accelerometer"
5 depends on I2C
7 Enable Kionix KX132-1211 accelerometer
This was all the more I saw in some other specific driver Kconfig files. At one point I had line 3 entered as
menuconfig KX132_1211, which matches the SHCT3 specific driver Kconfig. With both these versions of the line “config” and “menuconfig” I encounter the build error “warning: attempt to assign the value ‘y’ to the undefined symbol KX132_1211”.
Today I found and cloned a Zephyr example “driver out of tree” application, available at https://github.com/zephyrproject-rtos/example-application. I cloned this next to my driver work, which builds so long as I do not attempt to set CONFIG_KX132_1211 to any value. When I build this example app whose dir structure pretty much matches pyrinas, and my own present Kionix app, I get the very same error:
/home/ted/projects/embedded/ncs/zephyr/samples/sandbox-de-ted/example-application/app/prj.conf:7: warning: attempt to assign the value 'y' to the undefined symbol EXAMPLESENSOR
This is an example, driver-out-of-tree application provided by Zephyr organization itself. I can build Zephyr inclusive apps with in-tree drivers, but thus far I cannot build apps with out-of-tree drivers. I can build many of the sample apps in Nordic ncs SDK 1.6.1.
Is there a clue here from Zephyr’s app build failure that something in the larger toolchain and SDK spaces is malconfigured?