Added USE-flag vmlinuz for calculate-sources

atratsevskiy
Mike Hiretsky 14 years ago
parent daa0999d6e
commit 751b69e038

@ -10,6 +10,8 @@
inherit calculate eutils kernel-2
EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_postrm
IUSE="vmlinuz"
detect_version
detect_arch
@ -57,7 +59,7 @@ calculate-kernel_src_unpack() {
kernel-2_src_unpack
}
calculate-kernel_src_compile() {
vmlinuz_src_compile() {
export LDFLAGS=""
mkdir -p ${WORKDIR}/boot
cd ${S}
@ -106,12 +108,15 @@ calculate-kernel_src_compile() {
rm ${WORKDIR}/lib/modules/${CKV_FULL}/source
}
calculate-kernel_src_install() {
calculate-kernel_src_compile() {
use vmlinuz && vmlinuz_src_compile
}
vmlinuz_src_install() {
cd ${WORKDIR}
insinto /
doins -r boot
insinto /usr/src
kernel-2_src_install
cd ${WORKDIR}/lib
insinto /lib
doins -r modules
@ -127,19 +132,23 @@ calculate-kernel_src_install() {
die "cannot install build symlink"
}
calculate-kernel_src_install() {
kernel-2_src_install
use vmlinuz && vmlinuz_src_install
}
calculate-kernel_pkg_preinst() {
PKG_CONTENTS=${ROOT}/var/db/pkg/${CATEGORY}/${PN}-${CKV}*/CONTENTS
test -f ${PKG_CONTENTS} && calculate_rm_modules_dir ${PKG_CONTENTS}
use vmlinuz && test -f ${PKG_CONTENTS} && calculate_rm_modules_dir ${PKG_CONTENTS}
}
calculate-kernel_pkg_postrm() {
rm -f ${SLOT_T}/.alreadydel
rmdir ${SLOT_T} &>/dev/null
calculate_restore_kernel ${ROOT}/boot
use vmlinuz && calculate_restore_kernel ${ROOT}/boot
}
calculate-kernel_pkg_postinst() {
#calculate_update_splash ${ROOT}/boot/initramfs-${SYSTEM}-${KV_FULL}
vmlinuz_pkg_postinst() {
calculate_update_kernel ${KV_FULL} ${ROOT}/boot
cp -a ${ROOT}/tmp/firmware/* ${ROOT}/lib/firmware/
rm -rf ${ROOT}/tmp/firmware
@ -154,8 +163,6 @@ calculate-kernel_pkg_postinst() {
eend $? "Failed modules prepare"
ARCH="${GENTOOARCH}"
kernel-2_pkg_postinst
calculate_update_depmod
calculate_update_modules
@ -166,3 +173,9 @@ calculate-kernel_pkg_postinst() {
ewarn " module-rebuild -X rebuild"
fi
}
calculate-kernel_pkg_postinst() {
#calculate_update_splash ${ROOT}/boot/initramfs-${SYSTEM}-${KV_FULL}
kernel-2_pkg_postinst
use vmlinuz && vmlinuz_pkg_postinst
}

@ -3,4 +3,4 @@ dev-util/git -gtk -perl
net-print/cnijfilter ip1800 ip1900 ip2500 ip3300 ip3600 ip4300 ip4600 ip90 mp160 mp190 mp240 mp510 mp540 mp600 mp630
media-gfx/splashutils fbcondecor
sys-fs/aufs2 inotify kernel-patch
sys-kernel/calculate-sources symlink
sys-kernel/calculate-sources symlink vmlinuz

@ -0,0 +1,5 @@
# Copyright 1999-2008 Gentoo Foundation.
# Distributed under the terms of the GNU General Public License v2
# $Header: $
sys-kernel/calculate-sources:vmlinuz - Build kernel, modules and initramfs

@ -1,6 +1,6 @@
DIST calculate-sources-2.6.32.tar.bz2 133992 RMD160 6c8ad119807c591ad926435dad7986098f26e3ef SHA1 2b398bf6e9a6bceca26e3df42c471c9321c0a6f2 SHA256 b30e70642569bae7dff4c9b2046066774c6a8e2a2c1252b353b908824cf64bc4
DIST linux-2.6.32.tar.bz2 64424138 RMD160 b93742cbaf8174f2200d2dbef0d47a26c618039c SHA1 410b4fc818023bfef60064e973ff0ab46d3bfb19 SHA256 5099786d80b8407d98a619df00209c2353517f22d804fdd9533b362adcb4504e
DIST patch-2.6.32.5.bz2 130610 RMD160 fa16352509b164e5f6453548e5041b6931fb8283 SHA1 56998c981401b37c029634e03019d783a29945a1 SHA256 b4d0d667db5094fd430ed58955f4f9ed71d278d5ce70e63d287c53f8db028ac3
EBUILD calculate-sources-2.6.32.5.ebuild 653 RMD160 523d4db7d733e9b5a328034c448c1ad78309b0de SHA1 84c517233cacba7deab293b26289862bad8c4998 SHA256 005881eb46ca102aa4cc736e344c37f13f54dd1e1772af2801fa4a0ce1ba7623
EBUILD calculate-sources-2.6.32.5.ebuild 669 RMD160 00029a752aef0d66bc9a038c21ae18d83a48badc SHA1 29b3c4bc39442805fc4287c53ce6519909a4bddb SHA256 cca472af558f83351acecec0f98f6fc544f1e25dd78c87d5f3549084e968d21d
MISC ChangeLog 222 RMD160 09c8c97e1cd55540efc157d0a9eb5932f535c553 SHA1 20867411aefaf53108597d80e907371d80cdb26d SHA256 ec5e7be9e57fda7d1335335e2ae9ddf4ae247e5d59759b391f191f80424b00f0
MISC metadata.xml 279 RMD160 860d096ca59a4700ae40355018e42c3f74d0f81f SHA1 c89c24563ae4b5bcebf5c49a9ad573eabbbc5ca9 SHA256 f01d48d7d823bf111ad86c2b595d8bcc9b8b49c3f7439e29b65aa3d83fcd616d
MISC metadata.xml 364 RMD160 308abbf758102b5591c353f41a62be6836f98693 SHA1 5029bd7cf897e4eb8f8e8fa935c02d4c73eb59db SHA256 0bee25282d797e432206373a8535689412a3f76f8974315f8ecf73536bf0e505

@ -14,8 +14,8 @@ SRC_URI="${KERNEL_URI} ${ARCH_URI} ${CALC_URI}"
UNIPATCH_LIST="${DISTDIR}/${PN}-${CKV}.tar.bz2"
DEPEND=">=sys-kernel/calckernel-3.4.10.903-r19
>=sys-apps/calculate-1.3.3"
DEPEND="vmlinuz? ( >=sys-kernel/calckernel-3.4.10.903-r19
>=sys-apps/calculate-1.3.3 )"
pkg_postinst() {
calculate-kernel_pkg_postinst

@ -2,7 +2,10 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>maintainer-wanted</herd>
<longdescription lang="en">
Full sources including the Calculate patchset for the kernel.
</longdescription>
<longdescription lang="en">
Full sources including the Calculate patchset for the kernel.
</longdescription>
<use>
<flag name='vmlinuz'>Build kernel, modules and initramfs</flag>
</use>
</pkgmetadata>

Loading…
Cancel
Save