bios_extract is a GPL tool for extracting individual modules from proprietary BIOS/UEFI images.
This utility should work on most modern UNIX-like operating systems; it has been tested on at least Linux and FreeBSD. It is very useful for extracting PCI Expansion ROMs from onboard devices, like IGP graphics, raid controllers, nic boot roms, etc, for inclusion in a coreboot image.
$ git clone http://review.coreboot.org/p/bios_extract $ cd bios_extract $ make $ sudo make install
You can view sources via cgit.
We use the same coding style as coreboot (which is basically the Linux kernel coding style).