Fix linking with libpayload
o Move flashbuses_to_text() to flashrom.c, it's not a cli function.
o Guard `!defined(HAVE_STRNLEN)`. This guard was introduced in
23e10b87 (Add a bunch of new/tested stuff and various small
changes 24) to support older BSDs. It's probably completely
broken because HAVE_STRNLEN is presumably a GNU autotools
thing. But we can't fix it without retesting these older BSDs.
Signed-off-by: Nico Huber <firstname.lastname@example.org>
Reviewed-by: Philippe Mathieu-Daudé <email@example.com>
Reviewed-by: David Hendricks <firstname.lastname@example.org>
Tested-by: build bot (Jenkins) <email@example.com>
4 files changed