From patchwork Thu Jan 11 17:07:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Frager, Neal" X-Patchwork-Id: 761863 Delivered-To: patch@linaro.org Received: by 2002:a5d:6e02:0:b0:337:62d3:c6d5 with SMTP id h2csp2504946wrz; Thu, 11 Jan 2024 09:08:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IG6mM7rg81n+Bikr+YhskGPdkyENfWYmFIY3hKuSHgdgeDkDEmWpDj0LAcXS5o0X2TfmWnf X-Received: by 2002:a05:622a:1897:b0:429:ca10:7c09 with SMTP id v23-20020a05622a189700b00429ca107c09mr58967qtc.15.1704992886491; Thu, 11 Jan 2024 09:08:06 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1704992886; cv=pass; d=google.com; s=arc-20160816; b=BBUDphzHJTh/pwBPZkddO1/HHu6Xs/m8WSRdzk8PuoJf8H25s2qEu1tJAbWWCOVIE+ 4Dx2kodDiHwat9QQwOEROkSknbCdegZk3p/K5A4K+uU0FZdDhEwoznyr4KORNRp/D4rQ KOgP7mSVVTamysjXPqMr3JJ2ojtziT/L8pFiQ048ang5jTuPPzN8FuVr+MPJnaQUDo/r AVOAY8UrMIixq02YI2ZGXZ1C8880WR4VyLHMGv989tKyPsMBmgoN6t6vzEWRUUAYHfnV xgzkAAcm++65wQAyqA1H9YlIQ9swf1Jl9NJMcbZYyh1IGlUP4Ku3bioN4wCWRBRaSo80 m7Nw== 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=+awo0eI+Okjjk5qXZLCuaAVLyy9Kzv5ILxJ3fRXHmEQ=; fh=dMMjN8OkhEbItmK/06e6vZFez8Z1bHHCGE5GZX5+7Vk=; b=cLoSREaYkqTTm65r5JMAIdhHks+dlbvT8jDs+SBn3sxvOkOHTrydiP0OP1OTx4aYEc DjU+OSHuiVvHhPkCJC1lrcQnGk1U6P4EAwedKtQLcuEQzfCKshAl4zJjVdfMcj8i2e9D u/gkzMvx0EkIac3SaQFqJNeZ9o9loB5cKiZe4I+uy9IN//IKSjWsvAwQLVlCY6LctDAj wmwUMGwL5qvU1dnEmaGZ4ckdxpLJ6SHs6bGxISVOXaC5uI3gaptF8WrUNPXVhx2MIu8k /u5Ym8WRqYix7Ve5ukuCuJg/X3H4iEeeKpJutPs/8loAlFIHQ37RQzKffBBQ91IPBb3M v0YQ== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=jAFP5I7a; 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 bb6-20020a05622a1b0600b00429c9fc07b8si254004qtb.575.2024.01.11.09.08.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 09:08:06 -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=jAFP5I7a; 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 1E962385800A for ; Thu, 11 Jan 2024 17:08:06 +0000 (GMT) X-Original-To: newlib@sourceware.org Delivered-To: newlib@sourceware.org Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2057.outbound.protection.outlook.com [40.107.100.57]) by sourceware.org (Postfix) with ESMTPS id 57D4C3858C41 for ; Thu, 11 Jan 2024 17:07:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 57D4C3858C41 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 57D4C3858C41 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.100.57 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1704992880; cv=pass; b=PXl2GU8c/8txkzFsqAQRU93rGBQlU1q9jlg3qmq82VawqKqeXNxrfVuBgu6IFPujPyRNUT/OQoqs5os8woKuz7tENTc1hxF9S/Nj923c5iHaNfoT/wnUjsXhAg8fUknkCh6H4YEWUpVjWaQzxWjpzrVbHCmnI1nPPdH0LAkjxNg= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1704992880; c=relaxed/simple; bh=t+eUngKt9AB4eKohsDJsGPbftgTPNlgAM+trDcnglIU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=XdkreEJjwPbYdStk0OWKJ3VdF/zxzf+zpRA41DVaHoI+P46OLOAOjkolz9EnIM5iPNT7YpaJ4cJOYVX2DYWMmXRfyDjEVLWkjOf9w1/Tt5tCU0HuqgSMxZ7rKeV0uT8kov31n64GhzdA+NLozwp5ZjWG+sTb/JpqhqDl5fju3lk= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dL7R12zy4oW7fzXZtpR0TaaJs77LLzS9k8bv8PtDzFQWRWSP1WPRDWJ+Llle7WBzdMxndQ0TSekg8X5BXFxKxPQX5GYrxGlZyinYgCJCJwA0ViFOgVXzStA9kqBthZNkL7EGfgAvf1Okx9rl7GnG9ftq4Pgr1WdX//vS6A5/xwHKSBuiSh/vJ4QWZBDNW4fdzLsjGBumj3CvKmeKKH7aZQYe/iTvPRaCF20GA2qLsJnrBCQA9oRFvpkIIfhL7j5Z81F8Yf1HBm2XjpOg7Bvym+cg38ndX7rxqhOnf3bNWLSwond8oIpGLw71FXsGMh/5YOF6jejy8kXRNQO39yIQ4g== 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=+awo0eI+Okjjk5qXZLCuaAVLyy9Kzv5ILxJ3fRXHmEQ=; b=DqqeN2u0c59PNx4/xEwFq4ixoz8yESEXffXrra65hMmxaDWGtyrnTZLUncfvddZ8DymLw4Yd/45hMBVfBeb0nfcx2FxFlcGxgEn7pdX97GYu4JuYmVX91MaI0BAOPzEPgcnBQa7X9Hc5v/rxtxuqR2R3FZles57XPrPa7qR6yfWo5TlA9neX0mGl7lsIxOhY/xKJt4zcMZkoJtXxEy/T4vQfz2tZAb4cSdPxqyC76iCCNnX7uZM7JTOlT+wt2Zo5gZWRKc23YcBzVwc4URNTlRRIVJwpAXfzmuXU4ZKUUOkDCMntfq+hVHqmvjmqIgfBCPrDF/25FUrVbKwCLbN/yA== 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=+awo0eI+Okjjk5qXZLCuaAVLyy9Kzv5ILxJ3fRXHmEQ=; b=jAFP5I7acRFz3H6BP0v0VUMOvkvgUTwLX/xzNT+ZOJwOd8jZJ5xIQhzy4TpNhUP0YdlpV515jMt8WsIMdWgfXPaO5213Uj7SDNf/pih0eOnyCAp6qeBJo9xBeGo04kUr2tocxRfUbK40ctvt+GScRfuaVsTRBCy9v/1ssNvmOMc= Received: from BL0PR0102CA0050.prod.exchangelabs.com (2603:10b6:208:25::27) by DS0PR12MB9398.namprd12.prod.outlook.com (2603:10b6:8:1b3::19) 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 17:07:54 +0000 Received: from BL6PEPF0001AB77.namprd02.prod.outlook.com (2603:10b6:208:25:cafe::c7) by BL0PR0102CA0050.outlook.office365.com (2603:10b6:208:25::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.21 via Frontend Transport; Thu, 11 Jan 2024 17:07:53 +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=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BL6PEPF0001AB77.mail.protection.outlook.com (10.167.242.170) 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 17:07:53 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB04.amd.com (10.181.40.145) 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 11:07:52 -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 11:07:51 -0600 From: Neal Frager To: CC: , , , , Neal Frager Subject: [PATCH v4 1/1] configure.ac: configurable tooldir install path Date: Thu, 11 Jan 2024 17:07:46 +0000 Message-ID: <20240111170746.48274-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: BL6PEPF0001AB77:EE_|DS0PR12MB9398:EE_ X-MS-Office365-Filtering-Correlation-Id: 655aefd6-9cef-409c-0e75-08dc12c7d9a2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5h/SNfbrNwhG2W/6V58r8hN5Q67m8ThlEakkSW9g7C6XDYXYeWv4DHg1NjLVgW+cDzh1933SGFSEfqRkHIoTcU5GH5W+Wuu5lE5KPv3tZSQvOUieURXZPZquhgT9nOf0AT/HYc66OznkX/bBiFhrFJ6sDkfUNrrH84yba1G9f27CAwBvNM18AnkdGHxgqNDKn6RfIALS/w1nQawEFQzQ/NCYZ8YHcqN3ZE2b2MQcjZYeBEYFxUqnBxJN08I7A0tkBn7M2HySztu7UtL0IIpKkZyxL7ZLSwacSV1HzNHTRKzN3ckYIz+CswtkyG7Ufyaqg4Og328v6cQ6ADcfCyoR8fELLZ2+465u73CT3I/KUBPDKavG4UsTReQKt0WwBOeRn27VkZHoM2MpOmY6Zp+Ro4+pmrJlxk62+AhWCgBqPB8kN6/rwOV/u559uZQXUE9XBE/KY4RiTeWKNHuWIIS5SMbDvG18oZPPvulX5LIt95KrsJ8GN+YQo74yo4ESf3CsnQuFYYGUfqqniRzWYq8l92Yf3Ta+PvP7LFEFu2CHKtnzrWGmMhOHZdju8+nkD2iWVcV1oNA16VSJ80swzNY48O+C6PejHnw997w4KNryBPHfCAAgrbzBRv3t1o992xwTyyJ8dTTZiCuA9eyvLP4jghO304LoIyT5+QXhKKzsA3MqYqr/gNMyNX0QocxD3rDm8GryVX7i4aRLXv/oxiiiE+UDl119jJRg9qk9KGOQ25c79TVekLowSGIKvG5h0yHeJkLivYkzaHzkic3BdX4QVw== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(4636009)(136003)(396003)(346002)(376002)(39860400002)(230922051799003)(82310400011)(64100799003)(1800799012)(451199024)(186009)(40470700004)(46966006)(36840700001)(83380400001)(426003)(26005)(5660300002)(6916009)(336012)(2616005)(36860700001)(82740400003)(1076003)(4326008)(8936002)(478600001)(2906002)(6666004)(44832011)(8676002)(316002)(47076005)(70586007)(70206006)(41300700001)(54906003)(356005)(36756003)(81166007)(86362001)(40480700001)(40460700003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2024 17:07:53.4617 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 655aefd6-9cef-409c-0e75-08dc12c7d9a2 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=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL6PEPF0001AB77.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB9398 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} V3->V4: - migrated case to AS_CASE - migrated AC_MSG_WARN to AC_MSG_ERROR --- configure.ac | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index f1bb72100..ae8a0f5b7 100644 --- a/configure.ac +++ b/configure.ac @@ -2599,7 +2599,16 @@ 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])], + [AS_CASE([x"$withval"], + [x/*],, + [with_tooldir=] + [AC_MSG_ERROR([argument to --with-tooldir must be an absolute path])]) + ], + [with_tooldir='${exec_prefix}'/${target_noncanonical}]) +tooldir=${with_tooldir} build_tooldir=${tooldir} # Create a .gdbinit file which runs the one in srcdir