Hi Folks,

When using current HEAD, ifdtool exits with the error 'You may not specify more than one mode' when using the -f / --layout switch.

to reproduce:

git clone https://review.coreboot.org/coreboot.git
cd coreboot/
cd util/ifdtool/
make
./ifdtool --layout me.txt ~/coreboot.rom
You may not specify more than one mode.

usage: ./ifdtool [-vhdix?] <filename>

   -d | --dump:                       dump intel firmware descriptor
   -f | --layout <filename>           dump regions into a flashrom layout file

-- SNIP

If I run the same against a previous copy of ifdtool from coreboot 4.9, I do not get the error and the layout file is created correctly.

Is this expected? I cant seem to find anything in docs or release notes that indicate a change in ifdtool behavior regarding the -f / --layout switch

--
Kind Regards,

Simon Newton

E: Simon.newton@gmail.com