From patchwork Thu Sep 12 01:38:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13801228 X-Patchwork-Delegate: shuah@kernel.org Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010054.outbound.protection.outlook.com [52.101.69.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F9EC53AC; Thu, 12 Sep 2024 01:30:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.54 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726104630; cv=fail; b=TOQbDbGw9oyct2Jpw+D1KOzLJniqbehUOR7v/emMpYCSWjjs1Tr/Vz5MIR3J8kfZHHdiKHqSo9BMDO8JbWKhYNZYkITyHXt7xhh0a9SnAxzN/mU2W9BDnxI4TGb79/KGLdF4FB8VrhxKgAxD5uxLRQZ0zOAUu+hY3XqkYMlsHo8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726104630; c=relaxed/simple; bh=f3617xKE0ZFw2sX8xv5B3j5h9udScE4lm/wG+pR9CHE=; h=From:To:Subject:Date:Message-Id:Content-Type:MIME-Version; b=F5B803kpDeXy/tFWfj/K1fr0xzehWSD7VwQbldTiOdBAhkJhqrXmi9RrI/WNqljKrIhvzR4oB43hSFe5Zjwy6Y0yvHHYopS0Tnu4uIazDAaZzu5zPHdKN06qG5eISjUc345JpDFHo3tkSyi5Zyrnzv4uu7WIMqogu+1sIGxTYBw= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=ejLJLxas; arc=fail smtp.client-ip=52.101.69.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="ejLJLxas" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=oDwv6pdntsx2JfgzbaZZK1MagWCGOGvuSxLfsdGsdaQCfMzTKgx1RJz16kSRhLK4KIok0F9mFNsbJ3D68B1dNW6w5V1CnhB2NSQNuamr7pcNCQ40f++H1RjNYYhq3ru0eIjVyASrIUSzY5CAi9NDdTjkW+u5VmmEVZ3DeI9n2K9iKUGU7+bFoCb3eY4FkEwcqHXKOnKEofVISOzHxn5tf8ZcCEZLAWM8FORksx/5e9hn9LwRreYzgjRd7yA+kap2R6/Rncc3LOShoRdcSAOMHaaGfhnYzGhWkBGESeitH1S8LyZGZuNvjDHYfCEfx69b30xXMcGg8i++rg2U1kxDNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=NJTmisAL4HQ8lu23GwEaA/Ts3Rlft1WGRiZdEKSNHqk=; b=gqoodwJNhaPPi0er2P7XyWyhPaTJWaHtLdHKEumDI93aJEjq3+fD+d3+yHnIT64+YyDhuH6wstOE4QDGyoOEHeXwKcvJNfCumNwcilgU5X4fbiws6TsUBirXyUu0BQkQFyPF+zVp3xaD/oOeGs86NOtpGDsWDujStTAwLVSPs3GMnFj3lRmWUtyH7LKM1+9n7gXUfoGFqDny7TCdpx4g6rGTKmR/GZYoiBY15aDgypSkIE1N/RyYZzR7r6zCl1q4Yl4jVBNu1aXvrOCeYux2eSV1gMqiOp6oARvoxYSJoVfReimH54wR5h8Qfkee7Fq6snT8tXz5cSmMNIdp9A/hPQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NJTmisAL4HQ8lu23GwEaA/Ts3Rlft1WGRiZdEKSNHqk=; b=ejLJLxasZ3hQdgjNG9XAoxfZ7X5O1g+tD+CI2atHDEaE1J1ly4wnTFXWrTkp/vX1KvJNHAg4PxWEaLPxDTBaGYHtNVBVBN/+b3/Cak3wp0DdV+XSDbULgIbe3Hp/1d2yGda+JySvUweW6JLw5keGGcw0WNyhDT1/tBuC0Jka3gAUqHfytcsSbwIBpFUMHAt1DEjl4QuR5BvP9q73udKIMJg9KHqaH5tngXomk5dAz7P899Wo5MHXgJLZWsWOCKb+1t1Yh3fCiTBrGHR+MtnPUuwQp0zbSBfEA/z9zFz9P6pE82w4q34YBR4R2Quf73xNrgDLPTliX4ArIL0itWYdsA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) by VI2PR04MB10569.eurprd04.prod.outlook.com (2603:10a6:800:273::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.18; Thu, 12 Sep 2024 01:30:24 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%6]) with mapi id 15.20.7962.016; Thu, 12 Sep 2024 01:30:24 +0000 From: "Peng Fan (OSS)" To: Thomas Renninger , Shuah Khan , "John B. Wyatt IV" , John Kacur , Peng Fan , linux-pm@vger.kernel.org (open list:CPU POWER MONITORING SUBSYSTEM), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/2] pm: cpupower: bench: print path fopen failed Date: Thu, 12 Sep 2024 09:38:44 +0800 Message-Id: <20240912013846.3058728-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 X-ClientProxiedBy: SI1PR02CA0022.apcprd02.prod.outlook.com (2603:1096:4:1f4::16) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|VI2PR04MB10569:EE_ X-MS-Office365-Filtering-Correlation-Id: 763d2ded-9fb5-4291-fe95-08dcd2ca78de X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|376014|366016|38350700014; X-Microsoft-Antispam-Message-Info: I93jpfP0QkJSwsIKBE0al2XnpMFGXjcWA0B/AdbbPwugETjW/YX6+kKpx0j/NiwSoJo53nCPw341OyEuZ5zjwsH2zfBNs8iHFCB5HdgbA+rTy+MAGub9xL29nSwEcL7+ICICAvcwmBwYjktVk5pLnJTDWJ+kwINy2CituctmP9e0gN6g5/TDy730ALaSM4hiBH/NAEKGLsS+/DqB+lMCOeOJ86i9BWIJ4LsyDzhW2fc2QZu5K9sdhyM9aXHtVDjCEI4++vgRqhTL/CbaRBaX/KaMJi1FhNYW+3IVGhye9EYxAUDGNgQL2oDxefSKywuGSF31W6ncgNAuk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VKpHbS/g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8459.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(52116014)(376014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4c8yc56kEzRFQfffpb35OSS0SvTSfzJqiUWKoUvSXxSpigL9FZm7KzeAJY5cUW7iADpM9KGU9Uh7oY9pZp3EYZeQz2xBoZuK3sDDilWtPezgHoRDuaYezRrJ1MuxHnw1aEH+ZLPHvUwb30XcAcaAN6s77iDA1nlrS+CE4gFjI59s0UKO5Y+rdzYNfEz0KSOnCNMZci0HSD3nMQh152CdEq0vn6hdvMN2l84CwnHQxfxj0Y2Qu/H+9gCPwWWSS9lgYlMaOU2Oe4BbojvehoOGsyZv4rea8GU/BykpcgP2mAoszVyew5Q82al58cDSQbk7YuMs9ULxPSdP+j8E8i/uhS4sIXsp8YyLq3V6vQwaTK9xLPu1OceoB038nPOh4uJ5XP1fDNAZ5VSRG1Epg5lyFV1Mw2NkXsSAraUxxVbIbvTaXBrbRPUq288mnnghCyjTME7Eq16aGtZ2r6MBbwqHP1Nmw4czDhuKwXBJ2UtvWBHllA2O/rNu9x0Xktf8sNhjT3yY9xywVqchSsrlZzoQxDgyJx590Y9lYldQLGBHsR+g4fO7hUVnZqdsa9p5/GBY9vh60DGTi1IlWOsr/CtrWkrdEqNEC25rgl45JxKoeeHsSUe1Bo1oqZaO85eqGOa8Zq2QE4eN+WfxPq5OsVRCDaDX34Ok9OpQjU0UnH4w6Sj5QV1E3yC7/lD27XpmczF9p14q2DAnJq5RImMZIEMOigogn1bkUJFYVRgKMTu+N6Mmyt1LWmXX7MO4f3kxD3AnnBri8Owb1lXIg9z13ezAZiC/6zo6kfxF/woMOS9R16Nwhe9INEYAloTDt8VdsEyCBuvefRxPN+Ktf9q9RttzunUDoAUwXM1s0RrUNVLLWDE9EbsupibGdY6Ck1F2jdBEbAmYM25ybsaTK851PXBH7tXbAWHkrUy+7W5g1eqUlQsGzWSTo/XHwy9C36IcyJ+KZ8jHCLm/c/VwHMc6EIE7qcM3X/vVoyqcqedqlWMfuPgyyPO4unSacNSSG4sMBcCYJruxizmTlpiPx9432JLQvlpnP88v9mD20FiZGkTfIRmwOMiwF6d420TtbfXGWArvrjJy5uP4NWQ3YArFpw/xKS2ZxEcqQrl65E2mwNgiCGkIbOHlbGbB26PK11oR6bWHds5X6rTs80zkL2SLTEjog8AbwWSXAAEdp0lEeqyIQq2P6i2O1YxREUhJhnbd8DcqAchs03O9FVL9+o/biVPD8gsG+qjjU4Fe0Wo/S83nXu3mAWydghBFThRaSXdMpp0sNvhcfXcfIbuBJQhvaQ/h5Zol2tTEp3MWsFx4jxVMZO/fxI4/wbZZjCAmdWa8JUEwP+ZLl7XIY67x0wx/9lHNKynWfaohBPeDUuv3anwm+6flxvM+mPYVhPO/LZ5MWZUBgu5aVEv6DxsBBXGp0mfwRYs/7tw2jvxDVNMduOb2rV3jnHZS/iZaJcTwu4vDGyugAorraQC6XCGFchuCKDaxdP1/G+uyoX3+Wn8QwYQuXo6prmQLjor+gxb7OTi68gELoYy1XG5eNaEQdFloRfqQiKrBYpizrIVj8giJv+OkLCb5N9Vk5C0niwolVigNR7ay X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 763d2ded-9fb5-4291-fe95-08dcd2ca78de X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2024 01:30:24.0170 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 2hN4VNs/cDgC6yhOcgwesnVInQNUg7gyl3+TDUFGmX11Ninox0eMCr31m4z6Z1e2VWafruOtLbWQh2N7ZhrTQg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI2PR04MB10569 From: Peng Fan Print out the config file path when fopen failed. It will be easy for users to know where to create the file. Signed-off-by: Peng Fan --- tools/power/cpupower/bench/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/power/cpupower/bench/parse.c b/tools/power/cpupower/bench/parse.c index e63dc11fa3a5..366b20f9ddf1 100644 --- a/tools/power/cpupower/bench/parse.c +++ b/tools/power/cpupower/bench/parse.c @@ -166,7 +166,7 @@ int prepare_config(const char *path, struct config *config) configfile = fopen(path, "r"); if (configfile == NULL) { perror("fopen"); - fprintf(stderr, "error: unable to read configfile\n"); + fprintf(stderr, "error: unable to read configfile: %s\n", path); free(config); return 1; } From patchwork Thu Sep 12 01:38:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13801229 X-Patchwork-Delegate: shuah@kernel.org Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2086.outbound.protection.outlook.com [40.107.247.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D25822BB1C; Thu, 12 Sep 2024 01:30:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.86 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726104634; cv=fail; b=Zgdf9+Y/Z+1ZVKCQAWw0slQ6bXUXcpPJ3mVNf6nSIt+8Tu3TN5Ivuyx9vFDc6XnNIOtSEyOuajZnz8McT0KV0BcPBAuuHpdq5oLr2gPCSvDAC7mwAn6O/hO9XQbP/6oG8P9Hbr7DgeJyxc7dNHDJ4YUVzAQdFwKwW4vR+7oyIdU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726104634; c=relaxed/simple; bh=oWbyq55rcMN+dGMCnTiSgszx7xXD2khepBPItvrXQe8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=fAtHXi1Dg5DFUglRmguYZtOsV0W5FeAVOJXe2asXMSUv0yfU6s+9+aFk/tPHjuxWTTSNfBiOckmdx2mc3upFmfLXmt4O3g2B9kGD7BXTF5uZbEMvuchhTARuvhFLk+esGxAONAwuybro+ZqPCJpCKpiPyKtoPL6In9dt6USRuUI= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=WUpjnsuQ; arc=fail smtp.client-ip=40.107.247.86 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="WUpjnsuQ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=I/MKkhSb4FL1FF1Z/vyeYO4OrWGF1KUGXq6DfiNp13gOmoUsBxWvvE9gAeSJGXU3hj09Fmhy9Ll1nHmTd4gXeaHxRLohN6T5s75rfQNXKYK1K2m3Mf2cstY01aXTXO5W6z/opMwfn3tmvG6rJi0QgCnJgx1c1l32W8epdF/0wRcRCPuJ9zjfVvatNVl53LUjEhBvVs91JcV59rYlflMPrzMidYEvgKUKG3pQ/NjZ2AqyPDcRmoO3QK3aZ3ROOaufL/prsTFKZoFNZwMvDLRzGqurK5h2/ii5VM21UF+xA9j5g0C6td5F+kaSWBvTiERQGUwGPjn2pHqEq7o6YAlsOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=rJQjotCYTkWH2LDuMLlgfmORa6iefUFkK6B4n/nho80=; b=bkku042dlU02FkT/136pXvoUtMgP9SvUI96b5mJ2uFFHnDBQIVqroRJULmi1WizdL+JinhvGqnFLA5Qr2//H85IMHNJjDLAah6cxS2HrfbHSH2q1vzqJ9knjR8sCK+t4ImMeM5lRQKGSY20hLfc8E6oz6ZpAdim0N1wLS1LWJsa+R6PpuuwRQaDbdpp5oty2PkovxprvgdYnENwbmtz/LjoVBYTh222c+q6hwsZMUqvvlMzsOmSbC/54eQlv4JNvHzdSoJbk0GaK1A46BkqKGfDE7EMzekxegbrhWxdC+TLSd9BVeiPx42shk85WrlXqvsMpeu4euCuTfvjly0G+OQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rJQjotCYTkWH2LDuMLlgfmORa6iefUFkK6B4n/nho80=; b=WUpjnsuQJVVGgkQyXvrs6GDJV8SwN5SiWlZEtexFWCwkWndJuSlOuvpug6Kkgugi+d4DhKeHfc08ds/1g/CTc69qo3E2z2dl5ShB6KsvH0g9ecN+WBqcsV+43aXEXjUIPRfwZIOXbS+Or5v7XDeNUfwzedQHhAGOKB3AzJdd1+N75Q2+vvEXY3YJBu+YgDctGORJerveiD270FlMWk9/vEhUz9JBcSbz3Kj1MdXSbvXFCx46qXl4r4AfVbfJ0FKJ0fcm/4GmdP9BUQPiYeWEJtjhv7OgyfED2R0te7Qccy6AkWU9W5fyM1USeUEZjCPjfWf0x1Q6D8RAfzhsFfZ9nA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) by GV1PR04MB10105.eurprd04.prod.outlook.com (2603:10a6:150:1a3::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.24; Thu, 12 Sep 2024 01:30:29 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%6]) with mapi id 15.20.7962.016; Thu, 12 Sep 2024 01:30:28 +0000 From: "Peng Fan (OSS)" To: Thomas Renninger , Shuah Khan , "John B. Wyatt IV" , John Kacur , linux-pm@vger.kernel.org (open list:CPU POWER MONITORING SUBSYSTEM), linux-kernel@vger.kernel.org (open list) Cc: Peng Fan Subject: [PATCH 2/2] pm: cpupower: Makefile: better support cross-compiling Date: Thu, 12 Sep 2024 09:38:45 +0800 Message-Id: <20240912013846.3058728-2-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20240912013846.3058728-1-peng.fan@oss.nxp.com> References: <20240912013846.3058728-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI1PR02CA0022.apcprd02.prod.outlook.com (2603:1096:4:1f4::16) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|GV1PR04MB10105:EE_ X-MS-Office365-Filtering-Correlation-Id: 5cd9f881-07e1-439b-270d-08dcd2ca7b49 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: RJ5UiDZH5s+VjB5BwiXDsVOJJ5A4NMKf9a7gq+C2IDEHnq2DIHi6ruNh4Fwf+hPxVpnt4Uldzd3Dn5PMm49+5Ast4KMKccYGOTFyu/dR0n5z8JIJHNkyOAky7qPPZFWNb9sElkklETooiHVZMcIxDKcsPfE4NmkO3hudWpnKw78StsbkVt6TDz53faSFoeGDgvrSIzKh8S1ORs3iPVMrSDfjTtnKZAaPG9El111JgWaJcPdCFihOyWOF9X47mO1datPjJ+1Swd5gMowsYcHoSTn8qe0b7S3wyMTguKml/DbzTHAMlv40Sw9ZxHTe3Vyyk+1mjssX+6feLFU1+hQIgugZ8K3DRh56fTAv1QWse3+4lmBrfHFMU0ggVmby1s+oS5YZFYgXqkSQS1p6H5DdljKBT0T6HRp4jNdxFZY9+aslMM5UWPJ8Z6WRu+u78vrrgPCgYHj137t8KDkdwCBBnmSNgW0KC0wvzxAf6PobeBBtUvD0ovom3mMMqDsMx/p9KVZay3eJWDbqH07f6xDvklaVCtHyV956atjiRmHZ5g/h2JcYJ6N9Wbmyfm4fHCu0Ad8B0IMT61yPhP1N4fTPcOHnQga+ci8HiSnwbUBrCHixf72MF+UssKBkH//aJt7rYPKQmWw6yrU3pWOel3CCi7TD/rbaosSX6O1rAVSwfTms0y1VXHpHHB3cb5wpfNDqe2sIjfP9APLPlSa65DDNQzPK1pns+Une3LZfaGwMuqBS/hOMyTyf7DnbH69c3y8Rqdog/Z0s674rzHyi/LXDCD+7itsJ2DenKtztV9zLzBBvD6cHp4c55HXfWEjvZhJANs0yTGI0A95PANqLAm2yuFD583PxWywJfrJTyaGMi+A4ePZzzOWb1TN6yuw4h47XhBKtsbq6n9FK8Cqd8t8uFDJDjgH/M/7al1UdW7tW327tH7zuLbdbVsjVqSBsmCJMLCXVBe8r+/FoFXDpfngseINy8byN1CLnl6utIPLUfan10qkf1LxBz8WkZrYXSeB2JEH7SqMf41RUys9uRl58bKfJVWhIDh977ErrRgSD8VyNrCnvpqO7q/MxTvs6FDLfaSRf/02RQC7NuL9eW7AfRjfLVEkm7uiiz8aKSHm/ZCFxM3G+TS+W1nQ21kMrdXwBBsb/nxKlJXQQQVtJbt/vfl9nsZk243a395vJL9kuQWzogq4lZxbkkOPHRELsQddmNMjWJgPXA5CpxUiqrJOAezJIoK/F6/jeCzK9GclCy5MRZU2iGPrOBCO1S6fPbLnkh24A65QKzN1tL50fL33NBwbFkxnK6TH36G8NJ0amfjrB6vowP+B6kyLfloeNGAUe2FU6XO7EDTLsLn2h2VT591JRL+1NVzEq/T3ffQE3pTYJPoC6qb8BU+Elduat1WcPf+6kLBoLmp+slgDbyez+Kg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8459.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vutKO3BY8pQFHqomGIrKQgTHwSIYvcyfIJ8ip7jqF5orkJDyvjWlF8dWP4IBH599omsnqSge+h3wUUaCb0L7J8JI3k5Uz3X25d6VGeajWIgbPYU2ICxLGaJVQE4wWc2GQFNfLnI32h1+dXvTkHMAD7cDiRjquDHRptNOUppkIRZ2BLaLcXP2N3o9iw0QAcp4RLVq5Mbmnxv7jfRaBBKcA2KVDUXY0QYQV8qzdf/mu7NDMG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raFntO+zUMLK0CLY4jM1S8NWxZZRsvYWSPlCh6S5rwmdHwSOetR0VtdpaUTF3qGxQY0nOBI6zeiGpEcdzpUGk18woh4oaJmU9+qNgef6HPvySp5bTE/lc2al1MZ2TCUnrU4aJ9/SK79lAU4v8WxZpOP/WJmmr+FH3cmIB7wSE48XSzMFHo+wznFaNN6SnKoZMh00lTa//NgJdw4UtyIXudicVMYEC9NmDl8xnhzm2Q7TNiqQLar9SYsUhcreGFyhBtPEh0KeDHTFEgpXHI9M/I5dptev X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5cd9f881-07e1-439b-270d-08dcd2ca7b49 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2024 01:30:28.1742 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: tAp2PnTiHIqEFBz3qgZG/H/dlZW82POhZf3FXVc4Kre2wpma951WMOeMzksG3B6bgMeUr7fhOufoI0Ktta2xPQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB10105 From: Peng Fan Allow overridding the envs, this will be easier to user Yocto cross-compiler toolchains to build cpupower with only two steps: source (toolchain path)/environment-setup-armv8a-poky-linux make Signed-off-by: Peng Fan --- tools/power/cpupower/Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/power/cpupower/Makefile b/tools/power/cpupower/Makefile index 6c02f401069e..e2a48af6fa2a 100644 --- a/tools/power/cpupower/Makefile +++ b/tools/power/cpupower/Makefile @@ -86,12 +86,12 @@ INSTALL_SCRIPT = ${INSTALL} -m 644 # If you are running a cross compiler, you may want to set this # to something more interesting, like "arm-linux-". If you want # to compile vs uClibc, that can be done here as well. -CROSS = #/usr/i386-linux-uclibc/usr/bin/i386-uclibc- -CC = $(CROSS)gcc -LD = $(CROSS)gcc -AR = $(CROSS)ar -STRIP = $(CROSS)strip -RANLIB = $(CROSS)ranlib +CROSS ?= #/usr/i386-linux-uclibc/usr/bin/i386-uclibc- +CC ?= $(CROSS)gcc +LD ?= $(CROSS)gcc +AR ?= $(CROSS)ar +STRIP ?= $(CROSS)strip +RANLIB ?= $(CROSS)ranlib HOSTCC = gcc MKDIR = mkdir