From d84c75b7eaa85727fc182e3ea0d988fb198167ba Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Thu, 27 Feb 2014 00:03:15 +0100 Subject: sys-kernel: Eclassify Package-Manager: portage-2.2.8-r1 --- sys-kernel/longterm-sources/ChangeLog | 5 + sys-kernel/longterm-sources/Manifest | 10 +- .../longterm-sources-3.10.32.ebuild | 192 +-------------------- .../longterm-sources-3.12.13.ebuild | 192 +-------------------- .../longterm-sources-3.2.55.ebuild | 192 +-------------------- .../longterm-sources-3.4.82.ebuild | 192 +-------------------- 6 files changed, 14 insertions(+), 769 deletions(-) (limited to 'sys-kernel/longterm-sources') diff --git a/sys-kernel/longterm-sources/ChangeLog b/sys-kernel/longterm-sources/ChangeLog index 1d74ad87..2826948c 100644 --- a/sys-kernel/longterm-sources/ChangeLog +++ b/sys-kernel/longterm-sources/ChangeLog @@ -2,6 +2,11 @@ # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 26 Feb 2014; Bertrand Jacquin + longterm-sources-3.10.32.ebuild, longterm-sources-3.12.13.ebuild, + longterm-sources-3.2.55.ebuild, longterm-sources-3.4.82.ebuild: + sys-kernel: Eclassify + *longterm-sources-3.10.32 (26 Feb 2014) *longterm-sources-3.12.13 (26 Feb 2014) *longterm-sources-3.4.82 (26 Feb 2014) diff --git a/sys-kernel/longterm-sources/Manifest b/sys-kernel/longterm-sources/Manifest index af3fc99a..922e5b25 100644 --- a/sys-kernel/longterm-sources/Manifest +++ b/sys-kernel/longterm-sources/Manifest @@ -6,9 +6,9 @@ DIST patch-3.10.32.xz 587956 SHA256 e05a8b9bbd475a3b85b893b447109aa5a4af3c981d4f DIST patch-3.12.13.xz 340200 SHA256 f55fccaba90c44475ffd82357e946d8410ca6a1c6ffb78c53d421fa1a2f5a1e2 WHIRLPOOL 3c268a8f786ca50e75e8ad29d4702c3e1fd2632958548db42717efce38750e673dcebda1c25c6d6d3327a4005594af79f08d1129042853510b3d404b7120425e DIST patch-3.2.55.xz 1093628 SHA256 b60370501cc194db6ab5548af02ce3e58c11d3018e12dee23b0345b4f9d433a0 WHIRLPOOL 5becb6249f306fe0bc6d9e9d65075171f3a54505a29dfbe229f4559ad0c9957e1c3380d34595b2f1f3f6feee45525652b304fd32ffc6133d2988f5c50eaf08f1 DIST patch-3.4.82.xz 883040 SHA256 0f040418580670f8d119cd960a39c20e5b548261db3bb3382144c19f33d30404 WHIRLPOOL 200723263e9d960d7c760d5efcdc893472be87ce9e70c7ea426c6602cd9fdbb1c5e2da6091bc6a2853ad36f76a0a35b1db25f5e65aa523aa286521bb52007d78 -EBUILD longterm-sources-3.10.32.ebuild 4490 SHA256 c46cd8799390dc6354e09ce2b7ac6984438cd8c979f8c96e0f9b5d0996f9cb6e WHIRLPOOL 66dd9974f52f72dd9d01c281ecf7bed1aad39862700191ca394a5e18d339fe600292a9bee1418b318615e8bea5452d01d9c0fe6744622b452c879b75166db553 -EBUILD longterm-sources-3.12.13.ebuild 4490 SHA256 c46cd8799390dc6354e09ce2b7ac6984438cd8c979f8c96e0f9b5d0996f9cb6e WHIRLPOOL 66dd9974f52f72dd9d01c281ecf7bed1aad39862700191ca394a5e18d339fe600292a9bee1418b318615e8bea5452d01d9c0fe6744622b452c879b75166db553 -EBUILD longterm-sources-3.2.55.ebuild 4490 SHA256 c46cd8799390dc6354e09ce2b7ac6984438cd8c979f8c96e0f9b5d0996f9cb6e WHIRLPOOL 66dd9974f52f72dd9d01c281ecf7bed1aad39862700191ca394a5e18d339fe600292a9bee1418b318615e8bea5452d01d9c0fe6744622b452c879b75166db553 -EBUILD longterm-sources-3.4.82.ebuild 4490 SHA256 c46cd8799390dc6354e09ce2b7ac6984438cd8c979f8c96e0f9b5d0996f9cb6e WHIRLPOOL 66dd9974f52f72dd9d01c281ecf7bed1aad39862700191ca394a5e18d339fe600292a9bee1418b318615e8bea5452d01d9c0fe6744622b452c879b75166db553 -MISC ChangeLog 21479 SHA256 735f6bbe96a5bca22bc6b8904400689fa78ff1fd6f75c51e1a914d074c2559d9 WHIRLPOOL aeb0d6408e3421b7116bba34f616457658ede6645a3090eb517048b9926f27804e57e279f86c2209f48657d00770082128dd18ad6f8eee8dc367cbde5f3df171 +EBUILD longterm-sources-3.10.32.ebuild 170 SHA256 be0b6a4515116899d079f1a861922c41d70ec74289e3e8f2d5fa80e9f1f65ae5 WHIRLPOOL 443aef5003c5a3231ec0b1d978479a9866122fc0e2302136128d69be8ad0d982f543aa6eb5f4a72c4d28ac2d3e3e7fdff3901b0452c4184dcd71a78f4ad96bd8 +EBUILD longterm-sources-3.12.13.ebuild 170 SHA256 be0b6a4515116899d079f1a861922c41d70ec74289e3e8f2d5fa80e9f1f65ae5 WHIRLPOOL 443aef5003c5a3231ec0b1d978479a9866122fc0e2302136128d69be8ad0d982f543aa6eb5f4a72c4d28ac2d3e3e7fdff3901b0452c4184dcd71a78f4ad96bd8 +EBUILD longterm-sources-3.2.55.ebuild 170 SHA256 be0b6a4515116899d079f1a861922c41d70ec74289e3e8f2d5fa80e9f1f65ae5 WHIRLPOOL 443aef5003c5a3231ec0b1d978479a9866122fc0e2302136128d69be8ad0d982f543aa6eb5f4a72c4d28ac2d3e3e7fdff3901b0452c4184dcd71a78f4ad96bd8 +EBUILD longterm-sources-3.4.82.ebuild 170 SHA256 be0b6a4515116899d079f1a861922c41d70ec74289e3e8f2d5fa80e9f1f65ae5 WHIRLPOOL 443aef5003c5a3231ec0b1d978479a9866122fc0e2302136128d69be8ad0d982f543aa6eb5f4a72c4d28ac2d3e3e7fdff3901b0452c4184dcd71a78f4ad96bd8 +MISC ChangeLog 21691 SHA256 b0c60b668e88aea7d19bab7244d4e5c826c9050d7b305f15bbc1ce9b46c59789 WHIRLPOOL 593ba267fe05288cbd5c1c7e3fd26166ce8cabedd8a9ddf6b78566853526ba423ecccefa8a05bc2e33a4634a8edffd693a3a39dd16a9a5999802c8d5a689a643 MISC metadata.xml 254 SHA256 c56bc3d6780712c960298c70bb86867aeb6661e97a317cc624516b0e16b72fcc WHIRLPOOL 2ebbfaa14ef0c1847284fe64a79f052cd7e73b25a724fba728c084aaaf2dd0692e068eedcf42ccef7e205077f00c35780ded7ec69118dc01ddb988b4802e46ae diff --git a/sys-kernel/longterm-sources/longterm-sources-3.10.32.ebuild b/sys-kernel/longterm-sources/longterm-sources-3.10.32.ebuild index f93a01a7..a0801a8c 100644 --- a/sys-kernel/longterm-sources/longterm-sources-3.10.32.ebuild +++ b/sys-kernel/longterm-sources/longterm-sources-3.10.32.ebuild @@ -3,196 +3,6 @@ # $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}" +inherit linux-build 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= - V=1 - ) - - 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[@]}" -} diff --git a/sys-kernel/longterm-sources/longterm-sources-3.12.13.ebuild b/sys-kernel/longterm-sources/longterm-sources-3.12.13.ebuild index f93a01a7..a0801a8c 100644 --- a/sys-kernel/longterm-sources/longterm-sources-3.12.13.ebuild +++ b/sys-kernel/longterm-sources/longterm-sources-3.12.13.ebuild @@ -3,196 +3,6 @@ # $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}" +inherit linux-build 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= - V=1 - ) - - 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[@]}" -} diff --git a/sys-kernel/longterm-sources/longterm-sources-3.2.55.ebuild b/sys-kernel/longterm-sources/longterm-sources-3.2.55.ebuild index f93a01a7..a0801a8c 100644 --- a/sys-kernel/longterm-sources/longterm-sources-3.2.55.ebuild +++ b/sys-kernel/longterm-sources/longterm-sources-3.2.55.ebuild @@ -3,196 +3,6 @@ # $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}" +inherit linux-build 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= - V=1 - ) - - 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[@]}" -} diff --git a/sys-kernel/longterm-sources/longterm-sources-3.4.82.ebuild b/sys-kernel/longterm-sources/longterm-sources-3.4.82.ebuild index f93a01a7..a0801a8c 100644 --- a/sys-kernel/longterm-sources/longterm-sources-3.4.82.ebuild +++ b/sys-kernel/longterm-sources/longterm-sources-3.4.82.ebuild @@ -3,196 +3,6 @@ # $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}" +inherit linux-build 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= - V=1 - ) - - 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[@]}" -} -- cgit v1.2.3