mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 06:01:41 +02:00
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 <zbehan@chromium.org> Reviewed-by: David James <davidjames@chromium.org> Commit-Ready: Zdenek Behan <zbehan@chromium.org>
This commit is contained in:
parent
f47611a771
commit
7d2634e5da
21
chroot_version_hooks.d/37_remove_conflicting_linux_headers
Normal file
21
chroot_version_hooks.d/37_remove_conflicting_linux_headers
Normal file
@ -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 "<cross-%s/linux-headers-${VERSION} " $TARGETS)
|
||||
)
|
||||
|
||||
sudo emerge --unmerge "${ATOMS[@]}"
|
Loading…
x
Reference in New Issue
Block a user