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

include: Prefix includes to use a scope #44320

Merged
merged 3 commits into from
Apr 8, 2022

Commits on Apr 8, 2022

  1. include: Prefix includes to use a scope

    Move include paths and add new target_include_directories to support
    backwards compatibility:
    * /include -> /include/zephyr
      example: <irq.h> -> <zephyr/irq.h>
    
    Issue zephyrproject-rtos#41543
    
    Signed-off-by: Yuval Peress <peress@google.com>
    yperess committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    8e86205 View commit details
    Browse the repository at this point in the history
  2. build: make non zephyr/ include prefix configurable

    Add a Kconfig to disable non prefixed includes. By setting
    `CONFIG_LEGACY_INCLUDE_PATH=n` developers can disable having
    `include/zephyr` in the search path. This means that includes such
    as `#include <kernel.h>` will no longer work.
    
    Internally, every header should be updated to add the `zephyr/`
    prefix to the headers. Only then, will developers be able to use
    this config value for their applications.
    
    Signed-off-by: Yuval Peress <peress@google.com>
    yperess committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    7f165cd View commit details
    Browse the repository at this point in the history
  3. xtensa: Add types to kconfigs

    Fix a documentation build warning by adding the type to the configs
    
    Signed-off-by: Yuval Peress <peress@google.com>
    yperess committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    7c69ee7 View commit details
    Browse the repository at this point in the history