Skip to content
  • Stephen Warren's avatar
    kbuild: limit dtc+cpp include path · e570d7c1
    Stephen Warren authored
    
    
    Device tree source files may now include header files. The intent is
    that those header files define/name constants used as part of the DT
    bindings. Currently this feature is open to abuse, since any kernel
    header file at all can be included, This could allow device tree files
    to become dependant on kernel headers files, and thus make them no
    longer OS-independent. This would also prevent separating the device
    tree source files from the kernel repository.
    
    Solve this by limiting the cpp include path for device tree files to
    separate directories.
    
    Signed-off-by: Stephen Warren's avatarStephen Warren <swarren@nvidia.com>
    Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
    e570d7c1