andreiw / UefiToolsPkg

Various useful utilities for UEFI
116 stars 40 forks source link

Hacks to allow UefiToolsPkg to build with modern edk2 #6

Closed bcran closed 1 month ago

bcran commented 1 month ago

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

andreiw commented 1 month ago

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

bcran commented 1 month 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]