From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 26DF121CE7471 for ; Thu, 20 Jul 2017 10:56:40 -0700 (PDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jul 2017 10:58:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,384,1496127600"; d="scan'208";a="1197714790" Received: from orsmsx109.amr.corp.intel.com ([10.22.240.7]) by fmsmga002.fm.intel.com with ESMTP; 20 Jul 2017 10:58:29 -0700 Received: from orsmsx151.amr.corp.intel.com (10.22.226.38) by ORSMSX109.amr.corp.intel.com (10.22.240.7) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 20 Jul 2017 10:56:51 -0700 Received: from orsmsx113.amr.corp.intel.com ([169.254.9.9]) by ORSMSX151.amr.corp.intel.com ([169.254.7.140]) with mapi id 14.03.0319.002; Thu, 20 Jul 2017 10:56:50 -0700 From: "Kinney, Michael D" To: Tim Lewis , "edk2-devel@lists.01.org" , "Kinney, Michael D" Thread-Topic: Using NULL| style library linkable in EDK2 Thread-Index: AdMBdQW/ajMT99Y2Rv2C1SL0YNQE3QAC0IRg Date: Thu, 20 Jul 2017 17:56:51 +0000 Message-ID: References: <7236196A5DF6C040855A6D96F556A53F61597E@msmail.insydesw.com.tw> In-Reply-To: <7236196A5DF6C040855A6D96F556A53F61597E@msmail.insydesw.com.tw> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [10.22.254.139] MIME-Version: 1.0 Subject: Re: Using NULL| style library linkable in EDK2 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jul 2017 17:56:40 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Tim, You are correct. The use of NULL lib class in [LibrrayClass] section appears to have been functional since at least 2010 when it was added to the BeagleBoardPkg.dsc file. https://github.com/tianocore/edk2/commit/a957d4a7810e3bf1c95e9bb30d83271e40= 7093a0 Though this specific use case is for intrinsic libs that need to be unconditionally linked to all ARM modules, the EDK II build feature is not limited to intrinsic libs. I think an intrinsic lib is just a good example use of this feature. Can you please enter a Bugzilla issue against the specs that have these incorrect statements? Thanks, Mike > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On > Behalf Of Tim Lewis > Sent: Thursday, July 20, 2017 9:30 AM > To: edk2-devel@lists.01.org > Subject: [edk2] Using NULL| style library linkable in EDK2 >=20 > Per the DSC specification (section 2.7), it is not legal to use a > NULL| in the LIbraryClasses section. >=20 > The reserved library class keyword, NULL is not permitted in any > of the [LibraryClasses] > sections. The NULL Library class keyword is only permitted within > the [Components] section's > INF file subsection. > However, it appears that this exact construct is not only used, > but required for Compiler Intrinsic libraries (such as used in > the ARM build in ArmPkg.dsc). >=20 > So I suggest that this line in the specification be modified to > state "Except for compiler intrinsic libraries, the..." >=20 > Thanks, >=20 > Tim Lewis > CTO, Insyde Software > www.insyde.com >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel