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 <flavio.ceolin@intel.com>
This commit is contained in:
parent
69c75c7267
commit
f4adf107f3
5 changed files with 1 additions and 41 deletions
|
@ -50,7 +50,6 @@ set(ZEPHYR_FINAL_EXECUTABLE zephyr_final)
|
||||||
|
|
||||||
# Set some phony targets to collect dependencies
|
# Set some phony targets to collect dependencies
|
||||||
set(OFFSETS_H_TARGET offsets_h)
|
set(OFFSETS_H_TARGET offsets_h)
|
||||||
set(SYSCALL_MACROS_H_TARGET syscall_macros_h_target)
|
|
||||||
set(SYSCALL_LIST_H_TARGET syscall_list_h_target)
|
set(SYSCALL_LIST_H_TARGET syscall_list_h_target)
|
||||||
set(DRIVER_VALIDATION_H_TARGET driver_validation_h_target)
|
set(DRIVER_VALIDATION_H_TARGET driver_validation_h_target)
|
||||||
set(KOBJ_TYPES_H_TARGET kobj_types_h_target)
|
set(KOBJ_TYPES_H_TARGET kobj_types_h_target)
|
||||||
|
@ -477,18 +476,6 @@ if(EXISTS ${CMAKE_BINARY_DIR}/zephyr_modules.txt)
|
||||||
set(ZEPHYR_CURRENT_MODULE_DIR)
|
set(ZEPHYR_CURRENT_MODULE_DIR)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(syscall_macros_h ${ZEPHYR_BINARY_DIR}/include/generated/syscall_macros.h)
|
|
||||||
|
|
||||||
add_custom_target(${SYSCALL_MACROS_H_TARGET} DEPENDS ${syscall_macros_h})
|
|
||||||
add_custom_command( OUTPUT ${syscall_macros_h}
|
|
||||||
COMMAND
|
|
||||||
${PYTHON_EXECUTABLE}
|
|
||||||
${ZEPHYR_BASE}/scripts/gen_syscall_header.py
|
|
||||||
> ${syscall_macros_h}
|
|
||||||
DEPENDS ${ZEPHYR_BASE}/scripts/gen_syscall_header.py
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
set(syscall_list_h ${CMAKE_CURRENT_BINARY_DIR}/include/generated/syscall_list.h)
|
set(syscall_list_h ${CMAKE_CURRENT_BINARY_DIR}/include/generated/syscall_list.h)
|
||||||
set(syscalls_json ${CMAKE_CURRENT_BINARY_DIR}/misc/generated/syscalls.json)
|
set(syscalls_json ${CMAKE_CURRENT_BINARY_DIR}/misc/generated/syscalls.json)
|
||||||
|
|
||||||
|
@ -637,7 +624,6 @@ target_include_directories(${OFFSETS_LIB} PRIVATE
|
||||||
target_link_libraries(${OFFSETS_LIB} zephyr_interface)
|
target_link_libraries(${OFFSETS_LIB} zephyr_interface)
|
||||||
add_dependencies( ${OFFSETS_LIB}
|
add_dependencies( ${OFFSETS_LIB}
|
||||||
${SYSCALL_LIST_H_TARGET}
|
${SYSCALL_LIST_H_TARGET}
|
||||||
${SYSCALL_MACROS_H_TARGET}
|
|
||||||
${DRIVER_VALIDATION_H_TARGET}
|
${DRIVER_VALIDATION_H_TARGET}
|
||||||
${KOBJ_TYPES_H_TARGET}
|
${KOBJ_TYPES_H_TARGET}
|
||||||
)
|
)
|
||||||
|
|
|
@ -331,7 +331,6 @@
|
||||||
/arch/x86/gen_idt.py @andrewboie
|
/arch/x86/gen_idt.py @andrewboie
|
||||||
/scripts/gen_kobject_list.py @andrewboie
|
/scripts/gen_kobject_list.py @andrewboie
|
||||||
/scripts/gen_priv_stacks.py @andrewboie @agross-oss @ioannisg
|
/scripts/gen_priv_stacks.py @andrewboie @agross-oss @ioannisg
|
||||||
/scripts/gen_syscall_header.py @andrewboie
|
|
||||||
/scripts/gen_syscalls.py @andrewboie
|
/scripts/gen_syscalls.py @andrewboie
|
||||||
/scripts/process_gperf.py @andrewboie
|
/scripts/process_gperf.py @andrewboie
|
||||||
/scripts/gen_relocate_app.py @wentongwu
|
/scripts/gen_relocate_app.py @wentongwu
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
|
|
||||||
#ifndef _ASMLANGUAGE
|
#ifndef _ASMLANGUAGE
|
||||||
#include <zephyr/types.h>
|
#include <zephyr/types.h>
|
||||||
#include <syscall_macros.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
#
|
|
||||||
# Copyright (c) 2017 Intel Corporation
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
"""
|
|
||||||
Generation script for syscall_macros.h
|
|
||||||
|
|
||||||
Except for a single transitive include, this header is empty. The
|
|
||||||
generated code that used to live here is now emitted by
|
|
||||||
gen_syscalls.py directly.
|
|
||||||
|
|
||||||
This script has no inputs, and emits the generated header to stdout.
|
|
||||||
"""
|
|
||||||
|
|
||||||
import sys
|
|
||||||
|
|
||||||
sys.stdout.write(
|
|
||||||
"/* Auto-generated by gen_syscall_header.py, do not edit! */\n\n")
|
|
||||||
sys.stdout.write("#ifndef GEN_SYSCALL_H\n#define GEN_SYSCALL_H\n\n")
|
|
||||||
sys.stdout.write("#include <syscall.h>\n")
|
|
||||||
|
|
||||||
sys.stdout.write("#endif /* GEN_SYSCALL_H */\n")
|
|
|
@ -78,7 +78,7 @@ syscall_template = """
|
||||||
#ifndef _ASMLANGUAGE
|
#ifndef _ASMLANGUAGE
|
||||||
|
|
||||||
#include <syscall_list.h>
|
#include <syscall_list.h>
|
||||||
#include <syscall_macros.h>
|
#include <syscall.h>
|
||||||
|
|
||||||
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
|
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue