Update hooks: migrate arm-generic to freon

BUG=chromium:532719
TEST=run_chroot_version_hooks
CQ-DEPEND=CL:401381

Change-Id: Ifb7f61d0c5e2026d4c622a5b306a1a2cf4a52c08
Reviewed-on: https://chromium-review.googlesource.com/401107
Commit-Ready: Haixia Shi <hshi@chromium.org>
Tested-by: Haixia Shi <hshi@chromium.org>
Reviewed-by: Ilja H. Friedel <ihf@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
diff --git a/chroot_version_hooks.d/145_arm_generic_to_freon b/chroot_version_hooks.d/145_arm_generic_to_freon
new file mode 100644
index 0000000..6fa2210
--- /dev/null
+++ b/chroot_version_hooks.d/145_arm_generic_to_freon
@@ -0,0 +1,19 @@
+# Copyright 2016 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=(
+  arm-generic
+)
+
+for b in "${BOARDS[@]}"; do
+  if [[ -d /build/${b} ]]; then
+    ~/trunk/src/scripts/setup_board \
+      --board=${b} \
+      --skip_chroot_upgrade \
+      --regen_configs
+  fi
+done