]> git.proxmox.com Git - mirror_edk2.git/commitdiff
EmbeddedPkg/NorFlashInfoLib: convert to BASE library
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 2 Jan 2019 13:00:44 +0000 (14:00 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 16 Jan 2019 20:37:10 +0000 (21:37 +0100)
The library's MODULE_TYPE and the module type restrictions it
defines are needlessly strict. Just change the library to BASE
type and drop the restrictions entirely. Also, drop a bogus
library dependency on DxeServicesLib.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
EmbeddedPkg/Library/NorFlashInfoLib/NorFlashInfoLib.inf

index b4b33247fa5286e7df9e9c55239d0c9880fbf7af..ee207ae7e9d7945c837f22ae792299d78756a9f9 100644 (file)
@@ -16,9 +16,9 @@
   INF_VERSION                    = 0x00010019\r
   BASE_NAME                      = NorFlashInfoLib\r
   FILE_GUID                      = 6b639c7e-9b53-4e9f-89a3-2e711729709c\r
-  MODULE_TYPE                    = DXE_DRIVER\r
+  MODULE_TYPE                    = BASE\r
   VERSION_STRING                 = 1.0\r
-  LIBRARY_CLASS                  = NorFlashInfoLib|DXE_DRIVER DXE_RUNTIME_DRIVER UEFI_APPLICATION\r
+  LIBRARY_CLASS                  = NorFlashInfoLib\r
 \r
 [Sources]\r
   NorFlashInfoLib.c\r
@@ -30,5 +30,4 @@
 [LibraryClasses]\r
   BaseLib\r
   DebugLib\r
-  DxeServicesLib\r
   MemoryAllocationLib\r