firmware-utils: bcm4908img: support reading from stdin
authorRafał Miłecki <rafal@milecki.pl>
Sun, 4 Apr 2021 12:53:00 +0000 (14:53 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 8 Apr 2021 11:16:11 +0000 (13:16 +0200)
commit6f6da65a8d0b68d34b08e5ad728f265557ec9ade
tree03dba91821f0512eb02140d48aeeebdea36215ff
parentc251ec739f67e75a3ed25ad7c4a9478cd1ff4454
firmware-utils: bcm4908img: support reading from stdin

1. Don't allow pipe stdin as we need to fseek()
2. Don't alow TTY as it doesn't make sense for binary input

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit d533b27bc09eb5323a05ed44589235a86edcda0d)
tools/firmware-utils/src/bcm4908img.c