gen_syscall_header.py: script to generate macros
This header could be maintained by hand since there are no inputs and it only changes if the generating script is modified, but given the choice to maintain 800-ish lines of extremely repetitive C preprocessor code, or 100-ish lines of Python, the choice is pretty clear. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
3b2120f500
commit
1d3731f1e5
2 changed files with 133 additions and 1 deletions
10
Makefile
10
Makefile
|
@ -1017,6 +1017,14 @@ endif
|
|||
|
||||
dts: include/generated/generated_dts_board.h
|
||||
|
||||
GEN_SYSCALL_HEADER := $(srctree)/scripts/gen_syscall_header.py
|
||||
|
||||
include/generated/syscall_macros.h: $(GEN_SYSCALL_HEADER)
|
||||
$(Q)mkdir -p $(dir $@)
|
||||
$(Q)$(GEN_SYSCALL_HEADER) > $@
|
||||
|
||||
syscall_macros: include/generated/syscall_macros.h
|
||||
|
||||
define filechk_.config-sanitycheck
|
||||
(cat .config; \
|
||||
grep -e '^CONFIG' include/generated/generated_dts_board.conf | cat; \
|
||||
|
@ -1085,7 +1093,7 @@ archprepare = $(strip \
|
|||
)
|
||||
|
||||
# All the preparing..
|
||||
prepare: $(archprepare) dts FORCE
|
||||
prepare: $(archprepare) dts syscall_macros FORCE
|
||||
$(Q)$(MAKE) $(build)=.
|
||||
|
||||
# Generate some files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue