build: namespace the generated headers with zephyr/
Namespaced the generated headers with `zephyr` to prevent potential conflict with other headers. Introduce a temporary Kconfig `LEGACY_GENERATED_INCLUDE_PATH` that is enabled by default. This allows the developers to continue the use of the old include paths for the time being until it is deprecated and eventually removed. The Kconfig will generate a build-time warning message, similar to the `CONFIG_TIMER_RANDOM_GENERATOR`. Updated the includes path of in-tree sources accordingly. Most of the changes here are scripted, check the PR for more info. Signed-off-by: Yong Cong Sin <ycsin@meta.com>
This commit is contained in:
parent
d034106b40
commit
bbe5e1e6eb
294 changed files with 770 additions and 726 deletions
|
@ -13,7 +13,7 @@ static inline int z_vrfy_rtc_set_time(const struct device *dev, const struct rtc
|
|||
K_OOPS(K_SYSCALL_MEMORY_READ(timeptr, sizeof(struct rtc_time)));
|
||||
return z_impl_rtc_set_time(dev, timeptr);
|
||||
}
|
||||
#include <syscalls/rtc_set_time_mrsh.c>
|
||||
#include <zephyr/syscalls/rtc_set_time_mrsh.c>
|
||||
|
||||
static inline int z_vrfy_rtc_get_time(const struct device *dev, struct rtc_time *timeptr)
|
||||
{
|
||||
|
@ -21,7 +21,7 @@ static inline int z_vrfy_rtc_get_time(const struct device *dev, struct rtc_time
|
|||
K_OOPS(K_SYSCALL_MEMORY_WRITE(timeptr, sizeof(struct rtc_time)));
|
||||
return z_impl_rtc_get_time(dev, timeptr);
|
||||
}
|
||||
#include <syscalls/rtc_get_time_mrsh.c>
|
||||
#include <zephyr/syscalls/rtc_get_time_mrsh.c>
|
||||
|
||||
#ifdef CONFIG_RTC_ALARM
|
||||
static inline int z_vrfy_rtc_alarm_get_supported_fields(const struct device *dev, uint16_t id,
|
||||
|
@ -31,7 +31,7 @@ static inline int z_vrfy_rtc_alarm_get_supported_fields(const struct device *dev
|
|||
K_OOPS(K_SYSCALL_MEMORY_WRITE(mask, sizeof(uint16_t)));
|
||||
return z_impl_rtc_alarm_get_supported_fields(dev, id, mask);
|
||||
}
|
||||
#include <syscalls/rtc_alarm_get_supported_fields_mrsh.c>
|
||||
#include <zephyr/syscalls/rtc_alarm_get_supported_fields_mrsh.c>
|
||||
|
||||
static inline int z_vrfy_rtc_alarm_set_time(const struct device *dev, uint16_t id, uint16_t mask,
|
||||
const struct rtc_time *timeptr)
|
||||
|
@ -40,7 +40,7 @@ static inline int z_vrfy_rtc_alarm_set_time(const struct device *dev, uint16_t i
|
|||
K_OOPS(K_SYSCALL_MEMORY_READ(timeptr, sizeof(struct rtc_time)));
|
||||
return z_impl_rtc_alarm_set_time(dev, id, mask, timeptr);
|
||||
}
|
||||
#include <syscalls/rtc_alarm_set_time_mrsh.c>
|
||||
#include <zephyr/syscalls/rtc_alarm_set_time_mrsh.c>
|
||||
|
||||
static inline int z_vrfy_rtc_alarm_get_time(const struct device *dev, uint16_t id, uint16_t *mask,
|
||||
struct rtc_time *timeptr)
|
||||
|
@ -50,14 +50,14 @@ static inline int z_vrfy_rtc_alarm_get_time(const struct device *dev, uint16_t i
|
|||
K_OOPS(K_SYSCALL_MEMORY_WRITE(timeptr, sizeof(struct rtc_time)));
|
||||
return z_impl_rtc_alarm_get_time(dev, id, mask, timeptr);
|
||||
}
|
||||
#include <syscalls/rtc_alarm_get_time_mrsh.c>
|
||||
#include <zephyr/syscalls/rtc_alarm_get_time_mrsh.c>
|
||||
|
||||
static inline int z_vrfy_rtc_alarm_is_pending(const struct device *dev, uint16_t id)
|
||||
{
|
||||
K_OOPS(K_SYSCALL_DRIVER_RTC(dev, alarm_is_pending));
|
||||
return z_impl_rtc_alarm_is_pending(dev, id);
|
||||
}
|
||||
#include <syscalls/rtc_alarm_is_pending_mrsh.c>
|
||||
#include <zephyr/syscalls/rtc_alarm_is_pending_mrsh.c>
|
||||
#endif /* CONFIG_RTC_ALARM */
|
||||
|
||||
#ifdef CONFIG_RTC_CALIBRATION
|
||||
|
@ -67,7 +67,7 @@ static inline int z_vrfy_rtc_set_calibration(const struct device *dev, int32_t c
|
|||
return z_impl_rtc_set_calibration(dev, calibration);
|
||||
}
|
||||
|
||||
#include <syscalls/rtc_set_calibration_mrsh.c>
|
||||
#include <zephyr/syscalls/rtc_set_calibration_mrsh.c>
|
||||
|
||||
static inline int z_vrfy_rtc_get_calibration(const struct device *dev, int32_t *calibration)
|
||||
{
|
||||
|
@ -75,5 +75,5 @@ static inline int z_vrfy_rtc_get_calibration(const struct device *dev, int32_t *
|
|||
K_OOPS(K_SYSCALL_MEMORY_WRITE(calibration, sizeof(int32_t)));
|
||||
return z_impl_rtc_get_calibration(dev, calibration);
|
||||
}
|
||||
#include <syscalls/rtc_get_calibration_mrsh.c>
|
||||
#include <zephyr/syscalls/rtc_get_calibration_mrsh.c>
|
||||
#endif /* CONFIG_RTC_CALIBRATION */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue