Skip to content

Commit

Permalink
include: add zephyr/ on script generated #include
Browse files Browse the repository at this point in the history
Fix few script generated #include that needed the zephyr/ prefix.

Signed-off-by: Fabio Baltieri <[email protected]>
  • Loading branch information
fabiobaltieri authored and mbolivar-nordic committed May 27, 2022
1 parent e24314f commit 93f20d7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions arch/xtensa/core/xtensa_intgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ def emit_int_handler(ints):

# Re-include the core-isa header and be sure our definitions match, for sanity
cprint("#include <xtensa/config/core-isa.h>")
cprint("#include <sys/util.h>")
cprint("#include <sw_isr_table.h>")
cprint("#include <zephyr/sys/util.h>")
cprint("#include <zephyr/sw_isr_table.h>")
cprint("")
for l in ints_by_lvl:
for i in ints_by_lvl[l]:
Expand Down
4 changes: 2 additions & 2 deletions scripts/gen_cfb_font_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ def generate_header():
*
*/
#include <zephyr.h>
#include <display/cfb.h>
#include <zephyr/zephyr.h>
#include <zephyr/display/cfb.h>
static const uint8_t cfb_font_{name:s}_{width:d}{height:d}[{elem:d}][{b:.0f}] = {{\n"""
.format(cmd=" ".join(clean_cmd),
Expand Down
6 changes: 3 additions & 3 deletions scripts/gen_kobject_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,9 +719,9 @@ def get_symbols(elf):
%global-table
%struct-type
%{
#include <kernel.h>
#include <toolchain.h>
#include <syscall_handler.h>
#include <zephyr/kernel.h>
#include <zephyr/toolchain.h>
#include <zephyr/syscall_handler.h>
#include <string.h>
%}
struct z_object;
Expand Down
6 changes: 3 additions & 3 deletions scripts/gen_relocate_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@

SOURCE_CODE_INCLUDES = """
/* Auto generated code. Do not modify.*/
#include <zephyr.h>
#include <linker/linker-defs.h>
#include <kernel_structs.h>
#include <zephyr/zephyr.h>
#include <zephyr/linker/linker-defs.h>
#include <zephyr/kernel_structs.h>
#include <kernel_internal.h>
"""

Expand Down

0 comments on commit 93f20d7

Please sign in to comment.