mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
mod_for_factory: remove 500populateQualDbs
The '500populateQualDbs' script is now deprecated by the new chromeos-hwid ebuild package. HWQual database are merged into images automatically, no more need for post-processing. QUALDB and --qualdb are also removed, with typo in comments fixed. BUG=chrome-os-partner:4276 TEST=./build_image --factory Change-Id: I76d9a72943567444e26200fccc6fe5dff95b2687 Reviewed-on: http://gerrit.chromium.org/gerrit/3431 Reviewed-by: Vince Laviano <vlaviano@chromium.org> Tested-by: Hung-Te Lin <hungte@chromium.org>
This commit is contained in:
parent
150b11985a
commit
54a83b774c
@ -68,11 +68,9 @@ DEFINE_boolean statefuldev ${FLAGS_TRUE} \
|
||||
DEFINE_string to "" \
|
||||
"The target image file or device"
|
||||
DEFINE_boolean test ${FLAGS_FALSE} \
|
||||
"Modify the imnage for automated testing"
|
||||
"Modify the image for automated testing"
|
||||
DEFINE_boolean factory ${FLAGS_FALSE} \
|
||||
"Modify the image for manufacturing testing"
|
||||
DEFINE_string qualdb "" \
|
||||
"Location of qualified component file"
|
||||
DEFINE_boolean factory_install ${FLAGS_FALSE} \
|
||||
"Build a smaller image to overlay the factory install shim on; this argument \
|
||||
is also required in image_to_usb."
|
||||
@ -853,7 +851,7 @@ mod_image_for_test () {
|
||||
mod_factory_script="${SCRIPTS_DIR}/mod_for_factory_scripts/factory_setup.sh"
|
||||
# Run factory setup script to modify the image
|
||||
sudo -E GCLIENT_ROOT="${GCLIENT_ROOT}" ROOT_FS_DIR="${ROOT_FS_DIR}" \
|
||||
QUALDB="${FLAGS_qualdb}" BOARD="${FLAGS_board}" "${mod_factory_script}"
|
||||
BOARD="${FLAGS_board}" "${mod_factory_script}"
|
||||
fi
|
||||
|
||||
# Re-run ldconfig to fix /etc/ldconfig.so.cache.
|
||||
|
||||
@ -1,27 +0,0 @@
|
||||
#!/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/hardware_Components"
|
||||
|
||||
if [ -d "${TEST_DIR}" ]; then
|
||||
pushd "${TEST_DIR}" >/dev/null
|
||||
|
||||
# Remove the DB directories belonging to other boards.
|
||||
KEEPDB="data_${BOARD}"
|
||||
ls -d data_* 2>/dev/null | grep -v "${KEEPDB}" | xargs rm -fr
|
||||
|
||||
if [ "${BOARD}" = "x86-agz" -o "${BOARD}" = "x86-mario" ]; then
|
||||
# Ensure there is a DB directory in x86-agz or x86-mario.
|
||||
if [ ! -d "${KEEPDB}" ]; then
|
||||
echo "No component DB directory found at: ${KEEPDB}"
|
||||
fi
|
||||
# Remove the default DB since it is unnecessary.
|
||||
DEFAULTDB="approved_components.default"
|
||||
rm -f "${DEFAULTDB}"
|
||||
fi
|
||||
|
||||
popd >/dev/null
|
||||
fi
|
||||
@ -57,7 +57,6 @@ DEFINE_boolean installmask $FLAGS_TRUE \
|
||||
"Use INSTALL_MASK to shrink the resulting image." m
|
||||
DEFINE_integer jobs -1 \
|
||||
"How many packages to build in parallel at maximum." j
|
||||
DEFINE_string qualdb "" "Location of qualified component file" d
|
||||
DEFINE_boolean yes $FLAGS_FALSE "Answer yes to all prompts" y
|
||||
DEFINE_string build_root "/build" \
|
||||
"The root location for board sysroots."
|
||||
@ -272,7 +271,7 @@ if [ $FLAGS_factory -eq $FLAGS_TRUE ]; then
|
||||
MOD_FACTORY_SCRIPT="$SCRIPTS_DIR/mod_for_factory_scripts/factory_setup.sh"
|
||||
# Run factory setup script to modify the image
|
||||
sudo GCLIENT_ROOT="$GCLIENT_ROOT" ROOT_FS_DIR="$ROOT_FS_DIR" \
|
||||
QUALDB="$FLAGS_qualdb" BOARD=$FLAGS_board "$MOD_FACTORY_SCRIPT"
|
||||
BOARD=$FLAGS_board "$MOD_FACTORY_SCRIPT"
|
||||
fi
|
||||
|
||||
# Re-run ldconfig to fix /etc/ldconfig.so.cache.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user