| # Copyright 2020 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=5 |
| |
| CROS_WORKON_BLACKLIST="1" |
| EGIT_COMMIT="5357c0c" |
| |
| # This must be inherited *after* EGIT/CROS_WORKON variables defined |
| inherit cros-workon cros-kernel2 |
| |
| DESCRIPTION="A dump capture kernel for kdump functionality" |
| HOMEPAGE="https://cloud.google.com/container-optimized-os" |
| KEYWORDS="*" |
| CHROMEOS_KERNEL_CONFIG="${FILESDIR}/base.config" |
| |
| SRC_URI="gs://chromeos-localmirror/distfiles/cos-dump-capture-kernel-${EGIT_COMMIT}.tar.gz" |
| S="${WORKDIR}" |
| |
| STRIP_MASK+=" /usr/src/${P}/build/vmlinux" |
| STRIP_MASK+=" *.ko" |
| |
| DEPEND=" |
| !sys-kernel/lakitu-kernel |
| " |
| RDEPEND="${DEPEND}" |
| |
| src_unpack() { |
| default |
| } |
| |
| src_install() { |
| dodir /boot/kdump |
| kmake INSTALL_PATH="${D}/boot/kdump" INSTALL_MOD_PATH="${D}" \ |
| INSTALL_MOD_STRIP=1 install |
| local version |
| version=$(kmake -s --no-print-directory kernelrelease) |
| ln -sf "vmlinuz-${version}" "${D}/boot/kdump/vmlinuz" || die |
| |
| # We also strips the symbol table /boot/kdump/System.map-* at: |
| # overlay-lakitu/scripts/board_specific_setup.sh |
| } |