Hi Andrew,
On Tue, Nov 19, 2013 at 8:23 PM, Andrew Fish <af...@apple.com> wrote:
>
> On Nov 19, 2013, at 6:15 AM, Shivamurthy Shastri <
> shiva.linuxwo...@gmail.com> wrote:
>
> Hi,
>
> I downloaded UEFI network driver for Intel PCIE card from
> http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=EDK file
> is gig_pcie_src_4109.zip
>
> I tried to compile this for ARM platform. It appears that this code only
> compile with EDK1. I tried to compile this with EDK2 by changing INF file
> (gig_82575_edk1.inf). But, I got many compilation issues.
>
>
> This project is an example of compiling the old EDK Shell, with GCC for
> ARM.
> http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=Gcc-shell
>
> This project is obsolete, since the EDK II shell supports ARM, and GCC
> now, but it is an example for you to look at.
>
>
Thank you for sharing this example. I tried in same way but, my problem is
not solved.
> INF file I have changed is as follows:
>
>
> You need to Modify the .DSC file to support the compatibility package, not
> the INF file. If you modify the INF file you need to port the driver to
> EDKII.
>
I modified DSC file to support compatibility package. My DSC file is now
looks like below:
[Defines]
...........
[LibraryClasses.common]
............ It has other ARM and platform related libraries.
[Libraries]
#
# Libraries common to PEI and DXE
#
EdkCompatibilityPkg/Foundation/Efi/Guid/EfiGuidLib.inf
EdkCompatibilityPkg/Foundation/Framework/Guid/EdkFrameworkGuidLib.inf
EdkCompatibilityPkg/Foundation/Guid/EdkGuidLib.inf
EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/EfiCommonLib_Edk2.inf
EdkCompatibilityPkg/Foundation/Library/CustomizedDecompress/CustomizedDecompress.inf
EdkCompatibilityPkg/Foundation/Library/Dxe/Hob/HobLib.inf
#
# PEI libraries
#
EdkCompatibilityPkg/Foundation/Framework/Ppi/EdkFrameworkPpiLib.inf
EdkCompatibilityPkg/Foundation/Ppi/EdkPpiLib.inf
EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/PeiLib.inf
EdkCompatibilityPkg/Foundation/Library/Pei/Hob/PeiHobLib.inf
#
# DXE libraries
#
EdkCompatibilityPkg/Foundation/Core/Dxe/ArchProtocol/ArchProtocolLib.inf
EdkCompatibilityPkg/Foundation/Efi/Protocol/EfiProtocolLib.inf
EdkCompatibilityPkg/Foundation/Framework/Protocol/EdkFrameworkProtocolLib.inf
EdkCompatibilityPkg/Foundation/Protocol/EdkProtocolLib.inf
EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/EfiDriverLib.inf
EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/EfiRuntimeLib.inf
EdkCompatibilityPkg/Foundation/Library/Dxe/Graphics/Graphics.inf
EdkCompatibilityPkg/Foundation/Library/Dxe/EfiIfrSupportLib/EfiIfrSupportLib.inf
EdkCompatibilityPkg/Foundation/Library/Dxe/UefiEfiIfrSupportLib/UefiEfiIfrSupportLib.inf
EdkCompatibilityPkg/Foundation/Library/Dxe/Print/PrintLib.inf
EdkCompatibilityPkg/Foundation/Library/Dxe/EfiScriptLib/EfiScriptLib.inf
EdkCompatibilityPkg/Foundation/Library/Dxe/EfiUiLib/EfiUiLib.inf
#
# Print/Graphics Library consume SetupBrowser Print Protocol
#
EdkCompatibilityPkg/Foundation/Library/Dxe/PrintLite/PrintLib.inf
EdkCompatibilityPkg/Foundation/Library/Dxe/GraphicsLite/Graphics.inf
[LibraryClasses.ARM]
NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
[BuildOptions]
GCC:*_*_ARM_ARCHCC_FLAGS == -march=armv7-a -mno-unaligned-access
-mthumb -mthumb-interwork -fno-stack-protector -I$(PLATFORM_SOURCE)/Include
-DEFIARM
-DEFI_SPECIFICATION_VERSION=0x00020000
GCC:*_*_ARM_ARCHASM_FLAGS == -march=armv7-a -mthumb-interwork
-I$(PLATFORM_SOURCE)/Include
GCC:*_*_ARM_CC_FLAGS = -Os -mword-relocations -mfpu=vfp -ffixed-r8
GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
[Components.common]
..................
.................
...............
EdkCompatibilityPkg/GigUndi/gig_82575_edk1.inf {
<BuildOptions>
GCC:*_*_ARM_CC_FLAGS = -DEFIARM
-DEFI_SPECIFICATION_VERSION=0x00020000
-DPI_SPECIFICATION_VERSION=0x00009000 -DTIANO_RELEASE_VERSION=0x00080006
-DEFI_DEBUG -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings
-DSTRING_DEFINES_FILE=\"$(BASE_NAME)StrDefs.h\"
GCC:*_*_ARM_VFRPP_FLAGS = -DEFIARM
-DEFI_SPECIFICATION_VERSION=0x00020000
-DPI_SPECIFICATION_VERSION=0x00009000 -DTIANO_RELEASE_VERSION=0x00080006
-DEFI_DEBUG -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings
-DSTRING_DEFINES_FILE=\"$(BASE_NAME)StrDefs.h\"
GCC:*_*_ARM_APP_FLAGS = -DEFIARM
-DEFI_SPECIFICATION_VERSION=0x00020000
-DPI_SPECIFICATION_VERSION=0x00009000 -DTIANO_RELEASE_VERSION=0x00080006
-DEFI_DEBUG -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings
-DSTRING_DEFINES_FILE=\"$(BASE_NAME)StrDefs.h\"
GCC:*_*_ARM_PP_FLAGS = -DEFIARM
-DEFI_SPECIFICATION_VERSION=0x00020000
-DPI_SPECIFICATION_VERSION=0x00009000 -DTIANO_RELEASE_VERSION=0x00080006
-DEFI_DEBUG -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings
-DSTRING_DEFINES_FILE=\"$(BASE_NAME)StrDefs.h\"
}
Thanks,
>
> Andrew Fish
>
> [Defines]
> INF_VERSION = 0x00010005
> BASE_NAME = GigUndi
> FILE_GUID =
> feaa2e2b-53ac-4d5e-ae10-1efd5da4a2ba
> MODULE_TYPE = DXE_DRIVER
> VERSION_STRING = 1.0
>
> ENTRY_POINT = InitializeGigUNDIDriver
>
> [Sources.common]
>
> .......... all source files
>
> [Packages]
> EdkCompatibilityPkg/EdkCompatibilityPkg.dec
> MdePkg/MdePkg.dec
>
> [LibraryClasses]
> EfiDriverLib
> PrintLib
> UefiEfiIfrSupportLib
>
> [Protocols]
>
> [Depex]
>
>
> I got error :
>
> .........GigUndi/gig_82575_edk1/DEBUG/AutoGen.h:16:18 fatal error: Base.h:
> No such file or directory
> compilation terminated.
> .................
>
> --
> Thanks and Regards,
> Shiva.
> ------------------------------------------------------------------------------
> Shape the Mobile Experience: Free Subscription
> Software experts and developers: Be at the forefront of tech innovation.
> Intel(R) Software Adrenaline delivers strategic insight and game-changing
> conversations that shape the rapidly evolving mobile landscape. Sign up
> now.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk_______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
>
>
>
>
> ------------------------------------------------------------------------------
> Shape the Mobile Experience: Free Subscription
> Software experts and developers: Be at the forefront of tech innovation.
> Intel(R) Software Adrenaline delivers strategic insight and game-changing
> conversations that shape the rapidly evolving mobile landscape. Sign up
> now.
> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
>
>
--
Thanks and Regards,
Shiva.
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel