coreboot-kgpe-d16/util
Vadim Bendebury 7559946896 cbfstool: accept read-only files when possible
cbfstool tries opening the input file for write access even if the
command does not require modifying the file.

Let's not request write access unless it is necessary, this way one
can examine write protected files without sudo.

BRANCH=none
BUG=none
TEST=running

   cbfstool /build/<board>/firmware/image.bin print

   in chroot does not require root access any more.

Change-Id: Ic4e4cc389b160da190e44a676808f5c4e6625567
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: ef6a8e25d9e257d7de4cc6b94e510234fe20a56d
Original-Change-Id: I871f32f0662221ffbdb13bf0482cb285ec184d07
Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/317300
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/12931
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
2016-01-19 18:14:44 +01:00
..
abuild abuild: allow specifying multiple targets by mainboard descriptor 2015-11-01 14:27:02 +01:00
acpi tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
amdfwtool amdfwtool: Fill the first 3 romsig entries as 0 2015-12-08 03:45:11 +01:00
amdtools Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
arm_boot_tools/mksunxiboot arm_boot_tools: Add 'b' to fopen flags for Windows compatibility 2014-12-19 18:55:34 +01:00
autoport autoport: Add missing casts 2016-01-11 20:51:12 +01:00
bimgtool tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
board_status board_status.sh: Double quote variables to prevent globbing and word splitting. 2015-12-20 01:18:08 +01:00
broadcom secimage: Use libz's crc32 function 2015-08-09 12:34:24 +02:00
cbfstool cbfstool: accept read-only files when possible 2016-01-19 18:14:44 +01:00
cbmem utils: Remove old license text from help & disclaimer file 2016-01-13 22:53:29 +01:00
crossgcc buildgcc: Print out all missing tools then halt 2016-01-09 22:18:59 +01:00
dtd_parser tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
ectool utils: Remove old license text from help & disclaimer file 2016-01-13 22:53:29 +01:00
exynos exynos: Install the BL1 and set the checksum in the Makefile. 2014-09-09 20:01:18 +02:00
fuzz-tests tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
genbuild_h genbuild_h.sh: allow coreboot to be a git submodule 2016-01-04 16:41:40 +01:00
genprof util/genprof: improve handling of command line arguments 2014-08-12 09:02:44 +02:00
gitconfig gitconfig/rebase.sh: adapt default branch name 2015-08-28 18:41:21 +00:00
ifdfake tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
ifdtool utils: Remove old license text from help & disclaimer file 2016-01-13 22:53:29 +01:00
inteltool utils: Remove old license text from help & disclaimer file 2016-01-13 22:53:29 +01:00
intelvbttool tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
ipqheader Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
k8resdump tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
kconfig Makefile: Individualize help targets & set as non-compile targets 2015-12-06 18:35:23 +01:00
lint util/lint: Update license linter, make stable version 2016-01-18 04:15:53 +01:00
mma tree: drop last paragraph of GPL copyright header from new files 2016-01-13 20:35:40 +01:00
msrtool msrtool/configure: change svn to git 2015-12-14 22:52:49 +01:00
nvidia nvidia/cbootimage: update to 1.5 2015-04-25 12:16:58 +02:00
nvramtool utils: Remove old license text from help & disclaimer file 2016-01-13 22:53:29 +01:00
optionlist tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
release util/release: Add release notes generator script 2015-11-11 20:42:00 +01:00
rockchip add make_idb.py & update bootblock 2015-03-24 15:24:52 +01:00
romcc romcc: Allow adding non-existent paths to include path 2015-11-19 21:20:29 +01:00
sconfig sconfig: remove warning about root_complex 2015-11-14 18:43:06 +01:00
scripts utils/scripts: Add microcode conversion tool 2015-11-10 18:46:04 +01:00
showdevicetree tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
spkmodem_recv tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
superiotool tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
uio_usbdebug tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
vgabios vgabios: fix compilation after x86emu changes 2015-10-25 21:33:32 +01:00
viatool utils: Remove old license text from help & disclaimer file 2016-01-13 22:53:29 +01:00
xcompile xcompile: Add core count to .xcompile 2016-01-15 22:27:30 +01:00