zephyr: Update generated header path.

Support disabled LEGACY_GENERATED_INCLUDE_PATH compatibility option.
Since Zephyr 3.7 generated include files are namespaced.

See also: zephyrproject-rtos/zephyr@bbe5e1e6eb

Signed-off-by: David Schneider <schneidav81@gmail.com>
This commit is contained in:
David Schneider
2025-06-23 14:52:57 +02:00
committed by Damien George
parent 5eb94df09e
commit 16d9e704ae
5 changed files with 6 additions and 4 deletions

View File

@@ -32,8 +32,6 @@
#include <stdio.h>
#include <zephyr/kernel.h>
// Zephyr's generated version header
#include <version.h>
#include <zephyr/net/net_context.h>
#include <zephyr/net/net_pkt.h>
#include <zephyr/net/dns_resolve.h>

View File

@@ -26,7 +26,7 @@
#include <alloca.h>
// Include Zephyr's autoconf.h, which should be made first by Zephyr makefiles
#include "autoconf.h"
#include <zephyr/autoconf.h>
// Included here to get basic Zephyr environment (macros, etc.)
#include <zephyr/kernel.h>
#include <zephyr/drivers/spi.h>

View File

@@ -26,7 +26,7 @@
#include <alloca.h>
// Include Zephyr's autoconf.h, which should be made first by Zephyr makefiles
#include "autoconf.h"
#include <zephyr/autoconf.h>
// Included here to get basic Zephyr environment (macros, etc.)
#include <zephyr/kernel.h>

View File

@@ -81,3 +81,5 @@ CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_UART_LINE_CTRL=y
CONFIG_UART_USE_RUNTIME_CONFIGURE=y
CONFIG_LEGACY_GENERATED_INCLUDE_PATH=n

View File

@@ -10,3 +10,5 @@ CONFIG_CONSOLE_GETCHAR_BUFSIZE=258
CONFIG_CONSOLE_PUTCHAR_BUFSIZE=32
CONFIG_MICROPY_HEAP_SIZE=16384
CONFIG_LEGACY_GENERATED_INCLUDE_PATH=n