Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: Fix SOC_FULL_DIR path #69399

Commits on Feb 23, 2024

  1. cmake: Fix SOC_FULL_DIR path

    Create SOC_FULL_DIR path based on SOC_FAMILY
    name which is expected to be of type:
    vendor[_\-]soc_family.
    
    AS this is defined now, for some boards,
    SOC_FULL_DIR is empty. So, when compiling
    for Xtensa and I get the following error:
    ```
    Generating ../../../../include/generated/core-isa-dM.h
    ...
    xtensa-nxp_imx_adsp_zephyr-elf-gcc: fatal error:
    no input files
    compilation terminated.
    
    ```
    
    That's because in arch/xtensa/core/CMakeLists.txt
    we have:
    COMMAND ${CMAKE_C_COMPILER} -E -dM -U__XCC__
    -I${ZEPHYR_XTENSA_MODULE_DIR}/zephyr/soc/${CONFIG_SOC}
    -I${SOC_FULL_DIR} ${CORE_ISA_IN} -o ${CORE_ISA_DM})
    
    Signed-off-by: Iuliana Prodan <[email protected]>
    iuliana-prodan committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    98b30dc View commit details
    Browse the repository at this point in the history