andreiw / UefiToolsPkg

Various useful utilities for UEFI
126 stars 39 forks source link

Hacks to allow UefiToolsPkg to build with modern edk2 #6

Closed ghost closed 6 months ago

ghost commented 6 months ago

A serial of fixes and hacks to get most of the UefiToolsPkg applications building against modern edk2.

andreiw commented 6 months ago

Thanks merged, but could you advise what's with the swab call getting commented out in dd.c?

ghost commented 6 months ago

I commented out the swab call because I didn't know how to fix it. GCC didn't like that both parameters were the same. I got an error such as:

warning: passing argument 2 to ‘restrict’-qualified parameter aliases with argument 1 [-Wrestrict]