From nobody Tue Feb 10 04:16:32 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1584717952; cv=none; d=zohomail.com; s=zohoarc; b=kcnXdLOl8jpy0drxdSpl/X2cakz6Zgijd9bxK1D2VlapizKONHQTRPNCGwGMNZpcNtUSfrbYdW75Tq36KIanXrTxuepRy5mQna2COM/1+MY6cZC2WPKoNIMGX5Ae6sPM9QeuIZgL25/SeloXQJEPHy5cYrwUdE/mpY2uPqqM1CE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1584717952; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=vuUc0kaRs2s/Xo3VLVmeI6V/0/oGiXFK+JQ7QZX0R8g=; b=RXFdVugG+2bQDHxzmqjQ5N1q4m7tIgvGpoGnX0ByNw+JRTRKMdMf+LTYtaPiLmzoSbtq5BL3t9hdTef7yfTbrIx8gQy0h5o0LTzjRzlfYh0YS4XiGtzBTEhE5wqcLn+KIo9RtzteX7xm8de06LAkq98UlrkNfgzdRCxgfM6gK7c= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1584717952940870.2357204278455; Fri, 20 Mar 2020 08:25:52 -0700 (PDT) Received: from localhost ([::1]:54208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFJWx-0007fx-Jo for importer@patchew.org; Fri, 20 Mar 2020 11:25:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57923) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFJVp-0005lw-D5 for qemu-devel@nongnu.org; Fri, 20 Mar 2020 11:24:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jFJVo-0007lH-85 for qemu-devel@nongnu.org; Fri, 20 Mar 2020 11:24:41 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:43261) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jFJVn-0007jU-Vb for qemu-devel@nongnu.org; Fri, 20 Mar 2020 11:24:40 -0400 Received: from localhost.localdomain ([82.252.135.106]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MG9Xu-1j3D5L1mAO-00GZAE; Fri, 20 Mar 2020 16:24:27 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PULL v4 08/32] linux-user: introduce parameters to generate syscall_nr.h Date: Fri, 20 Mar 2020 16:23:44 +0100 Message-Id: <20200320152408.182899-9-laurent@vivier.eu> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200320152408.182899-1-laurent@vivier.eu> References: <20200320152408.182899-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:KtfwIWII0JsyZB3RE613lSMz2RWmmq23/dxXxy4N+o/0yCmyw7+ 5JgSfd8IK3+QG7oTnf2rUsB8A2WDwjvitC/PADkHKqchX/o8BKPWmFc0zEndWi1kEnWbFdp tIe+WBGctSYMGZm3iRCrMf7vw2t2wk6ZPtelR3wjqPSGZ28Hm8ZP+TnZRbtnVw19sNFl0VC RqPxJZnK435ZtXl5F3drw== X-UI-Out-Filterresults: notjunk:1;V03:K0:sWIbpB1X3Gg=:djNDv5gpjuuA/goKykfNNo 7SDkB6YlCi1SNXGcbXkEKXbEzmCBNTjxm7+2AQrHo/tjtw1TWwicj82kxZD34V7EYLWTnmQqH P2clgB/PjR1R6dUEJz+gL0qxTic/rp/augGHeQto52/C1DujBQSXqH8J1xp0TvnzR6TkjUmBX pXpCqAd6leBWmdm1cY8602LL6XfqlRGe/91xphhs1xFuMvx7tLehpK1WAhXAAzh9MRo3D+lFn Nyxs5idawDbLX0ZGvgpKKG+DGGOUxIV3DrDJgf9fY7fWynMOw8oJkQ+9vzAmKN2dvw9niuGDi VgI3StPE78sdnbgNYh57iNf1oKO1Xil0umfBIejeWZXV74EvyTaFRNM66PsSZCNzUiljbSeC8 5J68/NcWD3W+dcz4+g8iRB6fPqrQc3EQSazTz1lh6dUlhkjt3LJE3deh7umkIBhPwViQK47mf EEI5H6pkr+QyJjF4fKqfuMy57aSF6WOfmCbO3q6dcV+oenKSZ/ARnuXrB9CEGN6yfVD6UQaBG NiWno7BeadWBJnvutMvMAus7jP5Wz5XfGOlx3NpBzAnOR9R8Ia8W9NyJdsF+yCOyouoAV3iPp Jnsly5hH10r3Znjd0v+HyuFYd59+6fAiuU9t69LpMY4Rc1TSwGBXoLfALerY6ILOEZmnimbnl +Bx8D2gnbGY3B5hsV9OktFgQLhhVu75mStjfVhlJlIcuvzdWEtyEoK0hFFFaOhj/qdWVw0eNH xHLXQtdRGZLpr4qBLJQ9NL+ktLz/m5kSVl2lFChx60WnWJo8wkV5OgokIouVeq5+2pw5xEPrr bEog6C0oxOpHDVmejjijDr1N7K7e2IMtwxzA2KZdt2x3ZZnpDH9oLdmhRAdFoP//SV4tbPf X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.72.192.75 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Taylor Simpson , Riku Voipio , Richard Henderson , Laurent Vivier Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Richard Henderson Reviewed-by: Taylor Simpson Message-Id: <20200310103403.3284090-2-laurent@vivier.eu> Signed-off-by: Laurent Vivier --- 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 =20 QEMU_CFLAGS+=3D-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) =20 obj-y +=3D linux-user/ obj-y +=3D 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 regenera= ted rm -f */config-devices.mak.d =20 +# 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=3D/path/to/python" @@ -7931,6 +7942,9 @@ echo "TARGET_ABI_DIR=3D$TARGET_ABI_DIR" >> $config_ta= rget_mak if [ "$HOST_VARIANT_DIR" !=3D "" ]; then echo "HOST_VARIANT_DIR=3D$HOST_VARIANT_DIR" >> $config_target_mak fi +if [ "$TARGET_SYSTBL_ABI" !=3D "" ]; then + echo "TARGET_SYSTBL_ABI=3D$TARGET_SYSTBL_ABI" >> $config_target_mak +fi =20 if supported_xen_target $target; then echo "CONFIG_XEN=3Dy" >> $config_target_mak --=20 2.25.1