aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2007-09-17 19:40:52 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2007-09-17 19:40:52 +0000
commit10990c221039a17c078ee57bc0b81d86c10c62e3 (patch)
tree7b0f2eb18b46149a24bab03dec70047e1ada6eab /gen_compile.sh
parentRemoving bootsplash support since it hasn't been in a kernel we've supported ... (diff)
downloadgenkernel-10990c221039a17c078ee57bc0b81d86c10c62e3.tar.gz
genkernel-10990c221039a17c078ee57bc0b81d86c10c62e3.tar.bz2
genkernel-10990c221039a17c078ee57bc0b81d86c10c62e3.zip
Changed all instances of EVMS2/LVM2 to EVMS/LVM, respectively. This will keep everything simplified if a newer EVMS/LVM version set appears.
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@535 67a159dc-881f-0410-a524-ba9dfbe2cb84
Diffstat (limited to 'gen_compile.sh')
-rw-r--r--gen_compile.sh34
1 files changed, 17 insertions, 17 deletions
diff --git a/gen_compile.sh b/gen_compile.sh
index bb9187f8..a123ea92 100644
--- a/gen_compile.sh
+++ b/gen_compile.sh
@@ -474,43 +474,43 @@ compile_busybox() {
rm -rf "${BUSYBOX_DIR}" > /dev/null
}
-compile_lvm2() {
+compile_lvm() {
compile_device_mapper
- if [ ! -f "${LVM2_BINCACHE}" ]
+ if [ ! -f "${LVM_BINCACHE}" ]
then
- [ -f "${LVM2_SRCTAR}" ] ||
- gen_die "Could not find LVM2 source tarball: ${LVM2_SRCTAR}! Please place it there, or place another version, changing /etc/genkernel.conf as necessary!"
+ [ -f "${LVM_SRCTAR}" ] ||
+ gen_die "Could not find LVM source tarball: ${LVM_SRCTAR}! Please place it there, or place another version, changing /etc/genkernel.conf as necessary!"
cd "${TEMP}"
- rm -rf ${LVM2_DIR} > /dev/null
- /bin/tar -zxpf ${LVM2_SRCTAR} ||
- gen_die 'Could not extract LVM2 source tarball!'
- [ -d "${LVM2_DIR}" ] ||
- gen_die 'LVM2 directory ${LVM2_DIR} is invalid!'
+ rm -rf ${LVM_DIR} > /dev/null
+ /bin/tar -zxpf ${LVM_SRCTAR} ||
+ gen_die 'Could not extract LVM source tarball!'
+ [ -d "${LVM_DIR}" ] ||
+ gen_die 'LVM directory ${LVM_DIR} is invalid!'
rm -rf "${TEMP}/device-mapper" > /dev/null
/bin/tar -jxpf "${DEVICE_MAPPER_BINCACHE}" -C "${TEMP}" ||
gen_die "Could not extract device-mapper binary cache!";
- cd "${LVM2_DIR}"
- print_info 1 'lvm2: >> Configuring...'
+ cd "${LVM_DIR}"
+ print_info 1 'lvm: >> Configuring...'
LDFLAGS="-L${TEMP}/device-mapper/lib" \
CFLAGS="-I${TEMP}/device-mapper/include" \
CPPFLAGS="-I${TEMP}/device-mapper/include" \
- ./configure --enable-static_link --prefix=${TEMP}/lvm2 >> ${DEBUGFILE} 2>&1 ||
- gen_die 'Configure of lvm2 failed!'
- print_info 1 'lvm2: >> Compiling...'
+ ./configure --enable-static_link --prefix=${TEMP}/lvm >> ${DEBUGFILE} 2>&1 ||
+ gen_die 'Configure of lvm failed!'
+ print_info 1 'lvm: >> Compiling...'
compile_generic '' utils
compile_generic 'install' utils
- cd "${TEMP}/lvm2"
+ cd "${TEMP}/lvm"
print_info 1 ' >> Copying to bincache...'
strip "sbin/lvm.static" ||
gen_die 'Could not strip lvm.static!'
- /bin/tar -cjf "${LVM2_BINCACHE}" sbin/lvm.static ||
+ /bin/tar -cjf "${LVM_BINCACHE}" sbin/lvm.static ||
gen_die 'Could not create binary cache'
cd "${TEMP}"
rm -rf "${TEMP}/device-mapper" > /dev/null
- rm -rf "${LVM2_DIR}" lvm2
+ rm -rf "${LVM_DIR}" lvm
fi
}