[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 01/21] linux-user: introduce parameters to generate syscall_nr
From: |
Laurent Vivier |
Subject: |
[PATCH v3 01/21] linux-user: introduce parameters to generate syscall_nr.h |
Date: |
Tue, 25 Feb 2020 13:15:33 +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>
---
Makefile.target | 3 ++-
configure | 14 ++++++++++++++
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/Makefile.target b/Makefile.target
index 6e61f607b14a..9babf2643e0b 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 d57261e3ad0c..c94161ced84f 100755
--- a/configure
+++ b/configure
@@ -1855,6 +1855,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"
@@ -7849,6 +7860,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
- [PATCH v3 00/21] linux-user: generate syscall_nr.sh, Laurent Vivier, 2020/02/25
- [PATCH v3 01/21] linux-user: introduce parameters to generate syscall_nr.h,
Laurent Vivier <=
- [PATCH v3 13/21] linux-user, x86_64, i386: cleanup TARGET_NR_arch_prctl, Laurent Vivier, 2020/02/25
- [PATCH v3 05/21] linux-user, xtensa: add syscall table generation support, Laurent Vivier, 2020/02/25
- [PATCH v3 06/21] linux-user, sh4: add syscall table generation support, Laurent Vivier, 2020/02/25
- [PATCH v3 07/21] linux-user, microblaze: add syscall table generation support, Laurent Vivier, 2020/02/25
- [PATCH v3 03/21] linux-user, hppa: add syscall table generation support, Laurent Vivier, 2020/02/25
- [PATCH v3 02/21] linux-user, alpha: add syscall table generation support, Laurent Vivier, 2020/02/25
- [PATCH v3 10/21] linux-user, s390x: remove syscall definitions for !TARGET_S390X, Laurent Vivier, 2020/02/25