diff options
author | Bertrand Jacquin <beber@meleeweb.net> | 2013-09-14 21:59:27 +0200 |
---|---|---|
committer | Bertrand Jacquin <beber@meleeweb.net> | 2013-09-15 20:18:37 +0200 |
commit | 3dabea21399a3f5749cd04ab535fbe811e6cc970 (patch) | |
tree | 48a37548ee814a3a897a9b9c31e8d68313848e5c | |
parent | sys-kernel/longterm-sources: Version bump (diff) | |
download | portage-3dabea21399a3f5749cd04ab535fbe811e6cc970.tar.xz |
sys-kernel/stable-sources: Version bump
Package-Manager: portage-2.2.4
-rw-r--r-- | metadata/md5-cache/sys-kernel/stable-sources-3.11.1 | 16 | ||||
-rw-r--r-- | sys-kernel/stable-sources/ChangeLog | 6 | ||||
-rw-r--r-- | sys-kernel/stable-sources/Manifest | 5 | ||||
-rw-r--r-- | sys-kernel/stable-sources/stable-sources-3.11.1.ebuild | 197 |
4 files changed, 223 insertions, 1 deletions
diff --git a/metadata/md5-cache/sys-kernel/stable-sources-3.11.1 b/metadata/md5-cache/sys-kernel/stable-sources-3.11.1 new file mode 100644 index 00000000..4a078876 --- /dev/null +++ b/metadata/md5-cache/sys-kernel/stable-sources-3.11.1 @@ -0,0 +1,16 @@ +DEFINED_PHASES=compile install postinst postrm preinst prepare setup test unpack +DEPEND=sys-devel/bc || ( sys-apps/kmod[zlib?,lzma?] sys-apps/module-init-tools ) !build? ( sys-apps/sed >=sys-devel/binutils-2.11.90.0.31 ) +DESCRIPTION=Kernel stable sources and build +EAPI=5 +HOMEPAGE=http://www.kernel.org +IUSE=build source zlib lzma savedconfig symlink build +KEYWORDS=~amd64 ~x86 +LICENSE=GPL-2 freedist +PDEPEND=!build? ( virtual/dev-manager ) +RDEPEND=!build? ( >=sys-libs/ncurses-5.2 sys-devel/make dev-lang/perl sys-devel/bc ) +REQUIRED_USE=?? ( zlib lzma ) zlib? ( build ) lzma? ( build ) symlink? ( source ) +RESTRICT=binchecks strip +SLOT=3.11 +SRC_URI=mirror://kernel/linux/kernel/v3.x/patch-3.11.1.xz mirror://kernel/linux/kernel/v3.x/linux-3.11.tar.xz +_eclasses_=eutils a09e9d3f51cc9119897f6970ba2f9d52 kernel-2 72c82b0482225ffcdcdbaf48b37cea58 multilib 892e597faee02a5b94eb02ab512e7622 portability 536c5e70c5fb252ed3b769e04aa3f05b savedconfig 5313100f525c41f6c72c6e04edeb4f65 toolchain-funcs 7ffd28a8c7eea27218865352bfd3ab2f user d0a4d0735a6c0183d707ca919bd72f28 versionator 6601b4c5b3f019a993db59a50e1854e4 +_md5_=601e6dc1d009044b02177974a5aa3027 diff --git a/sys-kernel/stable-sources/ChangeLog b/sys-kernel/stable-sources/ChangeLog index df3da2ad..da108a20 100644 --- a/sys-kernel/stable-sources/ChangeLog +++ b/sys-kernel/stable-sources/ChangeLog @@ -2,6 +2,12 @@ # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*stable-sources-3.11.1 (14 Sep 2013) + + 14 Sep 2013; Bertrand Jacquin <beber@meleeweb.net> + +stable-sources-3.11.1.ebuild: + sys-kernel/stable-sources: Version bump + 14 Sep 2013; Bertrand Jacquin <beber@meleeweb.net> -stable-sources-3.10.11.ebuild: sys-kernel: Move 3.10 to lonterm-sources diff --git a/sys-kernel/stable-sources/Manifest b/sys-kernel/stable-sources/Manifest index 617acad6..09f9db1b 100644 --- a/sys-kernel/stable-sources/Manifest +++ b/sys-kernel/stable-sources/Manifest @@ -1,5 +1,8 @@ +DIST linux-3.11.tar.xz 75082460 SHA256 803ec8f0ad4b2ddedcb0332a590cd2b5e10dfc57c3b1c95bc9c46af81d51d7f9 WHIRLPOOL 96c9c27ffe155fe2c1760b53d87ef981943d58ab2dcf1ed6bd2c1e762e18bceec81d85d49c523947ec6fe52e41f25c4a86310347705c8d4b80a1748cec5b90d3 DIST linux-3.9.tar.xz 72104164 SHA256 60bc3e64ee5dc778de2cd7cd7640abf518a4c9d4f31b8ed624e16fad53f54541 WHIRLPOOL 668a8de30c7c3ccf6558cf0f29570f15e37ca7d599d1453afc3cab113d1b05fbd5b32646dd9ed798ceb61405a8754345da0740a53f467b825445028cda4bc698 +DIST patch-3.11.1.xz 4672 SHA256 516bb3193f868a28e218d1a5c69e145cf0568c62f87496ae7b6446d621e45d8e WHIRLPOOL 75dab0ea2a1f12b5ea50d7e4b8449f538fc4be1fd3bfbf415ed8cc60cd4dda7ba9fcf30318100ec3a3571361f028df90c349655538bbd923555a92973bd98bdc DIST patch-3.9.11.xz 218312 SHA256 29be11d16ef152ae1858d567cbf45f0da0193adf364826f5e3fa8b2fcd839682 WHIRLPOOL 3388e38b41d5f670c081bf1971e10064352319493a8800cda56d1c4c32275f21d4364d009dd8446509a9221476900e05528b3ef5707f5b666251612c9aae470b +EBUILD stable-sources-3.11.1.ebuild 4486 SHA256 bc4ab5bdbc825691ebdf28db03d27a81fbe9292310cd988705f9f28d64242421 WHIRLPOOL 2e0e23f3210ee23854efa6595e3a26e633f35789e8ef9c0ef0782bf14a66d6e77bd67ec6e154d710c8fa0cebb1aa44589b82dacdc3a5e47afe89425c3a5a01bd EBUILD stable-sources-3.9.11.ebuild 4486 SHA256 bc4ab5bdbc825691ebdf28db03d27a81fbe9292310cd988705f9f28d64242421 WHIRLPOOL 2e0e23f3210ee23854efa6595e3a26e633f35789e8ef9c0ef0782bf14a66d6e77bd67ec6e154d710c8fa0cebb1aa44589b82dacdc3a5e47afe89425c3a5a01bd -MISC ChangeLog 10003 SHA256 16b3d25d98b50bcf16b9a795ffd6979372803be8f90a0878e291de2c4ec9ef64 WHIRLPOOL 38928de9dafc49431c8de8b57b8179ca8ce902a1ea2ee7801c96a6f25ab2ca017c2bfee17e63ef71912bf70f3289eff33b354dc2afd8f8fd1430534ba96066ba +MISC ChangeLog 10170 SHA256 80b17dc40a008546708ae5de0533674e9f355f95ba8919419884dd2617868976 WHIRLPOOL 16f0cc924c9dad3c2a99ad929a383e5aeccf03ed5d9a04aab73f518fbeb7ae6b75e81fb3ae3cd4c5241b44f7683c27b57195ba9e3cab3be900d32f78163ea6af MISC metadata.xml 254 SHA256 c56bc3d6780712c960298c70bb86867aeb6661e97a317cc624516b0e16b72fcc WHIRLPOOL 2ebbfaa14ef0c1847284fe64a79f052cd7e73b25a724fba728c084aaaf2dd0692e068eedcf42ccef7e205077f00c35780ded7ec69118dc01ddb988b4802e46ae diff --git a/sys-kernel/stable-sources/stable-sources-3.11.1.ebuild b/sys-kernel/stable-sources/stable-sources-3.11.1.ebuild new file mode 100644 index 00000000..cc5019db --- /dev/null +++ b/sys-kernel/stable-sources/stable-sources-3.11.1.ebuild @@ -0,0 +1,197 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +ETYPE="sources" + +inherit savedconfig kernel-2 +detect_version + +SLOT="${PV%.*}" + +DESCRIPTION="Kernel stable sources and build" +HOMEPAGE="http://www.kernel.org" +SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}" + +KEYWORDS="~amd64 ~x86" + +SRCDIR="${WORKDIR}/linux-${KV_FULL}" +BUILDDIR="${WORKDIR}/build" + +KV_EXTRA="${EXTRAVERSION}" +S="${SRCDIR}" + +IUSE="build source zlib lzma" +REQUIRED_USE=" + ?? ( zlib lzma ) + zlib? ( build ) + lzma? ( build ) + symlink? ( source ) + " + +DEPEND=" + sys-devel/bc + || ( + sys-apps/kmod[zlib?,lzma?] + sys-apps/module-init-tools + )" + +configval () { + local _v="CONFIG_$1" + + # Export only the needed config value + # when not already define + declare -p ${_v} > /dev/null 2>&1 \ + || . <(sed -n "/^${_v}=/ p" ${BUILDDIR}/.config) + + case "${!_v}" in + "") declare "$_v=n" ; export $_v ; return 1 ;; + *) export $_v ; return 0 ;; + esac +} + +do_prepare_build () { + mkdir "${BUILDDIR}" + + restore_config "${BUILDDIR}/.config" + if [ ! -e "${BUILDDIR}/.config" ] ; then + ewarn "Generate .config using 'defconfig'" + emake defconfig "${myopt[@]}" + fi + + mkdir "${WORKDIR}/boot" + + if configval CMDLINE_BOOL && configval CMDLINE ; then + einfo "Creating kernel.arg" + einfo " CONFIG_CMDLINE='${CONFIG_CMDLINE}'" + echo "${CONFIG_CMDLINE}" > "${WORKDIR}/boot/kernel.arg" + fi + + configval MODULES || ewarn "CONFIG_MODULES is not set" + configval UEVENT_HELPER_PATH \ + && ewarn "CONFIG_UEVENT_HELPER_PATH should be empty" +} + +src_prepare () { + bopt=( + -C "${BUILDDIR}" + -f "${SRCDIR}/Makefile" + KBUILD_SRC="${SRCDIR}" + KCONFIG_CONFIG="${BUILDDIR}/.config" + + KBUILD_BUILD_USER="${KBUILD_BUILD_USER:-$PORTAGE_USERNAME}" + ) + + copt=( + CC="$(tc-getCC)" HOSTCC="${CBUILD}-gcc" CROSS_COMPILE="${CHOST}-" + ARCH="$(tc-arch-kernel)" SUBARCH="$(tc-arch-kernel)" + ) + + vopt=( + EXTRAVERSION="${KV_EXTRA}" + LOCALVERSION= CONFIG_LOCALVERSION= + ) + + myopt=( "${bopt[@]}" "${copt[@]}" "${vopt[@]}" ) + + use build && do_prepare_build +} + +do_compile_build () { + einfo "Checking configuration file" + emake oldconfig "${myopt[@]}" < /dev/null + + if diff -Nu0 "${BUILDDIR}/.config.old" "${BUILDDIR}/.config" \ + | egrep -q '^(\-|\+)CONFIG_' ; then + eerror "You configuration is not up to date" + diff -Nu "${BUILDDIR}/.config.old" "${BUILDDIR}/.config" + die "Bad configuration" + fi + + einfo "Building kernel" + emake bzImage "${myopt[@]}" + + if configval MODULES ; then + einfo "Building modules" + emake modules "${myopt[@]}" + fi +} + +src_compile () { + use build && do_compile_build +} + +do_install_sources () { + kernel-2_src_install +} + +do_install_build () { + einfo "Installing kernel" + emake install "${myopt[@]}" \ + INSTALL_PATH="${WORKDIR}/boot" + + insinto "/boot/${KV_FULL}" + + newins "${WORKDIR}/boot/config-${KV_FULL}" kernel.cfg + newins "${WORKDIR}/boot/vmlinuz-${KV_FULL}" kernel.img + newins "${WORKDIR}/boot/System.map-${KV_FULL}" System.map + + if configval CMDLINE_BOOL && configval CMDLINE ; then + doins "${WORKDIR}/boot/kernel.arg" + fi + + if configval MODULES ; then + einfo "Installing modules" + emake modules_install "${myopt[@]}" \ + INSTALL_MOD_PATH="${WORKDIR}" \ + INSTALL_MOD_STRIP="${PORTAGE_STRIP_FLAGS}" + + # kmod only support zlib and lzma + # See libkmod/libkmod-util.c / struct kmod_ext kmod_exts + if use zlib || use lzma ; then + use zlib && { local cmp="gzip -9c" ; local ext="gz" ; } + use lzma && { local cmp="xz -9c" ; local ext="xz" ; } + + einfo "Compressing modules" + find "${WORKDIR}/lib/modules" \ + -type f -name "*.ko" \ + | while read ; do + ${cmp} < "${REPLY}" > "${REPLY}.${ext}" \ + || die "${cmp} ${REPLY} failed" + rm "${REPLY}" + done + fi + + einfo "Generating modules.dep" + depmod -ae -F "${BUILDDIR}/System.map" -b "${WORKDIR}" "${KV_FULL}" \ + || die "depmod failed" + + rm "${WORKDIR}/lib/modules/${KV_FULL}/build" + rm "${WORKDIR}/lib/modules/${KV_FULL}/source" + + insinto /lib + doins -r "${WORKDIR}/lib/modules" + + # No need to make firmware_install, make modules_install does + if [ -e "${WORKDIR}/lib/firmware" ] ; then + einfo "Installing firmwares" + + insinto /lib + doins -r "${WORKDIR}/lib/firmware" + fi + fi +} + +src_install () { + use build && do_install_build + use source && do_install_sources + use savedconfig && save_config "${BUILDDIR}/.config" +} + +pkg_postinst () { + kernel-2_pkg_postinst + + einfo "You may need to:" + einfo " make menuconfig ${copt[@]}" +} |