coreboot/util
Martin Roth 59cfbec004 UPSTREAM: util/amdfwtool: unify return values, verify the file open
- Return an error if the specified file could not be opened. To do this
cleanly, the return value was added.
- Since there's now a unified return value, use it where it makes sense.
- Don't return an error from --help.  If you've asked for usage, it's
not an error.

BUG=None
BRANCH=None
TEST=None

Signed-off-by: Martin Roth <martinroth@chromium.org>
Reviewed-on: https://review.coreboot.org/17324
Tested-by: build bot (Jenkins)
Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>

Change-Id: I7c712d1e1927c2d4957b044b87ad26475b7a0e3b
Reviewed-on: https://chromium-review.googlesource.com/410095
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-11-10 18:32:02 -08:00
..
abuild
acpi
amdfwtool UPSTREAM: util/amdfwtool: unify return values, verify the file open 2016-11-10 18:32:02 -08:00
amdtools
archive
arm_boot_tools/mksunxiboot
autoport
bimgtool
board_status
broadcom
cbfstool UPSTREAM: cbfstool: Fix typo in help text 2016-10-18 22:15:17 -07:00
cbmem UPSTREAM: cbmem: Exit with an errorlevel of 0 after printing help 2016-09-15 13:41:18 -07:00
checklist
chromeos
crossgcc UPSTREAM: crossgcc: Add Dockerfile 2016-09-28 05:49:22 -07:00
docker UPSTREAM: util/docker: Update docker files for coreboot-sdk & jenkins builders 2016-08-19 14:19:49 -07:00
dtd_parser
ectool
exynos
futility
fuzz-tests
genbuild_h
genprof
gitconfig UPSTREAM: Rename and move util/gitconfig/rebase.sh 2016-10-25 14:46:55 -07:00
ifdfake
ifdtool UPSTREAM: ifdtool: Add option to specify platform (-p) quirks 2016-11-08 23:24:23 -08:00
intelmetool
inteltool UPSTREAM: util/inteltool: Remove unnecessary whitespace 2016-10-24 23:30:50 -07:00
intelvbttool
ipqheader
k8resdump
kconfig
lint UPSTREAM: util/lint/lint: Show lint script output as it's running 2016-10-29 15:16:30 -07:00
marvell
mma
msrtool UPSTREAM: util/msrtool: Use tabs for indents 2016-10-19 14:06:44 -07:00
mtkheader
nvidia
nvramtool
optionlist
post
release UPSTREAM: util/release/build-release: Update tar command 2016-10-11 14:31:59 -07:00
riscvtools UPSTREAM: RISCV: change make-spike-elf to use the coreboot toolchain. 2016-10-18 22:14:47 -07:00
rockchip
romcc
sconfig
scripts UPSTREAM: util/scripts: add copyright notices 2016-10-25 14:46:57 -07:00
showdevicetree
spkmodem_recv
superiotool UPSTREAM: superiotool: Add undocumented registers of ITE IT8783E/F 2016-11-03 14:44:22 -07:00
uio_usbdebug
vgabios
viatool
xcompile UPSTREAM: util/xcompile/xcompile: Add a space before && 2016-10-29 15:16:47 -07:00