[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 14/38] linux-user: introduce parameters to generate syscall_nr.h
From: |
Laurent Vivier |
Subject: |
[PULL 14/38] linux-user: introduce parameters to generate syscall_nr.h |
Date: |
Mon, 16 Mar 2020 17:15:26 +0100 |
This will be used when we'll import syscall.tbl from the kernel
Add a script to remove all the dependencies to syscall_nr.h
that point to source directory and not to the build directory.
The list of arch will be update while the generated files are added.
Signed-off-by: Laurent Vivier <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Reviewed-by: Taylor Simpson <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Laurent Vivier <address@hidden>
---
Makefile.target | 3 ++-
configure | 14 ++++++++++++++
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/Makefile.target b/Makefile.target
index 2d43dc586a10..cb3a6fa5e704 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -128,7 +128,8 @@ ifdef CONFIG_LINUX_USER
QEMU_CFLAGS+=-I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR) \
-I$(SRC_PATH)/linux-user/host/$(ARCH) \
- -I$(SRC_PATH)/linux-user
+ -I$(SRC_PATH)/linux-user \
+ -Ilinux-user/$(TARGET_ABI_DIR)
obj-y += linux-user/
obj-y += gdbstub.o thunk.o
diff --git a/configure b/configure
index cbf864bff1be..39e55a1ecf06 100755
--- a/configure
+++ b/configure
@@ -1887,6 +1887,17 @@ fi
# Remove old dependency files to make sure that they get properly regenerated
rm -f */config-devices.mak.d
+# Remove syscall_nr.h to be sure they will be regenerated in the build
+# directory, not in the source directory
+for arch in ; do
+ # remove the file if it has been generated in the source directory
+ rm -f "${source_path}/linux-user/${arch}/syscall_nr.h"
+ # remove the dependency files
+ find . -name "*.d" \
+ -exec grep -q "${source_path}/linux-user/${arch}/syscall_nr.h" {}
\; \
+ -exec rm {} \;
+done
+
if test -z "$python"
then
error_exit "Python not found. Use --python=/path/to/python"
@@ -7931,6 +7942,9 @@ echo "TARGET_ABI_DIR=$TARGET_ABI_DIR" >>
$config_target_mak
if [ "$HOST_VARIANT_DIR" != "" ]; then
echo "HOST_VARIANT_DIR=$HOST_VARIANT_DIR" >> $config_target_mak
fi
+if [ "$TARGET_SYSTBL_ABI" != "" ]; then
+ echo "TARGET_SYSTBL_ABI=$TARGET_SYSTBL_ABI" >> $config_target_mak
+fi
if supported_xen_target $target; then
echo "CONFIG_XEN=y" >> $config_target_mak
--
2.24.1
- [PULL 29/38] linux-user, mips: add syscall table generation support, (continued)
- [PULL 29/38] linux-user, mips: add syscall table generation support, Laurent Vivier, 2020/03/16
- [PULL 21/38] linux-user, arm: add syscall table generation support, Laurent Vivier, 2020/03/16
- [PULL 36/38] linux-user, aarch64: sync syscall numbers with kernel v5.5, Laurent Vivier, 2020/03/16
- [PULL 15/38] linux-user, alpha: add syscall table generation support, Laurent Vivier, 2020/03/16
- [PULL 32/38] linux-user: update syscall.tbl from linux 0bf999f9c5e7, Laurent Vivier, 2020/03/16
- [PULL 31/38] linux-user, scripts: add a script to update syscall.tbl, Laurent Vivier, 2020/03/16
- [PULL 27/38] linux-user, i386: add syscall table generation support, Laurent Vivier, 2020/03/16
- [PULL 06/38] linux-user: Add AT_EXECFN auxval, Laurent Vivier, 2020/03/16
- [PULL 12/38] linux-user: Support futex_time64, Laurent Vivier, 2020/03/16
- [PULL 20/38] linux-user, microblaze: add syscall table generation support, Laurent Vivier, 2020/03/16
- [PULL 14/38] linux-user: introduce parameters to generate syscall_nr.h,
Laurent Vivier <=
- [PULL 37/38] linux-user, nios2: sync syscall numbers with kernel v5.5, Laurent Vivier, 2020/03/16
- [PULL 11/38] linux-user/syscall: Add support for clock_gettime64/clock_settime64, Laurent Vivier, 2020/03/16
- [PULL 13/38] linux-user/riscv: Update the syscall_nr's to the 5.5 kernel, Laurent Vivier, 2020/03/16
- [PULL 18/38] linux-user, xtensa: add syscall table generation support, Laurent Vivier, 2020/03/16
- [PULL 30/38] linux-user, mips64: add syscall table generation support, Laurent Vivier, 2020/03/16
- [PULL 33/38] linux-user,mips: move content of mips_syscall_args, Laurent Vivier, 2020/03/16
- [PULL 04/38] linux-user: Add x86_64 vsyscall page to /proc/self/maps, Laurent Vivier, 2020/03/16
- [PULL 08/38] linux-user: fix socket() strace, Laurent Vivier, 2020/03/16
- [PULL 01/38] target/i386: Renumber EXCP_SYSCALL, Laurent Vivier, 2020/03/16
- [PULL 17/38] linux-user, m68k: add syscall table generation support, Laurent Vivier, 2020/03/16