dump failure

This commit is contained in:
Mario Fetka 2011-12-26 19:20:30 +01:00
parent efa86ad1a0
commit 633c6317df

View File

@ -382,18 +382,22 @@ nas-kernel_src_unpack() {
# unpack x-loader if required # unpack x-loader if required
if [ -n "${K_NASKERNEL_XLOADER_VER}" ]; then if [ -n "${K_NASKERNEL_XLOADER_VER}" ]; then
pushd ${WORKDIR}
unpack x-loader-${K_NASKERNEL_XLOADER_VER}.orig.tar.gz unpack x-loader-${K_NASKERNEL_XLOADER_VER}.orig.tar.gz
if [ -n "${K_NASKERNEL_XLOADER_PATCHES_VER}" ]; then if [ -n "${K_NASKERNEL_XLOADER_PATCHES_VER}" ]; then
unpack x-loader-patches-${K_NASKERNEL_XLOADER_VER}-${K_NASKERNEL_XLOADER_PATCHES_VER}.tar.bz2 unpack x-loader-patches-${K_NASKERNEL_XLOADER_VER}-${K_NASKERNEL_XLOADER_PATCHES_VER}.tar.bz2
fi fi
popd
fi fi
# unpack u-boot if required # unpack u-boot if required
if [ -n "${K_NASKERNEL_UBOOT_VER}" ]; then if [ -n "${K_NASKERNEL_UBOOT_VER}" ]; then
pushd ${WORKDIR}
unpack u-boot-${K_NASKERNEL_UBOOT_VER}.tar.bz2 unpack u-boot-${K_NASKERNEL_UBOOT_VER}.tar.bz2
if [ -n "${K_NASKERNEL_UBOOT_PATCHES_VER}" ]; then if [ -n "${K_NASKERNEL_UBOOT_PATCHES_VER}" ]; then
unpack u-boot-patches-${K_NASKERNEL_UBOOT_VER}-${K_NASKERNEL_UBOOT_PATCHES_VER}.tar.bz2 unpack u-boot-patches-${K_NASKERNEL_UBOOT_VER}-${K_NASKERNEL_UBOOT_PATCHES_VER}.tar.bz2
fi fi
popd
fi fi
} }
@ -451,16 +455,9 @@ _kernel_src_compile() {
# needed anyway, even if grub use flag is not used here # needed anyway, even if grub use flag is not used here
mkdir -p "${WORKDIR}"/boot mkdir -p "${WORKDIR}"/boot
einfo "Starting to compile kernel..."
_kernel_copy_config "${WORKDIR}"/config
# do some cleanup
rm -rf "${WORKDIR}"/lib
rm -rf "${WORKDIR}"/cache
rm -rf "${S}"/temp
# compile x-loader if required # compile x-loader if required
if [ -n "${K_NASKERNEL_XLOADER_VER}" ]; then if [ -n "${K_NASKERNEL_XLOADER_VER}" ]; then
einfo "Starting to compile X Loader..."
pushd "${WORKDIR}/x-loader-${K_NASKERNEL_XLOADER_VER}" pushd "${WORKDIR}/x-loader-${K_NASKERNEL_XLOADER_VER}"
if [ -n "${K_NASKERNEL_XLOADER_PATCHES_VER}" ]; then if [ -n "${K_NASKERNEL_XLOADER_PATCHES_VER}" ]; then
EPATCH_SOURCE="${WORKDIR}/x-loader-patches" EPATCH_SUFFIX="patch" \ EPATCH_SOURCE="${WORKDIR}/x-loader-patches" EPATCH_SUFFIX="patch" \
@ -480,6 +477,7 @@ _kernel_src_compile() {
# compile u-boot if required # compile u-boot if required
if [ -n "${K_NASKERNEL_UBOOT_VER}" ]; then if [ -n "${K_NASKERNEL_UBOOT_VER}" ]; then
einfo "Starting to compile U Boot..."
pushd "${WORKDIR}/u-boot-${K_NASKERNEL_UBOOT_VER}" pushd "${WORKDIR}/u-boot-${K_NASKERNEL_UBOOT_VER}"
if [ -n "${K_KERNEL_UBOOT_PATCHES_VER}" ]; then if [ -n "${K_KERNEL_UBOOT_PATCHES_VER}" ]; then
EPATCH_SOURCE="${WORKDIR}/u-boot-patches" EPATCH_SUFFIX="patch" \ EPATCH_SOURCE="${WORKDIR}/u-boot-patches" EPATCH_SUFFIX="patch" \
@ -497,6 +495,15 @@ _kernel_src_compile() {
popd popd
fi fi
einfo "Starting to compile kernel..."
_kernel_copy_config "${WORKDIR}"/config
# do some cleanup
rm -rf "${WORKDIR}"/lib
rm -rf "${WORKDIR}"/cache
rm -rf "${S}"/temp
cd "${S}" || die cd "${S}" || die
GKARGS="--no-save-config --disklabel" GKARGS="--no-save-config --disklabel"
use dracut && GKARGS="${GKARGS} --dracut" use dracut && GKARGS="${GKARGS} --dracut"