update hooks: update auron builds for the new overlay structure

For existing builds when we add in the new chipset-bdw and baseboard-auron
overlays they will break unless the board is set up again.

BUG=None
TEST=`build_packages --board=auron` with the corresponding overlay changes.

Change-Id: I5679409d9ca1536e2e8dba065623e0202176c9c7
Reviewed-on: https://chromium-review.googlesource.com/228869
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Bernie Thompson <bhthompson@chromium.org>
Commit-Queue: Bernie Thompson <bhthompson@chromium.org>
Tested-by: Bernie Thompson <bhthompson@chromium.org>
(cherry picked from commit 040d17e3a9f57d3d8d2626db7318267952639f8e)
Reviewed-on: https://chromium-review.googlesource.com/231945
diff --git a/chroot_version_hooks.d/99_auron_upgrades b/chroot_version_hooks.d/99_auron_upgrades
new file mode 100644
index 0000000..0015a6d
--- /dev/null
+++ b/chroot_version_hooks.d/99_auron_upgrades
@@ -0,0 +1,21 @@
+# Copyright 2014 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.
+
+# With the new overlay structure we must regenerate the board setup. This
+# enables the chipset-bdw and baseboard-auron overlays to go into effect.
+
+BOARDS=(
+  auron
+  auron_paine
+  auron_yuna
+)
+
+for b in "${BOARDS[@]}"; do
+  if [[ -d /build/${b} ]]; then
+    ~/trunk/src/scripts/setup_board \
+      --board=${b} \
+      --skip_chroot_upgrade \
+      --regen_configs
+  fi
+done