Message ID | 20240725115932.3459266-1-tom.hochstein@oss.nxp.com |
---|---|
State | Accepted, archived |
Commit | e8177827f92e71c80c5b63453d8bbd1defbe1fbc |
Headers | show
Return-Path: <tom.hochstein@oss.nxp.com> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 079D6C3DA49 for <webhook@archiver.kernel.org>; Thu, 25 Jul 2024 11:59:57 +0000 (UTC) Received: from DU2PR03CU002.outbound.protection.outlook.com (DU2PR03CU002.outbound.protection.outlook.com [52.101.66.50]) by mx.groups.io with SMTP id smtpd.web10.34516.1721908791747403888 for <openembedded-core@lists.openembedded.org>; Thu, 25 Jul 2024 04:59:52 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@NXP1.onmicrosoft.com header.s=selector1-NXP1-onmicrosoft-com header.b=i2sPOITF; spf=pass (domain: oss.nxp.com, ip: 52.101.66.50, mailfrom: tom.hochstein@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=C1TWO4V1JEAaI0EQOmnBEfweAVmsUnncNxKjFIpAKpC53cKPJ5NtanW288aWHMgZt/zo5DaGkHYSADaKNIK3Lufw3rj00YsffdkSlS5/0kL9PzVBv4byv+jJww3Sio5xWRglKjhhpJFh5eSAPj6HF1miKWjXrjvRJss7WjjM6UPVZ+7GpR+0TgRmNBDHh+aImiRdFPKHQXCzbpBHo3HzgsSMEoNWQn5+UVH4Vxz7WKpuXqhB9Mzv1n1IjkqzyuM7zRZszkvNFtyDQhsolP8wDbvJmKAjhBcjBwf4EQ0oB9/30r+pP1rfoON8E84yYlQJ/lWugaF9SNQQtITt+//4eA== 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=3FwrDiRcmwhiqboB7dD2xC8MJxeyWqUvcYgQIsU6J4g=; b=Ry360XbNKDfiFvh54oY2lGZKX1J/YcnvcKnERjN6mUUnbdM+HTqd0VyxPy/kuEr77jc3lw6Z+sbRybFlMQCB734vy8RG+S2maoEGctRvo36DjVdD9Xes0mcbthKM/Wliasv6yBhSKhT75+4G6Cbr5wtt7a7obpft6xjsW5z4wqxkVnSsqzCV38+zDC8qDevGKCb3wrZia6fS0eTKxbfgf073kFuGQ2AEKX7ZBiMwLFXPAt8/jBvR5712BNZeIW9NzpVdviTEjL2lmg5JV8Y+7mN131+0aephyzmN2yTvZ9Ga3aSYittQwh7YViVNbPm/Yz4Yc+30tc4JHp6Aebdjdg== 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=3FwrDiRcmwhiqboB7dD2xC8MJxeyWqUvcYgQIsU6J4g=; b=i2sPOITFDmKaMSZJKd/ZlcSpD2u7bUB51dk5UGRBR2Ut9woPl40Z548oX2Szn7zWlfn3kPEO5gbCJvAe59XyYZR+X1piDbLwjaSs41lJXttfs3RiqBFHhD+9ZEc2F1JHpPhujri6euKw4I0cXuFKltxiHQfZtOchqJIhCXGleW6n/QrVGHH3/ePDeamvOjdilIEi8zDFrtr4tzgyVPdzmbqPEjlp+zzOd7c9DxtG5lJUNvqtmlh7wQJD81qB54+hr/ygbKggbOOcGpR6g434LQWV6E/N/QktpueejbjPebKGhHxTVDCRRhCjYcgYHSiGvcD7J4jSIF3bWMPInciqzg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) by DU4PR04MB10499.eurprd04.prod.outlook.com (2603:10a6:10:568::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.20; Thu, 25 Jul 2024 11:59:47 +0000 Received: from PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::51ae:5f12:9744:1abc]) by PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::51ae:5f12:9744:1abc%3]) with mapi id 15.20.7784.017; Thu, 25 Jul 2024 11:59:47 +0000 From: Tom Hochstein <tom.hochstein@oss.nxp.com> To: openembedded-core@lists.openembedded.org CC: Tom Hochstein <tom.hochstein@oss.nxp.com> Subject: [OE-core] [PATCH v3] time64.inc: Simplify GLIBC_64BIT_TIME_FLAGS usage Date: Thu, 25 Jul 2024 06:59:32 -0500 Message-ID: <20240725115932.3459266-1-tom.hochstein@oss.nxp.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-ClientProxiedBy: BYAPR06CA0023.namprd06.prod.outlook.com (2603:10b6:a03:d4::36) To PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9448:EE_|DU4PR04MB10499:EE_ X-MS-Office365-Filtering-Correlation-Id: 8715d843-7b05-4d6a-4187-08dcaca1479f 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|366016|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: jceQu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B2PWT4dZ0BD4/3ijECn35EzL574JLbSwGVZD6oBYeWFQj85VzRSHZEKmfkS1Tar0Fue+3qSuNMjntDmv0suROAaJHGXvaYWjK+jJkqHWyuB2MSzbeF1TmelTZfesjrvXyq0vd4NVVDv2U3N24vRTW8T1fpyo2TU7J/FTnmnPx/VJG0gJ4Yht1PO9cenjfdXOfShXxXWzBPx3M/gUhfb9UV+qa7QVmHHTo+3KkuMyyNgh0nSTk2UpfaqJzFjMilGFmnHirCC8hlGPDSDZPcsd6i0cDZdJ96fTRWbH4imyAr6cHczg3jSBct1Ak4ZdwG7AfbHf0HSEwIS4urhVFG2CQ0WNXgjszIBCAnw3QT5A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9448.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(366016)(376014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /jSGGVL9FiuEyt8t2RZrzUB3ho9oflQLwvqBs1xvkqyq0SaDGf/iBSEp9btaTwen+IaCB5zsI48l75I2Ere1F0ZK10oIXeeWS0ynchOKP3gYF3sfRvmb6SJQKbHi8JVFaS6HgeId91hd9MM/HlFT9gjAdb2TZSC/ZUBDf6B25Ogr+NPtqAlwRn/tKqunHadmfqrnrdy2fF7MsNXTOsAARvP7NGv/zolncJdjTjGyLzXTNUSG8uc0dyyNIlELpJ+aiqviO/o87OKkTrwLiz+eOo76f+LlYS01Zq0wK5dX5kwO2sejefliye5cAoP7a8gw1BoypnHEo5DOMWyGvl6wIO1fbitW5kHqbES8QJjfWXalhsUpI5YNLt+/Ff85Y26UTv5Cs0CFjrot+TXPZyX3M8pgSOlwYalhMoXryplA/0kx8ye48672ArbdH074JsjgZSfjbEdA9Jt6rIsrO+gT8JxLVtAEpJLf5yYy/Za8ZV8URT2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0jQmrq/jokFcR7HZF8qyU/ja X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8715d843-7b05-4d6a-4187-08dcaca1479f X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9448.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2024 11:59:47.4066 (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: a06WbQGj7iLwkAyU7rcE9yI6Y5L4n9Cw6Afo+19o7OCpgc7BfH4JEk8wd/bskptoZk6k+IZYzvSei9LRq5Mb2w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10499 List-Id: <openembedded-core.lists.openembedded.org> X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for <openembedded-core@lists.openembedded.org>; Thu, 25 Jul 2024 11:59:57 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/202497 |
Series |
[v3] time64.inc: Simplify GLIBC_64BIT_TIME_FLAGS usage
|
expand
|
diff --git a/meta/conf/distro/include/time64.inc b/meta/conf/distro/include/time64.inc index 510da11039..9d556bac16 100644 --- a/meta/conf/distro/include/time64.inc +++ b/meta/conf/distro/include/time64.inc @@ -8,10 +8,11 @@ # # Working to address those (before Y2038 rolls in) will be appreciated. -GLIBC_64BIT_TIME_FLAGS = " -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64" +GLIBC_64BIT_TIME_FLAGS = "${GLIBC_64BIT_TIME_FLAGS_WHEN_NEEDED}" # Only needed for some 32-bit architectures, some relatively newer # architectures do not need it ( e.g. riscv32 ) +GLIBC_64BIT_TIME_FLAGS_WHEN_NEEDED = " -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64" TARGET_CC_ARCH:append:arm = "${GLIBC_64BIT_TIME_FLAGS}" TARGET_CC_ARCH:append:armeb = "${GLIBC_64BIT_TIME_FLAGS}" TARGET_CC_ARCH:append:mipsarcho32 = "${GLIBC_64BIT_TIME_FLAGS}"
The implementation uses the append operator to include GLIBC_64BIT_TIME_FLAGS in TARGET_CC_ARCH, but it places the space in the GLIBC_64BIT_TIME_FLAGS assignment in order to avoid a 'spurious space' when the value is empty. 68b50d3 time64: Remove leading whitespace from GLIBC_64BIT_TIME_FLAGS The problem with this is it requires anyone wishing to assign a value to GLIBC_64BIT_TIME_FLAGS to add the leading space, otherwise this is the error: cc1: error: '-Werror=format-security-D_TIME_BITS=64': no option '-Wformat-security-D_TIME_BITS=64' Add a new constant variable to capture the value needed for the 32-bit special case, including the space. Signed-off-by: Tom Hochstein <tom.hochstein@oss.nxp.com> --- meta/conf/distro/include/time64.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)