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
|
@ -95,7 +95,7 @@ static timing_t z_vrfy_timing_timestamp_get(void)
|
|||
return z_impl_timing_timestamp_get();
|
||||
}
|
||||
|
||||
#include <syscalls/timing_timestamp_get_mrsh.c>
|
||||
#include <zephyr/syscalls/timing_timestamp_get_mrsh.c>
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
|
@ -126,6 +126,6 @@ extern struct k_mem_slab MAP1;
|
|||
__syscall void test_thread_priority_set(k_tid_t thread, int prio);
|
||||
__syscall timing_t timing_timestamp_get(void);
|
||||
|
||||
#include <syscalls/master.h>
|
||||
#include <zephyr/syscalls/master.h>
|
||||
|
||||
#endif /* _MASTER_H */
|
||||
|
|
|
@ -32,7 +32,7 @@ static inline int z_vrfy_dummy_syscall(void)
|
|||
{
|
||||
return 0;
|
||||
}
|
||||
#include <syscalls/dummy_syscall_mrsh.c>
|
||||
#include <zephyr/syscalls/dummy_syscall_mrsh.c>
|
||||
|
||||
int z_impl_validation_overhead_syscall(void)
|
||||
{
|
||||
|
@ -47,7 +47,7 @@ static inline int z_vrfy_validation_overhead_syscall(void)
|
|||
|
||||
return status_0 || status_1;
|
||||
}
|
||||
#include <syscalls/validation_overhead_syscall_mrsh.c>
|
||||
#include <zephyr/syscalls/validation_overhead_syscall_mrsh.c>
|
||||
|
||||
|
||||
void test_drop_to_user_mode_1(void *p1, void *p2, void *p3)
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
__syscall int dummy_syscall(void);
|
||||
__syscall int validation_overhead_syscall(void);
|
||||
|
||||
#include <syscalls/userspace.h>
|
||||
#include <zephyr/syscalls/userspace.h>
|
||||
|
||||
#endif /* _USERSPACE_H_ */
|
||||
|
|
|
@ -29,7 +29,7 @@ timing_t z_vrfy_timing_timestamp_get(void)
|
|||
{
|
||||
return z_impl_timing_timestamp_get();
|
||||
}
|
||||
#include <syscalls/timing_timestamp_get_mrsh.c>
|
||||
#include <zephyr/syscalls/timing_timestamp_get_mrsh.c>
|
||||
#endif
|
||||
|
||||
static void start_thread_entry(void *p1, void *p2, void *p3)
|
||||
|
|
|
@ -16,6 +16,6 @@ __syscall timing_t timing_timestamp_get(void);
|
|||
void timestamp_overhead_init(uint32_t num_iterations);
|
||||
uint64_t timestamp_overhead_adjustment(uint32_t options1, uint32_t options2);
|
||||
|
||||
#include <syscalls/timing_sc.h>
|
||||
#include <zephyr/syscalls/timing_sc.h>
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue