Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1410)

Unified Diff: mod_for_factory_scripts/510populateGbbFiles

Issue 3111014: Populate the GBB blob files to factory image. (Closed) Base URL: http://src.chromium.org/git/crosutils.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mod_for_factory_scripts/500populateQualDbs ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mod_for_factory_scripts/510populateGbbFiles
diff --git a/mod_for_factory_scripts/510populateGbbFiles b/mod_for_factory_scripts/510populateGbbFiles
new file mode 100755
index 0000000000000000000000000000000000000000..4a017e9f06dd8283a7c41ace3a1863c4111e22cc
--- /dev/null
+++ b/mod_for_factory_scripts/510populateGbbFiles
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+TEST_DIR="${ROOT_FS_DIR}/usr/local/autotest/site_tests/factory_WriteGBB"
+
+pushd ${TEST_DIR} 1> /dev/null
+
+GBB_FILE="gbb_${BOARD}*"
+FIRST_GBB_FILE=$(ls $GBB_FILE 2> /dev/null | head -1)
+if [ -e "${FIRST_GBB_FILE}" -o "${BOARD}" = "x86-generic" ]; then
+ # Remove GBB files belonging to other boards
+ ls gbb* 2> /dev/null | grep -v gbb_${BOARD} | xargs rm -f
+else
+ echo "No GBB file found at: ${GBB_FILE}"
+fi
+
+popd 1> /dev/null
« no previous file with comments | « mod_for_factory_scripts/500populateQualDbs ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698