From 7d2634e5da6072c0c367e7264af9672303266bf3 Mon Sep 17 00:00:00 2001 From: Zdenek Behan Date: Thu, 31 May 2012 23:25:22 +0200 Subject: [PATCH] update_hooks: add a hook to unmerge old and conflicting cross headers BUG=none TEST=./update_chroot Change-Id: Id67b2f486821558d72a73445621f4685a0cf5a54 Reviewed-on: https://gerrit.chromium.org/gerrit/24235 Tested-by: Zdenek Behan Reviewed-by: David James Commit-Ready: Zdenek Behan --- .../37_remove_conflicting_linux_headers | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 chroot_version_hooks.d/37_remove_conflicting_linux_headers diff --git a/chroot_version_hooks.d/37_remove_conflicting_linux_headers b/chroot_version_hooks.d/37_remove_conflicting_linux_headers new file mode 100644 index 0000000000..938dd31181 --- /dev/null +++ b/chroot_version_hooks.d/37_remove_conflicting_linux_headers @@ -0,0 +1,21 @@ +# Copyright (c) 2012 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. + +# This fixes a problem, where some chroots have old cross linux-headers +# installed with invalid slot settings, conflicting with the proper new +# ones. + +TARGETS="arm-none-eabi +armv7a-cros-linux-gnueabi +i686-pc-linux-gnu +x86_64-cros-linux-gnu +x86_64-pc-linux-gnu" + +VERSION=3.4 + +ATOMS=( + $(printf "