Discussion:
[edk2] Compilation issue with FatPkg
Meenakshi Aggarwal
2015-06-22 10:44:35 UTC
Permalink
Hi,


I am trying to integrate FatPkg (git clone git://git.code.sf.net/p/tianocore/edk2-FatPkg tianocore-edk2-FatPkg) with my UEFI code.

For this I have made following changes in my dsc file:

[LibraryClasses.common]
+ PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
+ PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
+ PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf


[Components.common]
#
# FAT filesystem + GPT/MBR partitioning
#
+ FatPkg/EnhancedFatDxe/Fat.inf
+ FatPkg/FatPei/FatPei.inf
MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf


On building this I am facing below error:

/proj/nmgsw_be/users/b46476/code/UEFI/ls1043a-uefi/LS1043aRdbPkg/LS1043aRdbPkgXipBoot.dsc(...): error 1001: Module type [PEIM] is not supported by library instance [/proj/nmgsw_be/users/b46476/code/UEFI/ls1043a-uefi/MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf]
consumed by [/proj/nmgsw_be/users/b46476/code/UEFI/ls1043a-uefi/FatPkg/FatPei/FatPei.inf]


Will modifying MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf file to support PEIM is correct?


Kindly guide.


Thanks & regards
Meenakshi Aggarwal
Meenakshi Aggarwal
2015-06-22 11:22:15 UTC
Permalink
Hi,

On adding below section:

[LibraryClasses.common.PEIM]
PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf


In my .dsc file, compilation succeeds :)


Thanks
Meenakshi

From: Meenakshi Aggarwal [mailto:***@freescale.com]
Sent: Monday, June 22, 2015 4:15 PM
To: edk2-***@lists.sourceforge.net
Subject: [edk2] Compilation issue with FatPkg

Hi,


I am trying to integrate FatPkg (git clone git://git.code.sf.net/p/tianocore/edk2-FatPkg tianocore-edk2-FatPkg) with my UEFI code.

For this I have made following changes in my dsc file:

[LibraryClasses.common]
+ PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
+ PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
+ PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf


[Components.common]
#
# FAT filesystem + GPT/MBR partitioning
#
+ FatPkg/EnhancedFatDxe/Fat.inf
+ FatPkg/FatPei/FatPei.inf
MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf


On building this I am facing below error:

/proj/nmgsw_be/users/b46476/code/UEFI/ls1043a-uefi/LS1043aRdbPkg/LS1043aRdbPkgXipBoot.dsc(...): error 1001: Module type [PEIM] is not supported by library instance [/proj/nmgsw_be/users/b46476/code/UEFI/ls1043a-uefi/MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf]
consumed by [/proj/nmgsw_be/users/b46476/code/UEFI/ls1043a-uefi/FatPkg/FatPei/FatPei.inf]


Will modifying MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf file to support PEIM is correct?


Kindly guide.


Thanks & regards
Meenakshi Aggarwal

Loading...