From c1039fbcfa921704cd03fe4b52ed0654262014ce Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Thu, 14 Nov 2013 18:08:39 -0800 Subject: [PATCH] fix(cros-kernel2.eclass): Remove a massive amount of dead code. We do not currently support or care about things like arm, device trees, smatch, and other things that massively complicate this eclass. Remove them so making further changes is simple. Features can always be added back later. --- .../coreos-overlay/eclass/cros-kernel2.eclass | 315 +----------------- .../coreos-kernel/coreos-kernel-3.11.7.ebuild | 4 +- 2 files changed, 14 insertions(+), 305 deletions(-) diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/cros-kernel2.eclass b/sdk_container/src/third_party/coreos-overlay/eclass/cros-kernel2.eclass index 2cde97ffad..8168bf4e1b 100644 --- a/sdk_container/src/third_party/coreos-overlay/eclass/cros-kernel2.eclass +++ b/sdk_container/src/third_party/coreos-overlay/eclass/cros-kernel2.eclass @@ -3,7 +3,7 @@ [[ ${EAPI} != "4" ]] && die "Only EAPI=4 is supported" -inherit binutils-funcs cros-board toolchain-funcs +inherit cros-workon toolchain-funcs HOMEPAGE="http://www.chromium.org/" LICENSE="GPL-2" @@ -12,7 +12,7 @@ SLOT="0" DEPEND="sys-apps/debianutils " -IUSE="-device_tree -kernel_sources" +IUSE="-kernel_sources" STRIP_MASK="/usr/lib/debug/boot/vmlinux" # Build out-of-tree and incremental by default, but allow an ebuild inheriting @@ -91,124 +91,6 @@ install_kernel_sources() { "${D}/${dest_build_dir}/Makefile" || die } -get_build_cfg() { - echo "$(cros-workon_get_build_dir)/.config" -} - -get_boot_kernel() { - if [[ "${PN}" =~ boot ]] ; then - echo "true" - else - echo "false" - fi -} - -get_build_arch() { - if [ "${ARCH}" = "arm" ] ; then - case "${CHROMEOS_KERNEL_SPLITCONFIG}" in - *tegra*) - echo "tegra" - ;; - *exynos*) - echo "exynos5" - ;; - *) - echo "arm" - ;; - esac - else - echo $(tc-arch-kernel) - fi -} - -# @FUNCTION: cros_chkconfig_present -# @USAGE: