summaryrefslogtreecommitdiff
path: root/sys-kernel
diff options
context:
space:
mode:
authorDan Goodliffe <dan.goodliffe@octal.co.uk>2020-07-13 15:02:43 +0100
committerDan Goodliffe <dan.goodliffe@octal.co.uk>2020-07-13 15:02:43 +0100
commit0dc5e30741141e6d4742603236ab1f28a5b086d1 (patch)
treeef6bbc4747689518d08b7dc98d6b1365f621a388 /sys-kernel
parentBump libjsonpp (diff)
downloadportage-0dc5e30741141e6d4742603236ab1f28a5b086d1.tar.bz2
portage-0dc5e30741141e6d4742603236ab1f28a5b086d1.tar.xz
portage-0dc5e30741141e6d4742603236ab1f28a5b086d1.zip
Bye bye bzImage, we hardly knew thee... hello gentoo-kernel
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/bzImage/Manifest2
-rw-r--r--sys-kernel/bzImage/bzImage-0.1.ebuild111
-rw-r--r--sys-kernel/bzImage/bzImage-0.ebuild77
3 files changed, 0 insertions, 190 deletions
diff --git a/sys-kernel/bzImage/Manifest b/sys-kernel/bzImage/Manifest
deleted file mode 100644
index 53a95b7..0000000
--- a/sys-kernel/bzImage/Manifest
+++ /dev/null
@@ -1,2 +0,0 @@
-EBUILD bzImage-0.1.ebuild 2641 BLAKE2B e0a4c45350e0c6b6c2f7bf1fd40c12144282ea77d17f05c4486652633e0df427854e0e6d0ba863be7f464ae61f7d022892b67fb5182e05336f5f7af76b0d825f SHA512 ab2fca36bf3fcbad3f1b6a73bb226bd137519fafe890709cb90953cb5d6600e6404a15fbff2cfae07b62f754a10180edd88548e48fa681edb0776c5d61620bd8
-EBUILD bzImage-0.ebuild 1730 BLAKE2B 522a27a1b1ca50c7cc9e90b1fb792e9d5ac2205834588104f3da333e21401385343f8d419aabcbe417fd7b663ae87d457cd4e5ebd2236e320aded1dd7791f2dc SHA512 bb155fc7578c53b82e14ff3cbbb41018d4272fcad4199c1d417b12ca0278922a04a7b7925a6b4e9df3a70c107dec9fbf2a7a3fdea415847efeafc82e18116627
diff --git a/sys-kernel/bzImage/bzImage-0.1.ebuild b/sys-kernel/bzImage/bzImage-0.1.ebuild
deleted file mode 100644
index d186bae..0000000
--- a/sys-kernel/bzImage/bzImage-0.1.ebuild
+++ /dev/null
@@ -1,111 +0,0 @@
-# Copyright 2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-inherit linux-info
-
-DESCRIPTION="Build and install a kernel, modules and initramfs with genkernel"
-HOMEPAGE="https://git.randomdan.homeip.net/repo/portage/tree/sys-kernel/bzImage"
-SRC_URI=""
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="lvm mdadm dmraid +e2fs zfs btrfs iscsi +busybox cryptsetup gpg netboot"
-
-DEPEND="
-sys-kernel/gentoo-sources:=
-sys-kernel/genkernel-next[dmraid=,cryptsetup=,gpg=,iscsi=,mdadm=]
-"
-RDEPEND=""
-BDEPEND="${DEPEND}"
-
-enableif() {
- usex $1 --${2:-$1} --no-${2:-$1}
-}
-
-src_prepare() {
- if [[ -z ${KBUILD_OUTPUT} ]] ; then
- die "KBUILD_OUTPUT must be set"
- fi
- default
-}
-
-src_unpack() {
- mkdir -p ${S}
-}
-
-src_configure() {
- local cfg=$(ls -1t /etc/kernels/* | head -n 1)
- if [[ -f $cfg ]] ; then
- einfo "Using $cfg for config..."
- cp $cfg ${S}/.config || die "Failed to copy config"
- elif [[ -f /proc/config.gz ]] ; then
- einfo "Using running config..."
- zcat /proc/config.gz > ${S}/.config || die "Failed to copy config"
- else
- ewarn "Using default config..."
- fi
- einfo "Building $KV_FULL"
-
- GENKERNELOPTS="
- --kerneldir=${KERNEL_DIR}
- --kernel-outputdir=${S}
- --logfile=${TMP}/genkernel.log
- --tempdir=${TMP}/genkernel
- --bootdir=${D}/boot
- --firmware-dst=${D}/lib/firmware
- --module-prefix=${D}
- --no-save-config
- --no-clean
- $(enableif lvm)
- $(enableif mdadm)
- $(enableif dmraid)
- $(enableif e2fs e2fsprogs)
- $(enableif zfs)
- $(enableif btrfs)
- $(enableif iscsi)
- $(enableif busybox)
- $(enableif cryptsetup luks)
- $(enableif gpg)
- $(enableif netboot)
- "
- einfo "Base genkernel options ${GENKERNELOPTS}"
- set_arch_to_kernel
-}
-
-src_compile() {
- genkernel $GENKERNELOPTS --no-install kernel || die genkernel failed
-}
-
-src_install() {
- insinto /etc/kernels
- newins .config ${KV_FULL}
-
- addwrite /etc/ld.so.cache~
- addwrite /etc/ld.so.cache
- mkdir -p ${D}/boot ${D}/lib/firmware
- genkernel $GENKERNELOPTS --install all || die genkernel failed
- emake -C ${KERNEL_DIR} O=${S} clean
-
- dosym ${KBUILD_OUTPUT} /lib/modules/${KV_FULL}/build
- insinto ${KBUILD_OUTPUT}
- doins -r .config Module.symvers include
- insinto ${KBUILD_OUTPUT}/arch
- doins -r arch/${ARCH}
- exeinto ${KBUILD_OUTPUT}/tools/objtool
- doexe tools/objtool/objtool
- exeinto ${KBUILD_OUTPUT}/scripts
- doexe scripts/kallsyms
- exeinto ${KBUILD_OUTPUT}/scripts/basic
- doexe scripts/basic/fixdep
- exeinto ${KBUILD_OUTPUT}/scripts/kconfig
- doexe scripts/kconfig/conf
- exeinto ${KBUILD_OUTPUT}/scripts/mod
- doexe scripts/mod/mk_elfconfig scripts/mod/modpost
-}
-
-pkg_postinst() {
- grub-mkconfig -o /boot/grub/grub.cfg
-}
-
diff --git a/sys-kernel/bzImage/bzImage-0.ebuild b/sys-kernel/bzImage/bzImage-0.ebuild
deleted file mode 100644
index a953d1a..0000000
--- a/sys-kernel/bzImage/bzImage-0.ebuild
+++ /dev/null
@@ -1,77 +0,0 @@
-# Copyright 2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DESCRIPTION="Build and install a kernel, modules and initramfs with genkernel"
-HOMEPAGE="https://git.randomdan.homeip.net/repo/portage/tree/sys-kernel/bzImage"
-SRC_URI=""
-RESTRICT="userpriv"
-
-LICENSE=""
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="lvm mdadm dmraid +e2fs zfs btrfs iscsi +busybox cryptsetup gpg netboot"
-
-DEPEND="
-sys-kernel/gentoo-sources:=[symlink]
-sys-kernel/genkernel-next[dmraid=,cryptsetup=,gpg=,iscsi=,mdadm=]
-"
-RDEPEND="${DEPEND}"
-BDEPEND=""
-
-enableif() {
- usex $1 --${2:-$1} --no-${2:-$1}
-}
-
-src_unpack() {
- mkdir -p ${S}
-}
-
-src_configure() {
- local cfg=$(ls -1t /etc/kernels/* | head -n 1)
- if [[ -f $cfg ]] ; then
- einfo "Using $cfg for config..."
- cp $cfg $WORKDIR/.config || die "Failed to copy config"
- elif [[ -f /proc/config.gz ]] ; then
- einfo "Using running config..."
- zcat /proc/config.gz > $WORKDIR/.config || die "Failed to copy config"
- else
- einfo "Using default config..."
- fi
-}
-
-src_install() {
- GENKERNELOPTS="
- --kernel-outputdir=$WORKDIR
- --logfile=$TMP/genkernel.log
- --tempdir=$TMP/tmp
- --kernel-cc=/usr/lib/ccache/bin/cc
- --utils-cc=/usr/lib/ccache/bin/cc
- --bootdir=${D}/boot
- --module-prefix=${D}
- $(enableif lvm)
- $(enableif mdadm)
- $(enableif dmraid)
- $(enableif e2fs e2fsprogs)
- $(enableif zfs)
- $(enableif btrfs)
- $(enableif iscsi)
- $(enableif busybox)
- $(enableif cryptsetup luks)
- $(enableif gpg)
- $(enableif netboot)
- "
-
- addwrite /etc/kernels
- addwrite /var/lib/genkernel
- addwrite /etc/ld.so.cache~
- addwrite /etc/ld.so.cache
- mkdir ${D}/boot
- genkernel --no-clean $GENKERNELOPTS all
-}
-
-pkg_postinst() {
- grub-mkconfig -o /boot/grub/grub.cfg
-}
-