From nobody Thu Nov 13 20:42:02 2025 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=1582634159; cv=none; d=zohomail.com; s=zohoarc; b=dZVOFCIcFcnWgYlIY3tvBat4m9XynGmtCOBEhnzj9TVMOufPLz8Dm94FioZ6LFrugRKnq8dyKEywkrXd7CA3n7EVV/bwdRyK3kzElZte19DzjO7anIiYey0cQv2AO9O8YYqmXRtE2InpgVJH6L6KA4WebU80NZO0bGrHQKo4ylw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582634159; 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=eqImCodcoGc38O13GKWOuh0A91hL3G7IjY1JM0sHI7M=; b=M7CRh6EwgQgY5y0tG37a2LdjxMyzJgwAejeOlVKja4KR2UaI+Fxku2dGxlPneGhABxQs2KGM0kthRyRnEIVeoRveeIOn7+EqLK+8eGb0NhtsBa+IH/NIHWhmxR7QDu5Xdau9byqjGo+j+4mbR4taTDqJx9/gP3cvBELk8eH3sfg= 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 1582634159433285.0279936691678; Tue, 25 Feb 2020 04:35:59 -0800 (PST) Received: from localhost ([::1]:54312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6ZRO-00060j-He for importer@patchew.org; Tue, 25 Feb 2020 07:35:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54063) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6Z8i-0002LF-L5 for qemu-devel@nongnu.org; Tue, 25 Feb 2020 07:16:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6Z8e-00019d-TU for qemu-devel@nongnu.org; Tue, 25 Feb 2020 07:16:40 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:37557) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j6Z8e-00017K-KV; Tue, 25 Feb 2020 07:16:36 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MWz4j-1ivO5B1Ckj-00XMhb; Tue, 25 Feb 2020 13:16:00 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PATCH v3 01/21] linux-user: introduce parameters to generate syscall_nr.h Date: Tue, 25 Feb 2020 13:15:33 +0100 Message-Id: <20200225121553.2191597-2-laurent@vivier.eu> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200225121553.2191597-1-laurent@vivier.eu> References: <20200225121553.2191597-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:QSCc3TddwX3lly3KukqNvrBIJJMeoEt8mHTWB41vO9P0kwdnTaD Rvof5GsoqtLMH+SEyfnfiuvB34iTpsNM056PQS6yOO1HmhkMf8NQCkmmpCRxvoyavaov7Z8 7xWkdl7DzyxdhMgd3T3LbuNz+Bbjqu5XCk4VX2En8yo3phvFIXrNPg7WDbSI5Ggs2SuPJn0 cKy8QyvaOVZVzx3phcRtg== X-UI-Out-Filterresults: notjunk:1;V03:K0:40Go5ricSUU=:QUO7WR3fuGWny/tHWAbbLI GM6/ZXaemgvDoGi2NXfaMeuVfmE027ZRXlrZ+41FetwkKeNjGmpVkdUZPfB8D8HQB+xifB7GR G+JtIC1j+z+NHFaoZlSs4pFBnTJa3zOc+78WoUbErNLGWLPwvUF3qi9I9M3VrVJJtindxRYXR /kdv0Z9BDvK3TawWbWfG/7JYRcNG9IQ2tKr6RmDpAOK24rkb2JOBBukKZKu/AS9mLKBM9Bis0 J3WBDx9W+8YXVBX10AOtdKLhZ4TKtJiKlQPdixAhP+pmaZ+clXQIjFxhkDJGlLlR6hMh23cGk dKnecA1yQgmRYBjcgFXSsBzh4wzEL8FdoftDs+iP2TvpDzaJvdw3hk2bvLmjfPM22f3aPsFfT pqH6gpxifZNThhxfZGth0/EevEPRSfNTRjrITS99zZrRsY4B72BaEr4asxSX4XsXrB1mdnhRH W7acoQcrwvGLyn9Mrrx9Kj5upCpFuQeg+OzQfQGIBeQf5m9e+BUJsbLfTZk8H93N37ywOoKUA 6odt7bVL7VzVXQLuTb/pBhgegcLJMat+nZ/hPqw+lt1Hb8GZadFDyQIm+X84iTIfJHh584fUe KjMa+8qRBn/Qh0seHFUDi1j4VXz92Qt3ZcSezPlgOrns+mkhamC6bnF4XyfUaFIENqFcLQyqH sa1O68HZckuF5SpkHre+6dXzd7zJ4J/gqkDkoM3wpvvB5BBIC+DX6G1FHKDkyy3k0ozlZA0oS IqLnyY3rfhn91O5UlQ7gXsw9ljpnsFj4Vh+6gFiZVWKQzBEwCFWYP6ucDRpnVQ55//gRRWaTB zebYyvJDHo0voQkMbNiVghqxYbUrnT/AG/HMjVZsTmpEOgr+azT6wHNzrBCn9mey62WO+fD X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.126.134 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: Riku Voipio , Cornelia Huck , Laurent Vivier , qemu-s390x@nongnu.org, Aleksandar Markovic , Aleksandar Rikalo , Aurelien Jarno 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 --- 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 =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 d57261e3ad0c..c94161ced84f 100755 --- a/configure +++ b/configure @@ -1855,6 +1855,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" @@ -7849,6 +7860,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.24.1