This commit is contained in:
blshkv 2020-01-05 12:47:37 +08:00
parent 09f732fe23
commit 96f8b2aac8
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
5 changed files with 102 additions and 19 deletions

View file

@ -1,22 +1,25 @@
# Copyright 1999-2013 Gentoo Foundation
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
#K_NOUSENAME="yes"
#K_NOSETEXTRAVERSION="yes"
EAPI=6
K_SECURITY_UNSUPPORTED="1"
K_DEBLOB_AVAILABLE="1"
ETYPE="sources"
CKV='3.4.0'
inherit kernel-2 git-2
#ETYPE="sources"
#CKV="${PV/99/}"
inherit kernel-2 git-r3
detect_version
DESCRIPTION="Linux kernel source for the Samsung Chromebook"
HOMEPAGE="https://chromium.googlesource.com/chromiumos/third_party/kernel/+/chromeos-3.4"
EGIT_REPO_URI="git clone https://chromium.googlesource.com/chromiumos/third_party/kernel"
EGIT_REPO_URI="https://chromium.googlesource.com/chromiumos/third_party/kernel"
EGIT_BRANCH="chromeos-3.4"
EGIT_CHECKOUT_DIR="${WORKDIR}/linux-${KV_FULL}"
#unsupported
KEYWORDS=""
IUSE="deblob"

View file

@ -0,0 +1,41 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit mount-boot
DESCRIPTION="Raspberry Pi (all versions) kernel and modules"
HOMEPAGE="https://github.com/raspberrypi/firmware"
LICENSE="GPL-2 raspberrypi-videocore-bin"
SLOT="0"
RESTRICT="binchecks strip"
# Temporary safety measure to prevent ending up with a pair of
# sys-kernel/raspberrypi-image and sys-boot/raspberrypi-firmware
# both of which installed device tree files.
# Restore to simply "sys-boot/raspberrypi-firmware" when the mentioned version
# and all older ones are deleted.
RDEPEND=">sys-boot/raspberrypi-firmware-1.20190709"
if [[ "${PV}" == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/raspberrypi/firmware"
EGIT_CLONE_TYPE="shallow"
else
[[ "$(ver_cut 4)" == 'p' ]] || die "Unsupported version format, tweak the ebuild."
MY_PV="1.$(ver_cut 5)"
SRC_URI="https://github.com/raspberrypi/firmware/archive/${MY_PV}.tar.gz -> raspberrypi-firmware-${MY_PV}.tar.gz"
S="${WORKDIR}/firmware-${MY_PV}"
KEYWORDS="-* ~arm"
fi
src_install() {
insinto /lib/modules
doins -r modules/*
insinto /boot
doins boot/*.img
doins boot/*.dtb
doins -r boot/overlays
}

View file

@ -0,0 +1,39 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
K_PREPATCHED="yes"
UNIPATCH_STRICTORDER="yes"
K_SECURITY_UNSUPPORTED="1"
K_DEBLOB_AVAILABLE=0
CKV="${PV/99/}"
ETYPE="sources"
EGIT_BRANCH="${PV/.9999/}/master"
EGIT_REPO_URI="https://github.com/zen-kernel/zen-kernel.git"
inherit kernel-2 git-r3
detect_version
K_NOSETEXTRAVERSION="don't_set_it"
DESCRIPTION="The Zen Kernel Live Sources"
HOMEPAGE="https://github.com/zen-kernel"
IUSE=""
KEYWORDS=""
EGIT_CHECKOUT_DIR="${WORKDIR}/linux-${KV_FULL}"
K_EXTRAEINFO="For more info on zen-sources, and for how to report problems, see: \
${HOMEPAGE}, also go to #zen-sources on freenode"
pkg_setup(){
ewarn "Be carefull!! You are about to install live kernel sources."
ewarn "Git zen-sources are extremely unsupported, even from the upstream"
ewarn "developers. Use them at your own risk and don't bite us if your"
ewarn "system explodes"
kernel-2_pkg_setup
}

View file

@ -1,21 +1,21 @@
# Copyright 1999-2013 Gentoo Foundation
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
#K_NOUSENAME="yes"
#K_NOSETEXTRAVERSION="yes"
EAPI=6
K_SECURITY_UNSUPPORTED="1"
K_DEBLOB_AVAILABLE="1"
ETYPE="sources"
CKV='3.8.99'
inherit kernel-2 git-2
inherit kernel-2 git-r3
detect_version
DESCRIPTION="Linux kernel source for the ODROID-[UX]2 products"
HOMEPAGE="https://github.com/hardkernel/linux"
EGIT_REPO_URI="https://github.com/hardkernel/linux.git"
EGIT_BRANCH="odroid-3.8.y"
EGIT_CHECKOUT_DIR="${WORKDIR}/linux-${KV_FULL}"
#unsupported
KEYWORDS=""
IUSE="deblob"

View file

@ -1,21 +1,21 @@
# Copyright 1999-2013 Gentoo Foundation
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
#K_NOUSENAME="yes"
#K_NOSETEXTRAVERSION="yes"
EAPI=6
K_SECURITY_UNSUPPORTED="1"
K_DEBLOB_AVAILABLE="1"
ETYPE="sources"
CKV='3.4.99'
inherit kernel-2 git-2
inherit kernel-2 git-r3
detect_version
DESCRIPTION="Linux kernel source for the ODROIDXU products"
HOMEPAGE="https://github.com/hardkernel/linux"
EGIT_REPO_URI="https://github.com/hardkernel/linux.git"
EGIT_BRANCH="odroidxu-3.4.y"
EGIT_CHECKOUT_DIR="${WORKDIR}/linux-${KV_FULL}"
#unsupported
KEYWORDS=""
IUSE="deblob"