[coreboot-gerrit] Patch set updated for coreboot: ec704a0 util/board_status: Create `build` before copying to it

Paul Menzel (paulepanter@users.sourceforge.net) gerrit at coreboot.org
Sat Oct 18 14:05:51 CEST 2014


Paul Menzel (paulepanter at users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/7081

-gerrit

commit ec704a03f12d3e5f99e71a036b31c03367f78660
Author: Paul Menzel <paulepanter at users.sourceforge.net>
Date:   Fri Oct 17 09:49:14 2014 +0200

    util/board_status: Create `build` before copying to it
    
    Running `board_status.sh` fails when the directory `build/` does not exist.
    
    	$ LANG=C ls build
    	ls: cannot access build: No such file or directory
    	$ sudo util/board_status/board_status.sh
    	[…]
    	make: Entering directory '/src/coreboot/util/cbfstool'
    	make: Leaving directory '/src/coreboot/util/cbfstool'
    	cp: cannot create regular file 'build/cbfstool': No such file or directory
    	build/cbfstool not found
    
    So ensure that the directory `build/` exists, before copying `cbfstool` to it.
    
    Change-Id: I44155a0ca1eccc7b447b88ffaf6f3591b87fbad0
    Signed-off-by: Paul Menzel <paulepanter at users.sourceforge.net>
---
 util/board_status/board_status.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh
index 49d2c73..2d6e8ad 100755
--- a/util/board_status/board_status.sh
+++ b/util/board_status/board_status.sh
@@ -217,6 +217,7 @@ tmpdir=$(mktemp -d --tmpdir coreboot_board_status.XXXXXXXX)
 # <vendor>/<board>/<revision>/<timestamp>
 cbfstool_cmd="build/cbfstool"
 if test ! -x build/cbfstool; then
+	mkdir -p build
 	make -C util/cbfstool/ && cp util/cbfstool/cbfstool build/cbfstool
 fi
 test_cmd $LOCAL "$cbfstool_cmd"



More information about the coreboot-gerrit mailing list