chroot_version_hooks: Add version hook to regenerate board configs

This hook tests for the existence of make.conf.board to avoid running
commands against extraneous directories that may be in /build, such as
/build/bin.

TEST=./update_chroot
BUG=chromium:898996
CQ-DEPEND=CL:1476151, CL:1471347, CL:1476038
Change-Id: I516006c1627574b03d886c5e46271283d3896d3e
Reviewed-on: https://chromium-review.googlesource.com/1474582
Commit-Ready: Chris McDonald <cjmcdonald@chromium.org>
Tested-by: Chris McDonald <cjmcdonald@chromium.org>
Reviewed-by: Ned Nguyen <nednguyen@google.com>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
1 file changed