So would it be correct to edit it this way to achieve both modes of IA32 &
64:
FindTableAt((void *)((UINT32) /*UINTN64 */ ((struct cb_forward
*)rec)->forward));
Well I have another important issue.I need to add seabios for csm
(prepared for building) support and enable the secure boot option. Thus
while adding " -D CSM_ENABLE=TRUE " to the Tiano build line I need to add
the second macro "SECURE_BOOT_ENABLE=TRUE". Are the following commands
intact?
cd $(Sandbox)/CryptoPkg/Library/OpensslLib/openssl-0.9.8w
patch -p0 -i ../EDKII_openssl-0.9.8w.patch
cd ..
./install.sh ( adding secure boot option )
build -a IA32 X64 -p corebootPkg/corebootPkg.dsc -t GCC46 -D
SECURE_BOOT_ENABLE=TRUE CSM_ENABLE=TRUE
Frank
On Thu, Sep 12, 2013 at 7:41 AM, Andrew Fish <[email protected]> wrote:
>
>
> Sent from my iPhone
>
> On Sep 11, 2013, at 11:37 PM, Anthony Ross <[email protected]>
> wrote:
>
> Andrew
>
> Thanks mein it worked successfully. well I built it just editing the
> Memdetect.c code in the PlatformPie from
> FindTableAt((void *)((struct cb_forward *)rec)->forward);
> to
> FindTableAt((void *)((UINT32)((struct cb_forward *)rec)->forward)); and
> the casting was successful. This also
>
> generated the FV I needed. By the way how do I cast UINTN to acquire both
> IA32 & 64 modes.
>
>
> Change the UINT32 cast that you added to UINTN to make the code portable.
> UINTN is the size of a pointer.
>
> Frank.
>
>
>
>
>
> On Wed, Sep 11, 2013 at 8:37 PM, Andrew Fish <[email protected]> wrote:
>
>>
>>
>> Sent from my iPhone
>>
>> On Sep 11, 2013, at 6:41 AM, Anthony Ross <[email protected]>
>> wrote:
>>
>> Hello one and all
>> I have been working on building the Coreboot Package from EDK 2 source
>> code in Ubuntu 12.04 but it has been failing repeatedly. Well earlier after
>> setting up the EDK 2 environment and entering it (edksetup.sh) the
>> MdeModule package got successfully built with no errors. But getting to the
>> Corebootpkg it seems to end up with errors. The commands I entered in
>> building the the Package were:
>>
>> root@XXXX-desktop:/usr/local/src/edk2-coreboot-pkg # make -C Basetools
>>
>> root@XXXX-desktop:/usr/local/src/edk2-coreboot-pkg# . edksetup.sh
>>
>> root@XXXX-desktop:/usr/local/src/edk2-coreboot-pkg# build -a IA32 -p
>> corebootPkg/corebootPkg.dsc -t GCC46
>>
>> At the end of the build process these are the errors I faced:
>>
>> /usr/local/src/edk2-coreboot-pkg/corebootPkg/PlatformPei/MemDetect.c:97:19:
>> error: cast to pointer from integer of different size
>> [-Werror=int-to-pointer-cast]
>> cc1: all warnings being treated as errors
>> make: ****
>>
>>
>> This is a warning (set to error) in the CoreBoot code. Most likely a int
>> is getting cast to a pointer. This can be a portability issue when code is
>> ported to 64-bits, and that is why the compiler warns. These warnings are
>> usually fixed by casting to UINTN prior to casting to a pointer.
>>
>> [/usr/local/src/edk2corebootpkg/Build/corebootIA32/DEBUG_GCC46/IA32/corebootPkg/PlatformPei/PlatformPei/OUTPUT/MemDete
>> ct.obj] Error 1
>> build.py...
>> : error 7000: Failed to execute command
>> make tbuild
>> [/usr/local/src/edk2-coreboot-pkg/Build/corebootIA32/DEBUG_GCC46/IA32/corebootPkg/PlatformPei/PlatformPei]
>> build.py...
>> : error F002: Failed to build module
>>
>> /usr/local/src/edk2-coreboot-pkg/corebootPkg/PlatformPei/PlatformPei.inf
>> [IA32, GCC46, DEBUG]
>> Failed -
>> Build end time: 12:31:31, Sept.09 2013
>> Build total time: 00:01:27
>>
>> Similarly how do I build a FVIMAGE & an FDFFILE and finally....... get
>> the Package built successfully.
>>
>> Any help would be greatly appreciated and honored.....
>>
>> Frank.
>>
>>
>> ------------------------------------------------------------------------------
>> How ServiceNow helps IT people transform IT departments:
>> 1. Consolidate legacy IT systems to a single system of record for IT
>> 2. Standardize and globalize service processes across IT
>> 3. Implement zero-touch automation to replace manual, redundant tasks
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
>>
>> _______________________________________________
>> edk2-buildtools-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/edk2-buildtools-devel
>>
>>
>
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
edk2-buildtools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-buildtools-devel