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

Header files that are excluded by condition should not be in *.cbuild.yml files #1800

Open
ReinhardKeil opened this issue Oct 9, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ReinhardKeil
Copy link
Collaborator

ReinhardKeil commented Oct 9, 2024

Describe the bug

The attached project is configured without TrustZone (this should be anyway default, but the cproject.yml specifies this explicit).

The CMSIS.pdsc defines:

   <component Cclass="CMSIS" Cgroup="CORE" Cversion="6.1.0"  condition="ARMv6_7_8-M Device" >
      <description>CMSIS-CORE for Cortex-M, SC000, SC300, Star-MC1, ARMv8-M, ARMv8.1-M</description>
      <files>
        <file category="header"  name="CMSIS/Core/Include/tz_context.h" condition="TrustZone"/>

To Reproduce

Use this project and run cbuild setup
CubeMX.zip

Expected behavior

tz_context.h should not be included in *.cbuild.yml

  components:
    - component: ARM::CMSIS:CORE@6.1.0
      files:
        - file: ${CMSIS_PACK_ROOT}/ARM/CMSIS/6.1.0/CMSIS/Core/Include/tz_context.h    # this is wrong
          category: header
          version: 6.1.0

Environment (please complete the following information):

  • CMSIS-Toolbox v2.6.1
  • OS: windows
@ReinhardKeil ReinhardKeil added the bug Something isn't working label Oct 9, 2024
@jkrech
Copy link
Member

jkrech commented Oct 9, 2024

The condition in the pdsc file checks for Dtz but not Dsecure

    <condition id="TrustZone">
      <description>TrustZone</description>
      <require Dtz="TZ"/>
    </condition>

Dtz is set by the device description
The trustzone node sets the Software Model Selection Dsecure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants