From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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 List-Id: 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 -- 2.25.1