Kconfig.board command failed with return code: 1

Hello,

I am trying to configure a visible symbol in the Kconfig.board file of my project.

This is what the Kconfig file looks like:

config BOARD_NRF52840_HUME
	bool "nRF52840 HUME"
	depends on SOC_NRF52840_QIAA

config HAS_VALENCELL
    bool "valencell sensor present"

Where the new thing I want to add is the HAS_VALENCELL.

Then in the nrf52840_defconfig file I define it like that:

CONFIG_HAS_VALENCELL=y

The error when I try to build the code is the following:

Any help on how this can be fixed or what is causing the problem would be helpful.

Parents
  • Hello,

    It seems like your board name ''BOARD_NRF52840_HUME''. You are trying to add  HAS_VALENCELL (CONFIG_HAS_VALENCELL=y) into the deconfig file.

    What board you are building for? Could you please share your board files and full build log? 

    Thanks.

    Best Regards,

    Kazi Afroza Sultana

  • Hello,

    The board is nRF52840.

    This is the build log that I have.

    ====================[ Build | zephyr_final | ZDebug-Zephyr ]====================
    /usr/bin/cmake --build /home/svetoslav/CLionProjects/zephyr-senti-firmware/zephyr-senti-firmware/cmake-build-zdebug-zephyr --target zephyr_final
    [0/1] Re-running CMake...
    Including boilerplate (Zephyr base (cached)): /home/svetoslav/zephyrproject/zephyr/cmake/app/boilerplate.cmake
    -- Application: /home/svetoslav/CLionProjects/zephyr-senti-firmware/zephyr-senti-firmware
    -- Zephyr version: 2.7.1 (/home/svetoslav/zephyrproject/zephyr), build: zephyr-v2.7.1
    -- Found west (found suitable version "0.12.0", minimum required is "0.7.1")
    -- Board: nrf52840_hume_v2r4
    -- Cache files will be written to: /home/svetoslav/.cache/zephyr
    -- Using toolchain: zephyr 0.13.1 (/home/svetoslav/zephyr-sdk-0.13.1)
    -- Found dtc: /home/svetoslav/zephyr-sdk-0.13.1/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
    -- Found BOARD.dts: /home/svetoslav/CLionProjects/zephyr-senti-firmware/zephyr-senti-firmware/hume-boards/boards/arm/nrf52840_hume_v2r4/nrf52840_hume_v2r4.dts
    node '/soc/i2c@40003000/performtek@45' compatible 'valencell,performtek' has unknown vendor prefix 'valencell'
    -- Generated zephyr.dts: /home/svetoslav/CLionProjects/zephyr-senti-firmware/zephyr-senti-firmware/cmake-build-zdebug-zephyr/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: /home/svetoslav/CLionProjects/zephyr-senti-firmware/zephyr-senti-firmware/cmake-build-zdebug-zephyr/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: /home/svetoslav/CLionProjects/zephyr-senti-firmware/zephyr-senti-firmware/cmake-build-zdebug-zephyr/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: /home/svetoslav/CLionProjects/zephyr-senti-firmware/zephyr-senti-firmware/cmake-build-zdebug-zephyr/zephyr/dts.cmake
    Parsing /home/svetoslav/zephyrproject/zephyr/Kconfig
    Loaded configuration '/home/svetoslav/CLionProjects/zephyr-senti-firmware/zephyr-senti-firmware/hume-boards/boards/arm/nrf52840_hume_v2r4/nrf52840_hume_v2r4_defconfig'
    Merged configuration 'prj.common.conf'
    Merged configuration 'prj.ZDebug.conf'
    No change to configuration in '/home/svetoslav/CLionProjects/zephyr-senti-firmware/zephyr-senti-firmware/cmake-build-zdebug-zephyr/zephyr/.config'
    No change to Kconfig header in '/home/svetoslav/CLionProjects/zephyr-senti-firmware/zephyr-senti-firmware/cmake-build-zdebug-zephyr/zephyr/include/generated/autoconf.h'
    CMake Warning at /home/svetoslav/zephyrproject/zephyr/CMakeLists.txt:730 (message):
      No SOURCES given to Zephyr library: drivers__dac
    
      Excluding target from build.
    
    
    CMake Warning at /home/svetoslav/zephyrproject/zephyr/CMakeLists.txt:1652 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/svetoslav/CLionProjects/zephyr-senti-firmware/zephyr-senti-firmware/cmake-build-zdebug-zephyr
    [195/202] Linking C executable zephyr/zephyr_prebuilt.elf
    FAILED: zephyr/zephyr_prebuilt.elf zephyr/zephyr_prebuilt.map /home/svetoslav/CLionProjects/zephyr-senti-firmware/zephyr-senti-firmware/cmake-build-zdebug-zephyr/zephyr/zephyr_prebuilt.map 
    : && ccache /home/svetoslav/zephyr-sdk-0.13.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc   zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj -o zephyr/zephyr_prebuilt.elf  zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj  -fuse-ld=bfd  -Wl,-T  zephyr/linker_zephyr_prebuilt.cmd  -Wl,-Map=/home/svetoslav/CLionProjects/zephyr-senti-firmware/zephyr-senti-firmware/cmake-build-zdebug-zephyr/zephyr/zephyr_prebuilt.map  -Wl,--whole-archive  app/libapp.a  zephyr/libzephyr.a  zephyr/arch/common/libarch__common.a  zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a  zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a  zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a  zephyr/lib/libc/newlib/liblib__libc__newlib.a  zephyr/lib/posix/liblib__posix.a  zephyr/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a  zephyr/soc/arm/nordic_nrf/nrf52/libsoc__arm__nordic_nrf__nrf52.a  zephyr/boards/boards/arm/nrf52840_hume_v2r4/lib..__..__CLionProjects__zephyr-senti-firmware__zephyr-senti-firmware__hume-boards__boards__arm__nrf52840_hume_v2r4.a  zephyr/subsys/bluetooth/common/libsubsys__bluetooth__common.a  zephyr/subsys/bluetooth/host/libsubsys__bluetooth__host.a  zephyr/subsys/fs/libsubsys__fs.a  zephyr/subsys/mgmt/mcumgr/libsubsys__mgmt__mcumgr.a  zephyr/subsys/dfu/boot/libsubsys__dfu__boot.a  zephyr/subsys/net/libsubsys__net.a  zephyr/drivers/adc/libdrivers__adc.a  zephyr/drivers/clock_control/libdrivers__clock_control.a  zephyr/drivers/console/libdrivers__console.a  zephyr/drivers/gpio/libdrivers__gpio.a  zephyr/drivers/i2c/libdrivers__i2c.a  zephyr/drivers/led/libdrivers__led.a  zephyr/drivers/pwm/libdrivers__pwm.a  zephyr/drivers/spi/libdrivers__spi.a  zephyr/drivers/flash/libdrivers__flash.a  zephyr/drivers/bluetooth/libdrivers__bluetooth.a  zephyr/drivers/timer/libdrivers__timer.a  modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a  modules/littlefs/lib..__modules__fs__littlefs.a  modules/mcuboot/libmcuboot_util.a  modules/mcumgr/lib..__modules__lib__mcumgr.a  modules/segger/libmodules__segger.a  modules/tinycbor/lib..__modules__lib__tinycbor__zephyr.a  modules/zephyr-drivers/dac/mcp47a1_dac/lib..__..__CLionProjects__zephyr-senti-firmware__zephyr-senti-firmware__zephyr-drivers__dac__mcp47a1_dac.a  modules/zephyr-drivers/sensor/lc709205f_fuel_gauge/lib..__..__CLionProjects__zephyr-senti-firmware__zephyr-senti-firmware__zephyr-drivers__sensor__lc709205f_fuel_gauge.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  -L"/home/svetoslav/zephyr-sdk-0.13.1/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/thumb/v7e-m/nofp"  -L/home/svetoslav/CLionProjects/zephyr-senti-firmware/zephyr-senti-firmware/cmake-build-zdebug-zephyr/zephyr  -lgcc  zephyr/arch/common/libisr_tables.a  -mcpu=cortex-m4  -mthumb  -mabi=aapcs  -mfp16-format=ieee  -Wl,--gc-sections  -Wl,--build-id=none  -Wl,--sort-common=descending  -Wl,--sort-section=alignment  -Wl,-u,_OffsetAbsSyms  -Wl,-u,_ConfigAbsSyms  -nostdlib  -static  -no-pie  -Wl,-X  -Wl,-N  -Wl,--orphan-handling=warn  -lm  -Wl,-lc  -L"/home/svetoslav/zephyr-sdk-0.13.1/arm-zephyr-eabi/arm-zephyr-eabi"/lib/thumb/v7e-m/nofp  -Wl,-lgcc  -lc  -specs=nano.specs && cd /home/svetoslav/CLionProjects/zephyr-senti-firmware/zephyr-senti-firmware/cmake-build-zdebug-zephyr/zephyr && /usr/bin/cmake -E echo
    /home/svetoslav/zephyr-sdk-0.13.1/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.bfd: Undefined initialization levels used.
    /home/svetoslav/zephyr-sdk-0.13.1/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/drivers/bluetooth/libdrivers__bluetooth.a(rpmsg.c.obj): in function `bt_rpmsg_init':
    /home/svetoslav/zephyrproject/zephyr/drivers/bluetooth/hci/rpmsg.c:260: undefined reference to `bt_rpmsg_platform_init'
    /home/svetoslav/zephyr-sdk-0.13.1/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/drivers/bluetooth/libdrivers__bluetooth.a(rpmsg.c.obj): in function `bt_rpmsg_send':
    /home/svetoslav/zephyrproject/zephyr/drivers/bluetooth/hci/rpmsg.c:224: undefined reference to `bt_rpmsg_platform_send'
    /home/svetoslav/zephyr-sdk-0.13.1/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/drivers/bluetooth/libdrivers__bluetooth.a(rpmsg.c.obj): in function `bt_rpmsg_open':
    /home/svetoslav/zephyrproject/zephyr/drivers/bluetooth/hci/rpmsg.c:238: undefined reference to `bt_rpmsg_platform_endpoint_is_bound'
    collect2: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
    

  • Hello,

    You can see in the no:8 line of build log your board name is nrf52840_hume_v2r4. 

    You have not share the board files. You can find it here:

    /home/svetoslav/CLionProjects/zephyr-senti-firmware/zephyr-senti-firmware/hume-boards/boards/arm/nrf52840_hume_v2r4 

    We also would like to know your NCS version.

    Thanks.

    Best Regards,

    Kazi Afroza Sultana

Reply Children
No Data
Related