mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-27 16:41:11 +02:00
Merge branch 'master' of ssh://gitrw.chromium.org:9222/crosutils
This commit is contained in:
commit
e394d421fa
@ -263,6 +263,14 @@ def _WipeOldOutput(buildroot):
|
||||
RunCommand(['rm', '-rf', 'src/build/images'], cwd=buildroot)
|
||||
|
||||
|
||||
def _EnableLocalAccount(buildroot):
|
||||
cwd = os.path.join(buildroot, 'src', 'scripts')
|
||||
# Set local account for test images.
|
||||
RunCommand(['./enable_localaccount.sh',
|
||||
'chronos'],
|
||||
print_cmd=False, cwd=cwd)
|
||||
|
||||
|
||||
def _BuildImage(buildroot):
|
||||
_WipeOldOutput(buildroot)
|
||||
|
||||
@ -415,6 +423,7 @@ def main():
|
||||
if buildconfig['uprev']:
|
||||
_UprevPackages(buildroot, revisionfile, board=buildconfig['board'])
|
||||
|
||||
_EnableLocalAccount(buildroot)
|
||||
_Build(buildroot)
|
||||
if buildconfig['unittests']:
|
||||
_RunUnitTests(buildroot)
|
||||
|
@ -48,7 +48,6 @@ config['x86_pineview_bin'] = {
|
||||
'important' : False,
|
||||
'hostname' : 'codf200.jail',
|
||||
'unittests': True,
|
||||
'smoke_bvt' : True,
|
||||
}
|
||||
config['arm_tegra2_bin'] = {
|
||||
'board' : 'tegra2',
|
||||
|
@ -272,7 +272,7 @@ setup_env
|
||||
# hand-sync'd some subdirs and edited files in others.
|
||||
# In that case, check against origin/HEAD and mark** revision.
|
||||
# Use git:8 chars of sha1
|
||||
REVISION=$(git rev-parse --short=8 HEAD)
|
||||
REVISION=$(cd ${FLAGS_trunk}/src/scripts ; git rev-parse --short=8 HEAD)
|
||||
CHROOT_PASSTHRU="CHROMEOS_REVISION=$REVISION BUILDBOT_BUILD=$FLAGS_build_number CHROMEOS_OFFICIAL=$CHROMEOS_OFFICIAL"
|
||||
if [ -d "$HOME/.subversion" ]; then
|
||||
# Bind mounting .subversion into chroot
|
||||
|
@ -236,7 +236,11 @@ then
|
||||
|
||||
if [ ${FLAGS_install} -ne ${FLAGS_TRUE} ]; then
|
||||
echo "Copying ${SRC_IMAGE} to ${FLAGS_to}..."
|
||||
sudo dd if="${SRC_IMAGE}" of="${FLAGS_to}" bs=4M
|
||||
if type pv >/dev/null 2>&1; then
|
||||
sudo pv -ptre "${SRC_IMAGE}" | sudo dd of="${FLAGS_to}" bs=4M oflag=sync
|
||||
else
|
||||
sudo dd if="${SRC_IMAGE}" of="${FLAGS_to}" bs=4M oflag=sync
|
||||
fi
|
||||
sync
|
||||
else
|
||||
if [ ${INSIDE_CHROOT} -ne 1 ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user