[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 1/6] linux-user, configure: fix (again) syscall_nr.h dependencies
From: |
Laurent Vivier |
Subject: |
[PULL 1/6] linux-user, configure: fix (again) syscall_nr.h dependencies cleanup |
Date: |
Thu, 26 Mar 2020 08:23:47 +0100 |
This patch fixes two problems:
- it cleanups linux-user variants (for instance ppc64-linux-user
and ppc64le-linux-user)
- it removes the .o file when it removes the .d file, otherwise the .o
file is never updated
Fixes: 5f29856b852d ("linux-user, configure: improve syscall_nr.h dependencies
checking")
Fixes: 4d6a835dea47 ("linux-user: introduce parameters to generate
syscall_nr.h")
Signed-off-by: Laurent Vivier <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Message-Id: <address@hidden>
---
configure | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/configure b/configure
index da09c3589572..89fe881dd46f 100755
--- a/configure
+++ b/configure
@@ -1910,9 +1910,11 @@ for arch in alpha hppa m68k xtensa sh4 microblaze arm
ppc s390x sparc sparc64 \
# 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
- test -d ${arch}-linux-user && find ${arch}-linux-user -type f -name "*.d" \
- -exec grep -q "${source_path}/linux-user/${arch}/syscall_nr.h" {} \; \
- -exec rm {} \;
+ for target in ${arch}*-linux-user ; do
+ test -d "${target}" && find "${target}" -type f -name "*.d" \
+ -exec grep -q "${source_path}/linux-user/${arch}/syscall_nr.h" {}
\; \
+ -print | while read file ; do rm "${file}" "${file%.d}.o" ; done
+ done
done
if test -z "$python"
--
2.25.1
- [PULL 0/6] Linux user for 5.0 patches, Laurent Vivier, 2020/03/26
- [PULL 1/6] linux-user, configure: fix (again) syscall_nr.h dependencies cleanup,
Laurent Vivier <=
- [PULL 5/6] linux-user: Add x86_64 vsyscall page to /proc/self/maps, Laurent Vivier, 2020/03/26
- [PULL 6/6] linux-user: Flush out implementation of gettimeofday, Laurent Vivier, 2020/03/26
- [PULL 4/6] linux-user/i386: Emulate x86_64 vsyscalls, Laurent Vivier, 2020/03/26
- [PULL 3/6] linux-user/i386: Split out gen_signal, Laurent Vivier, 2020/03/26
- [PULL 2/6] target/i386: Renumber EXCP_SYSCALL, Laurent Vivier, 2020/03/26
- Re: [PULL 0/6] Linux user for 5.0 patches, Peter Maydell, 2020/03/26