update hooks: migrate quawks & stout to freon for M43
BUG=chromium:474713
TEST=run_chroot_version_hooks
CQ-DEPEND=CL:265752
Change-Id: I1f21e2eac1d94f77f6e61fb5f14645e76870276e
Reviewed-on: https://chromium-review.googlesource.com/265729
Reviewed-by: Michael Spang <spang@chromium.org>
Tested-by: Michael Spang <spang@chromium.org>
diff --git a/chroot_version_hooks.d/120_quawks_and_stout_to_freon b/chroot_version_hooks.d/120_quawks_and_stout_to_freon
new file mode 100644
index 0000000..b0b946f
--- /dev/null
+++ b/chroot_version_hooks.d/120_quawks_and_stout_to_freon
@@ -0,0 +1,20 @@
+# Copyright 2015 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.
+
+# We moved a lot of files to the project-freon overlay. Make sure we
+# regen the board setup for each freon board.
+
+BOARDS=(
+ quawks
+ stout
+)
+
+for b in "${BOARDS[@]}"; do
+ if [[ -d /build/${b} ]]; then
+ ~/trunk/src/scripts/setup_board \
+ --board=${b} \
+ --skip_chroot_upgrade \
+ --regen_configs
+ fi
+done