Re: [edk2-devel] [RFC] Expose HII package list via C variables

2021-08-26 Thread Andrew Fish via groups.io
rom this >> PE/COFF resource section to be UEFI conformant. So we cannot remove this >> feature from the PE/COFF loader without changes >> to the UEFI Specification. Even if changes to the UEFI Specification we >> made, we would have to continue to support this >>

Re: [edk2-devel] [RFC] Expose HII package list via C variables

2021-08-26 Thread Marvin Häuser
; l...@nuviainc.com; Kinney, Michael D ; Gao, Zhichao ; Wang, Jian J ; Wu, Hao A ; Bi, Dandan ; Dong, Eric ; Bret Barkelew ; Vitaly Cheptsov Subject: Re: [edk2-devel] [RFC] Expose HII package list via C variables On 26/08/2021 20:19, Ni, Ray wrote: 3. Saves error-prone parsing work This might be

Re: [edk2-devel] [RFC] Expose HII package list via C variables

2021-08-26 Thread Ni, Ray
Friday, August 27, 2021 2:33 AM > To: devel@edk2.groups.io; Ni, Ray > Cc: Andrew Fish ; l...@nuviainc.com; Kinney, Michael D > ; Gao, Zhichao > ; Wang, Jian J ; Wu, Hao A > ; Bi, Dandan > ; Dong, Eric ; Bret Barkelew > ; Vitaly Cheptsov > > Subject: Re: [edk2-d

Re: [edk2-devel] [RFC] Expose HII package list via C variables

2021-08-26 Thread Marvin Häuser
On 26/08/2021 20:19, Ni, Ray wrote: 3. Saves error-prone parsing work This might be the key reason? Is it theoretically possible to write a secure parsing code? Hey Ray, Yes it is, but the most secure parsing code is that which doesn't exist. I'm confident in the one I wrote for the new PE/

Re: [edk2-devel] [RFC] Expose HII package list via C variables

2021-08-26 Thread Ni, Ray
> 3. Saves error-prone parsing work This might be the key reason? Is it theoretically possible to write a secure parsing code? Thanks, Ray -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#79860): https://edk2.groups.io/g/devel/message/79

Re: [edk2-devel] [RFC] Expose HII package list via C variables

2021-08-26 Thread Marvin Häuser
ian J ; Wu, Hao A ; Bi, Dandan ; Dong, Eric ; 'Bret Barkelew' ; 'Vitaly Cheptsov' Subject: Re: [edk2-devel] [RFC] Expose HII package list via C variables Hey Tim, Interesting, do you happen to have some tool or code that performs such edits at hand to take a look at? Seem

Re: [edk2-devel] [RFC] Expose HII package list via C variables

2021-08-26 Thread Tim Lewis
x27;Gao, Zhichao' ; 'Wang, Jian J' ; 'Wu, Hao A' ; 'Bi, Dandan' ; 'Dong, Eric' ; 'Bret Barkelew' ; 'Vitaly Cheptsov' Subject: Re: [edk2-devel] [RFC] Expose HII package list via C variables Hey Tim, Interesting, do you happen to h

Re: [edk2-devel] [RFC] Expose HII package list via C variables

2021-08-26 Thread Marvin Häuser
7;Wang, Jian J' ; 'Wu, Hao A' ; 'Bi, Dandan' ; 'Dong, Eric' ; 'Bret Barkelew' ; 'Vitaly Cheptsov' Subject: Re: [edk2-devel] [RFC] Expose HII package list via C variables Hey Tim, Interesting, do you happen to have some tool or code that perfor

Re: [edk2-devel] [RFC] Expose HII package list via C variables

2021-08-26 Thread Michael D Kinney
Wu, Hao A ; Bi, > Dandan ; Dong, Eric > ; 'Bret Barkelew' ; 'Vitaly > Cheptsov' > Subject: Re: [edk2-devel] [RFC] Expose HII package list via C variables > > Hey Tim, > > Interesting, do you happen to have some tool or code that performs such > edi

Re: [edk2-devel] [RFC] Expose HII package list via C variables

2021-08-26 Thread Samer El-Haj-Mahmoud
o' ; 'Wang, Jian J' > ; 'Wu, Hao A' ; 'Bi, Dandan' > ; 'Dong, Eric' ; 'Bret Barkelew' > ; 'Vitaly Cheptsov' > > Subject: Re: [edk2-devel] [RFC] Expose HII package list via C variables > > Hey Tim, > > Interesting,

Re: [edk2-devel] [RFC] Expose HII package list via C variables

2021-08-26 Thread Marvin Häuser
ian J ; Wu, Hao A ; Bi, Dandan ; Dong, Eric ; Bret Barkelew ; Vitaly Cheptsov Subject: Re: [edk2-devel] [RFC] Expose HII package list via C variables Marvin, One constraint in this discussion is that the HII content in a PE/COFF resource section is defined in the UEFI Specification, Which

Re: [edk2-devel] [RFC] Expose HII package list via C variables

2021-08-26 Thread Tim Lewis
kelew ; Vitaly Cheptsov Subject: Re: [edk2-devel] [RFC] Expose HII package list via C variables Marvin, One constraint in this discussion is that the HII content in a PE/COFF resource section is defined in the UEFI Specification, Which means UEFI Apps and UEFI Drivers from media and option ROMs tha

Re: [edk2-devel] [RFC] Expose HII package list via C variables

2021-08-26 Thread Marvin Häuser
1:51 AM To: devel@edk2.groups.io; Kinney, Michael D Cc: devel@edk2.groups.io; Andrew Fish ; l...@nuviainc.com; Ni, Ray ; Gao, Zhichao ; Wang, Jian J ; Wu, Hao A ; Bi, Dandan ; Dong, Eric ; Bret Barkelew ; Vitaly Cheptsov Subject: Re: [edk2-devel] [RFC] Expose HII package list via C variables

Re: [edk2-devel] [RFC] Expose HII package list via C variables

2021-08-26 Thread Michael D Kinney
y, Michael D > Cc: devel@edk2.groups.io; Andrew Fish ; l...@nuviainc.com; > Ni, Ray ; Gao, Zhichao > ; Wang, Jian J ; Wu, Hao A > ; Bi, Dandan > ; Dong, Eric ; Bret Barkelew > ; Vitaly Cheptsov > > Subject: Re: [edk2-devel] [RFC] Expose HII package list via C variables

Re: [edk2-devel] [RFC] Expose HII package list via C variables

2021-08-26 Thread Marvin Häuser
Hey Mike, Thanks for your reply! Well, this switch is not well-documented. Looking now at both the generation code and the emitted code, it does not generate a package list like my code does, but separate data variables (strings and images) that cannot easily be passed to HiiDatabase as-is. H

Re: [edk2-devel] [RFC] Expose HII package list via C variables

2021-08-25 Thread Michael D Kinney
Hi Marvin, I think this feature is already there and supported. HII can either be in a global variable or in a PE/COFF resource section. The default is a global variable because HII was implemented before the PE/COFF resource section feature was added to the UEFI Specification. There is an INF [