From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR03-VE1-obe.outbound.protection.outlook.com (EUR03-VE1-obe.outbound.protection.outlook.com [40.107.5.84]) by mx.groups.io with SMTP id smtpd.web11.6441.1589946680847319864 for ; Tue, 19 May 2020 20:51:21 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@nxp1.onmicrosoft.com header.s=selector2-nxp1-onmicrosoft-com header.b=Id/JN4EN; spf=pass (domain: oss.nxp.com, ip: 40.107.5.84, mailfrom: pankaj.bansal@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AwKBgFLFIUw5xLKXsRyG4lWA/dATMCaHpu7Gr5GH/cC2hwgeSaJ5xE4mq8riL9CAk/gQek3xrTKsRT+QW51FRoxHJPZbfcv676qL8qLag5W3Xt9nGTfmMAiIs6khk+6aXlHPGtTYAfWhRDnY8sob6zXglFcwfW5Ga9jTPRIpNv+TMdEVjtO6PGK+sfpZDDRQeMEri2wRce4U+olNcB/wuyfRpc4LMKrP94TP4lKzvv9mNNu2TTTMathL2ftX9wfLrWZBLjf0nqDqGPQ09LNU7s3btMWiLeBTM01FU3Nnpg2Y2ihWs4bV1I4sb/MYIoiy0teot4vtFTgwnGZSYcuZog== 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-SenderADCheck; bh=9wP8jqFTZmoLC9pOkt6ZTWKMsF9pqvsfdpDK4yS+1m4=; b=Db5/jAbj/pQs1GYRHhKesU7WO+rqtNnDUR8JzGOR7dEJO2GSvGFCJ9Law809T0Cz9Jk15mwcfCOzmocMEcbotEw3ZMkRshrddDE8LmnhRkhLIymoy3TTA9fJBIkXbYJBfExDI5MTgQx0wR4TgZiUyFZfdllPX37as8pOlxK/hWF6BFJCrNdTZ5/rLuabggQlkyXMXaVdVe7FtMRMGcvfsF9UFohGrmthmKyKdXAzzeALV7mZyloAtgiT+oG7G/SH5O/tFLwDE795jJdJYXKIcwELhMFdcA40UtEFzOYzS3QC7ARE0GvP+Esgkrh8KTg8lqub4K0cIpHZTuxTx+CyEQ== 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=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9wP8jqFTZmoLC9pOkt6ZTWKMsF9pqvsfdpDK4yS+1m4=; b=Id/JN4ENoHD8lz8A1jueNyE5eqlovOQBeI5W5JeK4H7jAsoirKozwthjgVsAjFeYt0binvia27sOqo5UuSFQQT2WHa4jJVpgpDMUFeKVNCxRXuIUzzJQaOtmZz96K8PlfFqWlrrdHnulDN+pideEbAnD4UlQTuYhrB6AdOpWf34= Authentication-Results: nuviainc.com; dkim=none (message not signed) header.d=none;nuviainc.com; dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR04MB5933.eurprd04.prod.outlook.com (2603:10a6:803:ec::16) by VI1PR04MB5421.eurprd04.prod.outlook.com (2603:10a6:803:d5::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.20; Wed, 20 May 2020 03:51:18 +0000 Received: from VI1PR04MB5933.eurprd04.prod.outlook.com ([fe80::45c4:8846:5327:9513]) by VI1PR04MB5933.eurprd04.prod.outlook.com ([fe80::45c4:8846:5327:9513%7]) with mapi id 15.20.3000.034; Wed, 20 May 2020 03:51:18 +0000 From: "Pankaj Bansal" To: Leif Lindholm , Meenakshi Aggarwal , Michael D Kinney , devel@edk2.groups.io, Varun Sethi , Samer El-Haj-Mahmoud , Jon Nettleton , Ard Biesheuvel Subject: [PATCH edk2-platforms 3/8] Silicon/NXP: Use edk2 recommended compilation flags Date: Wed, 20 May 2020 09:19:49 +0530 Message-ID: <20200520034954.5255-4-pankaj.bansal@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200520034954.5255-1-pankaj.bansal@oss.nxp.com> References: <20200520034954.5255-1-pankaj.bansal@oss.nxp.com> X-ClientProxiedBy: SG2PR06CA0196.apcprd06.prod.outlook.com (2603:1096:4:1::28) To VI1PR04MB5933.eurprd04.prod.outlook.com (2603:10a6:803:ec::16) Return-Path: pankaj.bansal@oss.nxp.com MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from uefi-workstation.ap.freescale.net (92.120.0.69) by SG2PR06CA0196.apcprd06.prod.outlook.com (2603:1096:4:1::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23 via Frontend Transport; Wed, 20 May 2020 03:51:15 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [92.120.0.69] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 96dacb2d-a44a-4260-b83c-08d7fc710d23 X-MS-TrafficTypeDiagnostic: VI1PR04MB5421: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2331; X-Forefront-PRVS: 04097B7F7F X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BS3qvYQM8pGqRgFlOaNKd8SQxRz9HKeWYqnJejRUTC7DNFeK2n1V3ohdq/4+zWwHzvoo6KKbdyh1himAxcq2xW+WVfid/PsKwRHFjwBzvHATXzBkAtZnPeHeNRIj7imJyGHfd6YzI8Q/wmHx6eAADrc4vIdNm2pGZ/phPq5zy7BfMSAhzoShg2Fk7cAiwl3ey9N/Y4HTiu57oldrCnWEiLjx7GaplHOkunKjlV7rIqX+3Slz0undLM9+dZx0QtYaofILDaluMfPT51qrXduAmWUhBTC5+nVe3SW7RoAFhrimP6LI0sKL5+3f66AcrjmPA7T/TetXHSSG3tbj24LwxktvOy5/ujkw9sGsJpt96YR4ifp+J4LC4m/4HHf5lBu3eIJu9oaUD5P7JX+CVLhqARLhcehtofbGd6+XnggTn6HQLf3oKucnUgZNAZ8qj8IO X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5933.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(346002)(136003)(376002)(366004)(39860400002)(396003)(110136005)(26005)(86362001)(6666004)(478600001)(316002)(2906002)(2616005)(5660300002)(4744005)(1076003)(956004)(6506007)(8936002)(6512007)(6486002)(52116002)(186003)(8676002)(66556008)(66946007)(44832011)(16526019)(66476007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: tmFDH5f67q0ui0O2X6PPese4TjQYNjmUyUtDbXn52BtR4Yt+YrCWP80nuIFuon+iGPP2BWSLeWxuzapVcvNu2N+tbz9p7RsPJEoXXMsLyERqhAguknkIO9LloWiR3ywy3/Kp4kiKz3R0ddQHl0suPyu9CsbmJ3e37nOhfOKor7WTPDNj+79Tk9VlwmN7RYcbFLZ7yys5tShKNyH0Wmi1ylfOsKXt/7O303vgkfb3LkhTSGzwBZ0XKXQtwS7wCaGQMi2LOb5DXAuXaTE77I8ZL586k8Dxi6WCx+999weeO/868N2aXtkhBRQHtmFThTu2z36c7mtD5Mix2VdVHlw20yuo724GKywvyuAH5VBZ4e5m8Xn9A8mTiaMS0m+QO5izpx8RZrXGdsFfzbT0IBL3rp5TmAYgBqFyfelNLzcrxKYrECu3ppLy/k2vMzZZKESW6cB+dQ/0tPSBFvaezhGfhjSGZRJEfgNvhVKKvXwW5Ns= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 96dacb2d-a44a-4260-b83c-08d7fc710d23 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2020 03:51:18.1261 (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: Y+ILKF/3SbLEjV7O/BJuGvyirW0N50jLujeh1R3VeimPwj1gL6w3wmVxwusnL1sf/Qovzb00WDkOnQRggnnI2w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5421 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain From: Pankaj Bansal edk2 recommends to use MDEPKG_NDEBUG for release builds and to use DISABLE_NEW_DEPRECATED_INTERFACES for all new platforms. Therefore, enable these flags for NXP platforms as well Signed-off-by: Pankaj Bansal --- Silicon/NXP/NxpQoriqLs.dsc.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Silicon/NXP/NxpQoriqLs.dsc.inc b/Silicon/NXP/NxpQoriqLs.dsc.in= c index 12e2b89fac58..ee639d552483 100644 --- a/Silicon/NXP/NxpQoriqLs.dsc.inc +++ b/Silicon/NXP/NxpQoriqLs.dsc.inc @@ -173,7 +173,12 @@ NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf =20 [BuildOptions] - RVCT:*_*_ARM_PLATFORM_FLAGS =3D=3D --cpu cortex-a9 + GCC:RELEASE_*_*_CC_FLAGS =3D -DMDEPKG_NDEBUG + + # + # Disable deprecated APIs. + # + GCC:*_*_*_CC_FLAGS =3D -DDISABLE_NEW_DEPRECATED_INTERFACES =20 [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER] GCC:*_*_ARM_DLINK_FLAGS =3D -z common-page-size=3D0x1000 --=20 2.17.1