diff options
| author | Laurent Vivier | 2020-03-10 11:33:59 +0100 |
|---|---|---|
| committer | Laurent Vivier | 2020-03-20 16:02:00 +0100 |
| commit | 686a0fe4dbeb711eeed83d7a3e307c6506fdb8b3 (patch) | |
| tree | 4a54b16ceebaa71ac0a06bcca585274af7bcc2aa /linux-user/mips64/Makefile.objs | |
| parent | linux-user, mips: add syscall table generation support (diff) | |
| download | qemu-686a0fe4dbeb711eeed83d7a3e307c6506fdb8b3.tar.gz qemu-686a0fe4dbeb711eeed83d7a3e307c6506fdb8b3.tar.xz qemu-686a0fe4dbeb711eeed83d7a3e307c6506fdb8b3.zip | |
linux-user, mips64: add syscall table generation support
Copy syscall_n32.tbl, syscall_n64.tbl and syscallhdr.sh from
linux/arch/parisc/kernel/syscalls v5.5
Update syscallhdr.sh to generate QEMU syscall_nr.h
Move the offsets (6000 for n32 and 5000 for n64) from the file to
the Makefile.objs to be passed to syscallhdr.sh
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Taylor Simpson <tsimpson@quicinc.com>
Message-Id: <20200310103403.3284090-18-laurent@vivier.eu>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/mips64/Makefile.objs')
| -rw-r--r-- | linux-user/mips64/Makefile.objs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/linux-user/mips64/Makefile.objs b/linux-user/mips64/Makefile.objs new file mode 100644 index 0000000000..573448f956 --- /dev/null +++ b/linux-user/mips64/Makefile.objs @@ -0,0 +1,12 @@ +generated-files-y += linux-user/$(TARGET_ABI_DIR)/syscall_nr.h + +syshdr := $(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)/syscallhdr.sh + +ifeq ($(TARGET_SYSTBL_ABI),n32) +%/syscall_nr.h: $(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)/syscall_n32.tbl $(syshdr) + $(call quiet-command, sh $(syshdr) $< $@ n32 "" 6000,"GEN","$@") +endif +ifeq ($(TARGET_SYSTBL_ABI),n64) +%/syscall_nr.h: $(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)/syscall_n64.tbl $(syshdr) + $(call quiet-command, sh $(syshdr) $< $@ n64 "" 5000,"GEN","$@") +endif |
