aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Edgar <rocket@gentoo.org>2005-02-24 17:59:39 +0000
committerEric Edgar <rocket@gentoo.org>2005-02-24 17:59:39 +0000
commite96618e06a496ff219bfb68f60746cbc2604c595 (patch)
treeebb3521ebb7d0693fe3897449ff0973803be2503 /gen_package.sh
parentFix 2.4 strict flag filtering issue. (diff)
downloadgenkernel-e96618e06a496ff219bfb68f60746cbc2604c595.tar.gz
genkernel-e96618e06a496ff219bfb68f60746cbc2604c595.tar.bz2
genkernel-e96618e06a496ff219bfb68f60746cbc2604c595.zip
Add support for maxkernpackage
creates a tarball containing: kernel initrd contents of /lib/modules kernel config git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@173 67a159dc-881f-0410-a524-ba9dfbe2cb84
Diffstat (limited to 'gen_package.sh')
-rw-r--r--gen_package.sh18
1 files changed, 17 insertions, 1 deletions
diff --git a/gen_package.sh b/gen_package.sh
index b0eb238..c62ccc2 100644
--- a/gen_package.sh
+++ b/gen_package.sh
@@ -2,7 +2,7 @@
gen_minkernpackage()
{
- print_info 1 'Creating kernel package'
+ print_info 1 'Creating minimal kernel package'
rm -rf "${TEMP}/minkernpackage" > /dev/null 2>&1
mkdir "${TEMP}/minkernpackage" || gen_die 'Could not make a directory for the kernel package!'
cd "${KERNEL_DIR}"
@@ -12,3 +12,19 @@ gen_minkernpackage()
tar -jcpf ${MINKERNPACKAGE} * || gen_die 'Could not compress the kernel package!'
cd "${TEMP}" && rm -rf "${TEMP}/minkernpackage" > /dev/null 2>&1
}
+
+gen_maxkernpackage()
+{
+ print_info 1 'Creating maximum kernel package'
+ rm -rf "${TEMP}/maxkernpackage" > /dev/null 2>&1
+ mkdir "${TEMP}/maxkernpackage" || gen_die 'Could not make a directory for the kernel package!'
+ cd "${KERNEL_DIR}"
+ cp "${KERNEL_BINARY}" "${TEMP}/maxkernpackage/kernel-${KV}" || gen_die 'Could not the copy kernel for the kernel package!'
+ [ "${BUILD_INITRD}" -ne 0 ] && { cp "${TEMP}/initrd-${KV}" "${TEMP}/maxkernpackage/initrd-${KV}" || gen_die 'Could not copy the initrd for the kernel package!'; }
+ cp "${KERNEL_DIR}/.config" "${TEMP}/maxkernpackage/kernel-config-${ARCH}-${KV}"
+ mkdir -p "${TEMP}/maxkernpackage/lib/modules/"
+ cp -r "/lib/modules/${KV}" "${TEMP}/maxkernpackage/lib/modules/"
+ cd "${TEMP}/maxkernpackage"
+ tar -jcpf ${MAXKERNPACKAGE} * || gen_die 'Could not compress the kernel package!'
+ cd "${TEMP}" && rm -rf "${TEMP}/maxkernpackage" > /dev/null 2>&1
+}