From patchwork Tue Jan 9 10:39:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Frager, Neal" X-Patchwork-Id: 761051 Delivered-To: patch@linaro.org Received: by 2002:a5d:6e02:0:b0:337:62d3:c6d5 with SMTP id h2csp1297191wrz; Tue, 9 Jan 2024 02:40:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IEDv2HXj/MEf4GEFm1dWKiEsRk8krH0u9FA+0/oGsXikufiwEteKauAvhHuT7mv28HdKlxm X-Received: by 2002:ac8:5a93:0:b0:429:a83a:f6b8 with SMTP id c19-20020ac85a93000000b00429a83af6b8mr545350qtc.47.1704796819158; Tue, 09 Jan 2024 02:40:19 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1704796819; cv=pass; d=google.com; s=arc-20160816; b=hIVzzplHb/1wIVE28/jJfelZ6wWiV85lnaQK2Boh1V8e1qqPF8b4bQjFwT9YDyNCm7 aWgmeAemKlcDklX02zgrD8u2+rGdCrbJQgsGQcycH09thteweN910RsStRQmOOyBcCRt vRXlDEphs8mFRk24UdK1BYlAa/EUUHcURVzucTpj/4iXA4p5v2b97vjelfGmx7fflZR0 xIX3a7O5SVr2Ni1JuVZQ/GKInIdMIJ62+WjogG0yyzj+97YtG8NHsWwN6ff4HxEX7xe1 M6N979fDtKQFLbXj0vMmXDDjN/k6DNQoAsCgz8D+mgqIO3t0hFhE4pTHTDwtEn7j8MIE hSnw== 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=Ox3ljXpt3ao4+Mgc/elHbFJspDLfWoqrdwV4hzlOgAc=; fh=O5bSs6m5k85zc9Rh6ORK+kCXOPyVJoWmHUDXXiaoPRA=; b=ZXAiB9MgowmmZyQ/4/8H4Ci4h9h315Dd4Q1g85S3uMGewEpoI8QclI1ePPJZz+nFjl nRdV/jQnXbI2OlxYAx3JP3GnPFKHaeeXRW5Sd7O0xnynOtsklWbhS+EUJPvjo/llLm8F Y4G0GBF9fjV5OhG7vmy8ouqeJuOmAYuluehR5nRClmy5VLWKoHdKIeMzYPrL51syZGdO Gv01is0RdUrazVlQHixq4TJ3mIaz0yiPigP/XmfsT+d99DvjnetPhDIEv40lIuRonxih cueyTfyjuWioHV6nU1PEuFq60Vzx2hJFTITVdaN0NboV3XshAWL4i8DROMmPyh3uonxi gk9Q== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=eVcVTl8u; arc=pass (i=2); spf=pass (google.com: domain of newlib-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 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. [8.43.85.97]) by mx.google.com with ESMTPS id j3-20020ac85f83000000b00429957730dbsi1822436qta.141.2024.01.09.02.40.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 02:40:19 -0800 (PST) Received-SPF: pass (google.com: domain of newlib-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=eVcVTl8u; arc=pass (i=2); spf=pass (google.com: domain of newlib-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 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 B43193858C2F for ; Tue, 9 Jan 2024 10:40:18 +0000 (GMT) X-Original-To: newlib@sourceware.org Delivered-To: newlib@sourceware.org Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2078.outbound.protection.outlook.com [40.107.101.78]) by sourceware.org (Postfix) with ESMTPS id E807D385843E for ; Tue, 9 Jan 2024 10:40:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E807D385843E 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 E807D385843E Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.101.78 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1704796810; cv=pass; b=FKpqbSKjUhY03X5PI7APRlBuMG470uDkkcHmCKsz2fl4vSZKjNY/m+B3DygNSJ2x7WV3jMKCH95jX7Mbb6ZsoJOgET4kySLJi3NfHedVaS6XHxkt6VvDuHUcAKlR2LV6aJwgx7uA6EdcCTOGrD5PaI2YH9UIO27uNxwlugx0HoE= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1704796810; c=relaxed/simple; bh=/Q2062pFHMw37gBIyP/O8Doq5eUR60vt3Z7J/lInm0U=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=N08d45vEEZ5RoF5JiN3bfHbMmN99Iwusz9eZFEGuKNl9+zK8KSp0UtXQCl1dI1Qtmyh2vTNyfRhbPSgy/Mcnu45GvGTYPowSGa4QJFwfF5yeGzZYnVFWvUY670iQLb6dzpbGFJcUdsNPpk21TKahdVN+agyqkRwMygqODq/fAmM= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R3dUAMwFDEGBa5ZYFusFpuWLcLoGgRC1Pzp3TBcg/RXbBxiRFOaLlm7bpejqNUpKi+a/HYopXaauj1cgmYit2HmQwTFZhrz9eYpTC2jtZVAkJqex184yuRg21QEWXfyXp6MgkHqa8N8hfnBrGCvov3z+hchj9dHJJ4lkTrkgN808+M/N9MORBA4OgLaU3/rj3HFC4yxUEXbIyunnbJfLKDfuclZZ2rQ4zsk5YFIC8fxyxl/HbPLztAOsAvfpkJ0C+46yfuEBtkuQ7EMFW1pz+/54SIsKu2pbcwkYTYs3QTBK4KGCIaUpK+BZfDeeEZjHTB4nyO7j5shIJRxXT/PObw== 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=Ox3ljXpt3ao4+Mgc/elHbFJspDLfWoqrdwV4hzlOgAc=; b=F0nrUxZWr+zniYc+RTAS6eu2dKwURkXWqiFkFU5yxeeUD26cdki1zsC+ovPo6OmoEPGoS8Af7Yge9kgx0GpAEpZdghUUi7tm/ELnDQfS6CNbJEd5PBd/h1AomtXBzhqUQIijd0S7Jou4330Y6dmFP2SGMj35zvZ+Reztsbs/PevT2mO2LXQOltA/q5JexjAnboR9axaCurs2fj0dePdNQIV+d599f0BDAG58bJjPRWtoRpm8Ctmm9hUpVlhkLJrROCehgH+j83DWkIZ0PnZMSf088+K0NEwHXy/uAlcrUHVWVSguPt9vJUIS7v+WjaVLfG/Pn29Co69XJeXN8XmGIg== 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=Ox3ljXpt3ao4+Mgc/elHbFJspDLfWoqrdwV4hzlOgAc=; b=eVcVTl8uSXTGbqFSKmwVPguUmpiCRuYUtkvLc3xD7DxO5GnKAr+LR/5aHazFbyRJNPp8tC0wqrgqNCsAFZuvt+kHSO3bHgGy9a2NJmjWmPqlL/GMr4MYPJ/qH52InmWCe0RUWsB4Ptov9E0IeeNyZI5pY9TjfL6kwX7syiqCrCw= Received: from SA1P222CA0184.NAMP222.PROD.OUTLOOK.COM (2603:10b6:806:3c4::29) by CH0PR12MB8580.namprd12.prod.outlook.com (2603:10b6:610:192::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.23; Tue, 9 Jan 2024 10:40:04 +0000 Received: from SA2PEPF000015CD.namprd03.prod.outlook.com (2603:10b6:806:3c4:cafe::ab) by SA1P222CA0184.outlook.office365.com (2603:10b6:806:3c4::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.17 via Frontend Transport; Tue, 9 Jan 2024 10:40:04 +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 SA2PEPF000015CD.mail.protection.outlook.com (10.167.241.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7181.14 via Frontend Transport; Tue, 9 Jan 2024 10:40:03 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) 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; Tue, 9 Jan 2024 04:40:01 -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; Tue, 9 Jan 2024 04:39:57 -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; Tue, 9 Jan 2024 04:39:56 -0600 From: Neal Frager To: CC: , , , Neal Frager Subject: [PATCH v2 1/1] configure.ac: configurable tooldir install path Date: Tue, 9 Jan 2024 10:39:53 +0000 Message-ID: <20240109103953.1112223-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: SA2PEPF000015CD:EE_|CH0PR12MB8580:EE_ X-MS-Office365-Filtering-Correlation-Id: e25b3830-e2e8-4e85-771f-08dc10ff56e9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7sktOqm2S6vo1ULu1z2pzs8hF74y0sgObwdy1GhQaXzAjZLht/Fo5zDGZWLik29/BZQ15kWBnZBN72UCrbK3VkMI0K5oazVMATER5KAAJ834wqbKbE+npH/pqYfrvr6x4CQyWNiWfb8s/Nz9ijoA4p6pvopsKbhVOJuJMeRY0/2nEwlnBeU4KxvXkIkACtBV+UnMYuCnnQf2n3bGqo8dPDLYSkyAsAXQthFy0zEF2uvdWcnizfsbDV7heyZm1xVDif30un1p9vaGx3TZM6ohBCelz23tdHZ+wZ55Umz18IrlBx/I9Y7+GyyplnJG1TtgOPCIJtwEE6WDTOX87wzJRPe8SEEhRe7x8BqqgDQRiAujMKy1YSttYbHgg+z1BU5xZy+MxYNE/AMWuDEg1GNz9P44A8EkX36dbpO6jog00Z6aq7LKP8PLAzVeZl30px/r+OP5wmTZy7aG+yCGWcJGKJBBzGUWqut4b8E2XrLVw51DGmMSo0GHFpPATxsl/eGzuww0tYNpUn9zfKmTRxXhK6sFjzS97YkQrnrll25TDRWBhelA5/W9eONBVyYG6V4ruL+BUblO38KmGYRHMHDD7gEM1lCGXQABa0Yp3tbMKRLH5/JwmaE5CPqQIbRY2dy6mH9fhZPtVEsJQJ0ua+66by420/Hg226hh2yNR57wAT50lmkt/9O/o4IjnsYhBVBNhk/EeLCoNVVvCWt3ZDpUqyj4TzbgIpIpudSPn8GRXbpWpx2c3g4ZDDcXz3pumvkUZ8oBg+efRcrzuHV9MMoPiQ== 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)(396003)(346002)(39860400002)(376002)(136003)(230922051799003)(1800799012)(82310400011)(451199024)(64100799003)(186009)(40470700004)(46966006)(36840700001)(336012)(2616005)(1076003)(426003)(26005)(478600001)(6666004)(36860700001)(47076005)(83380400001)(5660300002)(2906002)(41300700001)(8936002)(70206006)(54906003)(6916009)(44832011)(70586007)(8676002)(4326008)(316002)(82740400003)(86362001)(36756003)(356005)(81166007)(40480700001)(40460700003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2024 10:40:03.9832 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e25b3830-e2e8-4e85-771f-08dc10ff56e9 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: SA2PEPF000015CD.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB8580 X-Spam-Status: No, score=-12.5 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 --- configure.ac | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index f1bb72100..9a01c1562 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