Skip to content

Commit f4adf10

Browse files
Flavio Ceolincarlescufi
authored andcommitted
syscalls: Remove gen_syscall_header.py
gen_syscall_header.py is not longer necessary, it was just creating a file including syscall.h. This header is now included directly by gen_syscalls.py. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent 69c75c7 commit f4adf10

File tree

5 files changed

+1
-41
lines changed

5 files changed

+1
-41
lines changed

CMakeLists.txt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ set(ZEPHYR_FINAL_EXECUTABLE zephyr_final)
5050

5151
# Set some phony targets to collect dependencies
5252
set(OFFSETS_H_TARGET offsets_h)
53-
set(SYSCALL_MACROS_H_TARGET syscall_macros_h_target)
5453
set(SYSCALL_LIST_H_TARGET syscall_list_h_target)
5554
set(DRIVER_VALIDATION_H_TARGET driver_validation_h_target)
5655
set(KOBJ_TYPES_H_TARGET kobj_types_h_target)
@@ -477,18 +476,6 @@ if(EXISTS ${CMAKE_BINARY_DIR}/zephyr_modules.txt)
477476
set(ZEPHYR_CURRENT_MODULE_DIR)
478477
endif()
479478

480-
set(syscall_macros_h ${ZEPHYR_BINARY_DIR}/include/generated/syscall_macros.h)
481-
482-
add_custom_target(${SYSCALL_MACROS_H_TARGET} DEPENDS ${syscall_macros_h})
483-
add_custom_command( OUTPUT ${syscall_macros_h}
484-
COMMAND
485-
${PYTHON_EXECUTABLE}
486-
${ZEPHYR_BASE}/scripts/gen_syscall_header.py
487-
> ${syscall_macros_h}
488-
DEPENDS ${ZEPHYR_BASE}/scripts/gen_syscall_header.py
489-
)
490-
491-
492479
set(syscall_list_h ${CMAKE_CURRENT_BINARY_DIR}/include/generated/syscall_list.h)
493480
set(syscalls_json ${CMAKE_CURRENT_BINARY_DIR}/misc/generated/syscalls.json)
494481

@@ -637,7 +624,6 @@ target_include_directories(${OFFSETS_LIB} PRIVATE
637624
target_link_libraries(${OFFSETS_LIB} zephyr_interface)
638625
add_dependencies( ${OFFSETS_LIB}
639626
${SYSCALL_LIST_H_TARGET}
640-
${SYSCALL_MACROS_H_TARGET}
641627
${DRIVER_VALIDATION_H_TARGET}
642628
${KOBJ_TYPES_H_TARGET}
643629
)

CODEOWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,6 @@
331331
/arch/x86/gen_idt.py @andrewboie
332332
/scripts/gen_kobject_list.py @andrewboie
333333
/scripts/gen_priv_stacks.py @andrewboie @agross-oss @ioannisg
334-
/scripts/gen_syscall_header.py @andrewboie
335334
/scripts/gen_syscalls.py @andrewboie
336335
/scripts/process_gperf.py @andrewboie
337336
/scripts/gen_relocate_app.py @wentongwu

include/syscall.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
#ifndef _ASMLANGUAGE
1616
#include <zephyr/types.h>
17-
#include <syscall_macros.h>
1817

1918
#ifdef __cplusplus
2019
extern "C" {

scripts/gen_syscall_header.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

scripts/gen_syscalls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
#ifndef _ASMLANGUAGE
7979
8080
#include <syscall_list.h>
81-
#include <syscall_macros.h>
81+
#include <syscall.h>
8282
8383
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
8484
#pragma GCC diagnostic push

0 commit comments

Comments
 (0)