Skip to content

Instantly share code, notes, and snippets.

@foobar0815
Last active December 3, 2020 21:45
Show Gist options
  • Save foobar0815/1a1b61b6a40fb51f89d21342e12edb53 to your computer and use it in GitHub Desktop.
Save foobar0815/1a1b61b6a40fb51f89d21342e12edb53 to your computer and use it in GitHub Desktop.
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
K_SECURITY_UNSUPPORTED="1"
K_NOSETEXTRAVERSION="1"
XANMOD_VERSION="2"
ETYPE="sources"
inherit kernel-2
detect_version
DESCRIPTION="A general-purpose kernel with custom settings and new features"
HOMEPAGE="https://xanmod.org"
LICENSE+=" CDDL"
SRC_URI="${KERNEL_BASE_URI}/linux-${KV_MAJOR}.${KV_MINOR}.tar.xz https://github.com/xanmod/linux/releases/download/${OKV}-xanmod${XANMOD_VERSION}/patch-${OKV}-xanmod${XANMOD_VERSION}.xz"
UNIPATCH_LIST_DEFAULT=""
UNIPATCH_LIST="${DISTDIR}/patch-${OKV}-xanmod${XANMOD_VERSION}.xz"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
src_prepare() {
kernel-2_src_prepare
rm ${S}/.config || die
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment