Merge pull request #2977 from bgilbert/sync-check

sys-kernel/coreos-sources: make sure sync-check.sh is executable
This commit is contained in:
Benjamin Gilbert 2018-01-02 13:25:20 -08:00 committed by GitHub
commit 0c01bb03e2
3 changed files with 12 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=5
COREOS_SOURCE_REVISION="" COREOS_SOURCE_REVISION="-r1"
inherit coreos-kernel inherit coreos-kernel
DESCRIPTION="CoreOS Linux kernel" DESCRIPTION="CoreOS Linux kernel"

View File

@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=5
COREOS_SOURCE_REVISION="" COREOS_SOURCE_REVISION="-r1"
inherit coreos-kernel savedconfig inherit coreos-kernel savedconfig
DESCRIPTION="CoreOS Linux kernel modules" DESCRIPTION="CoreOS Linux kernel modules"

View File

@ -26,6 +26,16 @@ fi
KEYWORDS="amd64 arm64" KEYWORDS="amd64 arm64"
IUSE="" IUSE=""
# For 4.14 >= 4.14.10
src_install() {
kernel-2_src_install
local r="${PR#r0}"
local script="${ED}/usr/src/linux-${PV/_rc/-rc}-coreos${r:+-${r}}/tools/objtool/sync-check.sh"
if [[ -e "${script}" ]]; then
chmod +x "${script}" || die
fi
}
# XXX: Note we must prefix the patch filenames with "z" to ensure they are # XXX: Note we must prefix the patch filenames with "z" to ensure they are
# applied _after_ a potential patch-${KV}.patch file, present when building a # applied _after_ a potential patch-${KV}.patch file, present when building a
# patchlevel revision. We mustn't apply our patches first, it fails when the # patchlevel revision. We mustn't apply our patches first, it fails when the