From patchwork Thu Jan 11 10:50:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neal Frager X-Patchwork-Id: 761794 Delivered-To: patch@linaro.org Received: by 2002:a5d:6e02:0:b0:337:62d3:c6d5 with SMTP id h2csp2329753wrz; Thu, 11 Jan 2024 02:52:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IGR+7N7iYzaw4b3TVnIXCp+j9PhldKVyIT6EXJaXXZtvuHj+D+nMUvpVeHjLcW97l1iB3xr X-Received: by 2002:a05:6808:178c:b0:3bb:dfe9:4424 with SMTP id bg12-20020a056808178c00b003bbdfe94424mr1215840oib.69.1704970324343; Thu, 11 Jan 2024 02:52:04 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1704970324; cv=pass; d=google.com; s=arc-20160816; b=GMC39UHTDcA6TKjceP6X3BdSBYEmBlJhjUcCou+Jdu0TDXdzY7XsuJNFEtEPiQBH0z xQ7jEV9RaZEDoNOxf65ul+GXOl/RRg9BKv8a5C+fb+UYGvCxvHhrOTOWNAwY+5/+PsNJ p0QzE3YIpGXcY81LsUOhZq8l1lw+TEAGM/lJ1LPoD2lubOsfeglQq9ioPQsp3RxVAnjU k8IjaN7x635RZXSrX5WHoOz3uGvcLpwEtZ1wO/AzDt66S0Wi9V9fGeWsKByNcuaF0XoP youdIA0sipQNTaLmwAQnSjVm5upL47stBKYL6zngkis6NNPT7VKiq+qo9xaxZwgRrCKR eCfA== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=v86mk7/MfVfI9wrQwv112lZpS8YEIvNiMRviMhZ+uuU=; fh=O5bSs6m5k85zc9Rh6ORK+kCXOPyVJoWmHUDXXiaoPRA=; b=i13+EvGU6rVIchn4nMdBrO9NCHQY2js5OO5wR3+HwJ6L2gY+RT3vrMviybNYTa/17a 8uKcfD2uxuNxwWOs3uZRbUR17WkTZrikzCMhkrLFjcB+POl+zuGn0i7X4TalDlYDxbie 0Fzb5K2XqMDXPtKrx2e9tm257MU/9u3dVbkyBACFxh+Y4MiOMQNHZzLieK6A0rni1AUg EJ897415haWAplMymoCc1X7VGfuCMFfwAv8HYl0rSSHEI33dJm+vQrLvVjzTJPoEB7GA mhlz4Xu2ryn2kLmMfSVHWHzkNggvYqINFwMYAwL2J2t4KB4AcpgUUDmM8v0qZelXGhMs cpUQ== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=EFbZUToQ; arc=pass (i=2); spf=pass (google.com: domain of newlib-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="newlib-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id q9-20020a0c9a49000000b0068063dc1d64si522892qvd.589.2024.01.11.02.52.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 02:52:04 -0800 (PST) Received-SPF: pass (google.com: domain of newlib-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=EFbZUToQ; arc=pass (i=2); spf=pass (google.com: domain of newlib-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="newlib-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E6B16386D60F for ; Thu, 11 Jan 2024 10:52:03 +0000 (GMT) X-Original-To: newlib@sourceware.org Delivered-To: newlib@sourceware.org Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2073.outbound.protection.outlook.com [40.107.220.73]) by sourceware.org (Postfix) with ESMTPS id A089F3857B93 for ; Thu, 11 Jan 2024 10:50:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A089F3857B93 Authentication-Results: sourceware.org; dmarc=fail (p=quarantine dis=none) header.from=amd.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=amd.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A089F3857B93 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.220.73 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1704970241; cv=pass; b=BeYGb0A8ZelASJ/5lFqY0wYT0E2JKjsbR+D8giEBaKwDR8w9QkdlDWmTR7ts/cKg2vSnN9bxdx0I/Lh0cI3YfCtGajGvJkM5im9oiCrZMz4T00KUwMwC1fCnbwehwuf2/hqJWiJPVYJNAeIvgohRkYWK0WfG9io1MuSHVIHZS+c= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1704970241; c=relaxed/simple; bh=WeeQPwT0BdqSXZx4obOTWskvCSlG33gmH9hqjtFOgwM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=DYiArpOW5HthcDzudgXzMMXYBMTqAqGx5mcNwGMEFxqKXzO/xsnzNn7hWr7MBHvkJcObcKdxq3EJJN3407NcMmwaB4dl1oeKm+ZVhZPfY+4VAfa4crhqINMMN3HVH3MIj4KW3leoakkilmc3obHt7HFGHcYo1CB1ZCDSD3KTv0c= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DgdL1MOB4P/Z11vgmDOnDfBQ/MMK8gYjmV1MW5jhyzZ3C+kgkoRWY2VYM3tn1lfUhHJoMJ1Amh4thCn24pJ798O7oy3ftE5RrAkIjAl3gDECoPzWMvZhzy0eZ0Uf3z2tzSXpa8LV50LblwbjxkWciczdS/Zsr5baO8UWPJFP5C3RtMQtm2PvlH7opXAm6KICMPIGs9xknRPpDfvhExyqDPY/yioOzsWGzs3KUm4DWcfsYzLTsNhZ7ChLr6RZw9/btXmmxqOGGs2chNijbB/9NZs6nyfLW9UP2/oMPnnZUL0hEr9Q4XhM97/nf/6asYj/89yZBPt7WKH56afQwNAy+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=v86mk7/MfVfI9wrQwv112lZpS8YEIvNiMRviMhZ+uuU=; b=WUdAMrp8d1sz1Ua7QAbLE+z7oDtdoIhHWO5oIkoJCH5TcBf2ZkOOOYLClCQLyopQd+bP5bNqehtkRRFnobbrYxtsFXS0tNJukDFsMFHQH8M4xjGdBepFDAl9LZc14TOLSvSgbqrHEkE46GvuCXWSBNf3lpZ/hFiy7/OcS8TlEJNt//i7D0j2q4xWSNb12RFFXgyKKZUkhJdren/pM0k01liAP+elU+P2azFNechmbQkgZuJO/b13txyO4tr4NdPWwZdSP2s9kmkbxHRxAlq7IUB3AaSs5tw+MN6Tme+HIAz5lVFaK7svunkvDYilekcQKUmLe2OGWe9RmRMu5wYOcA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=sourceware.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=v86mk7/MfVfI9wrQwv112lZpS8YEIvNiMRviMhZ+uuU=; b=EFbZUToQmNcJqc8uZ8m4v1TovZ2fI7yokUxvfGJRmloaQu2ytiv86D/foP4aZw7Q/55glB5D/yLKXUElPoB+o8lIuGqyrb043cQoQZE4bE7i462csChLsn2QKuvDfoD6NoLJMxdmiyzzQYFPzzLNKVYOa5pyAi8Mpsak7jHlPUw= Received: from BLAPR05CA0014.namprd05.prod.outlook.com (2603:10b6:208:36e::18) by CY5PR12MB6154.namprd12.prod.outlook.com (2603:10b6:930:26::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.23; Thu, 11 Jan 2024 10:50:37 +0000 Received: from BL6PEPF0001AB53.namprd02.prod.outlook.com (2603:10b6:208:36e:cafe::8e) by BLAPR05CA0014.outlook.office365.com (2603:10b6:208:36e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.14 via Frontend Transport; Thu, 11 Jan 2024 10:50:36 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by BL6PEPF0001AB53.mail.protection.outlook.com (10.167.241.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7181.14 via Frontend Transport; Thu, 11 Jan 2024 10:50:36 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Thu, 11 Jan 2024 04:50:36 -0600 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Thu, 11 Jan 2024 04:50:36 -0600 Received: from xirengwts09.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.34 via Frontend Transport; Thu, 11 Jan 2024 04:50:35 -0600 From: Neal Frager To: CC: , , , Neal Frager Subject: [PATCH v3 1/1] configure.ac: configurable tooldir install path Date: Thu, 11 Jan 2024 10:50:27 +0000 Message-ID: <20240111105027.3382376-1-neal.frager@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL6PEPF0001AB53:EE_|CY5PR12MB6154:EE_ X-MS-Office365-Filtering-Correlation-Id: 2a30b0ab-a576-41cc-366a-08dc129324e6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6TJgdzREaA3HO3Bvmd0dwWvuiP+hREQXSW6Ual6lU62NPX8gDC8wke/tXSN/2wMRudORcjxvM8Qu+6O2FKb0w9mz9mkyDovRl/qnI1x8NyWqhFkeAKpoFrPeUSS+t8smAbTVAQldbEPsZbvd6GepVZL/SAis8DU4oQdstHm6nNmssi0JYvqg1O1q3ahznnUY/oauVHglC2umkz3MSDRKAqAMT4LYzRzf6r2n0y5Pqu7gB8hmdIiLSWQfhPH4WcqC+llpzBnVqNWhmqvYVfKH+J4QvMu/sNmTqcvERM7UbuV7zGTxQBTRQiNADOghpZTEGagxkZKylPT12vznTb9rezOfAGtKwqoSmtD3WkdiNW5EZb+PH0E5A06ErXr5w8fpc9eaXPhUfUOuihCcEmNtHBgkjfy51jEZqlEFdD+xFZm1ZA2Bm3dmun+/RBSZD+F2m1DJagbXgBE/J9JYPdSh7M4Jc/3+Ue1lGWJU17rvUi1BU2RPiWctg2ZxyvY5/zcx3pxBuOOYdCkrWfgU3u/zEHxfV40hBlWEKNIxm1JNGR3F5rN/gLJ5+DHk6Bj4mRR2k9GcbWofDVFeJqmOQXVQC9jmUnihtTmJS0Amt0Cpg1IbN8X1RjpjktxYXWYn+MweqCSP5YiblhrMV1xiArT3h82ti9E4S4AC41q5POcFwyKPqW3zvXKdKOXqCXkLBcEFB6O7FzFW8UtsMix4vx+X1Hk9bwLIFUIjY2iubFRiAnSlZ3WvJTWBycqfntpAZz6VTGvsDhXa/kr6IYnRbOB4xQ== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB03.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(4636009)(396003)(346002)(136003)(376002)(39860400002)(230922051799003)(1800799012)(186009)(82310400011)(64100799003)(451199024)(36840700001)(46966006)(40470700004)(40460700003)(40480700001)(83380400001)(356005)(86362001)(41300700001)(70206006)(70586007)(36756003)(81166007)(82740400003)(36860700001)(5660300002)(47076005)(26005)(426003)(2616005)(336012)(1076003)(2906002)(6916009)(478600001)(316002)(6666004)(54906003)(8936002)(44832011)(8676002)(4326008)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2024 10:50:36.7858 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2a30b0ab-a576-41cc-366a-08dc129324e6 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL6PEPF0001AB53.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6154 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: newlib-bounces+patch=linaro.org@sourceware.org This patch is required to fix how the newlib headers are installed when using a sysroot install directory. The cross compiler expects headers to be in .../host/usr/arm-none-eabi/sysroot/usr/include/newlib.h by default newlib installed the headers into .../host/usr/arm-none-eabi/sysroot/usr/arm-none-eabi/include/newlib.h ${exec_prefix} provides the .../host/usr/arm-none-eabi/sysroot path ${target_noncanonical} provides an extra arm-none-eabi/ that must be removed. With this patch, users can specify the tooldir path that is needed. Signed-off-by: Neal Frager Co-developed-by: Chris Wardman --- V1->V2: - migrated patch to configure.ac - changed option name to --with-tooldir=PATH V2->V3; - removed quotes around ${with_tooldir} --- configure.ac | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index f1bb72100..8ca8cf9fe 100644 --- a/configure.ac +++ b/configure.ac @@ -2599,7 +2599,18 @@ esac # Some systems (e.g., one of the i386-aix systems the gas testers are # using) don't handle "\$" correctly, so don't use it here. -tooldir='${exec_prefix}'/${target_noncanonical} +AC_ARG_WITH([tooldir], + [AS_HELP_STRING([--with-tooldir=PATH], + [use given path to install target tools after build])], + [case x"$withval" in + x/*) ;; + *) + with_tooldir= + AC_MSG_WARN([argument to --with-tooldir must be an absolute path]) + ;; + esac], + [with_tooldir='${exec_prefix}'/${target_noncanonical}]) +tooldir=${with_tooldir} build_tooldir=${tooldir} # Create a .gdbinit file which runs the one in srcdir