dump failure
This commit is contained in:
parent
efa86ad1a0
commit
633c6317df
@ -382,18 +382,22 @@ nas-kernel_src_unpack() {
|
||||
|
||||
# unpack x-loader if required
|
||||
if [ -n "${K_NASKERNEL_XLOADER_VER}" ]; then
|
||||
pushd ${WORKDIR}
|
||||
unpack x-loader-${K_NASKERNEL_XLOADER_VER}.orig.tar.gz
|
||||
if [ -n "${K_NASKERNEL_XLOADER_PATCHES_VER}" ]; then
|
||||
unpack x-loader-patches-${K_NASKERNEL_XLOADER_VER}-${K_NASKERNEL_XLOADER_PATCHES_VER}.tar.bz2
|
||||
fi
|
||||
popd
|
||||
fi
|
||||
|
||||
# unpack u-boot if required
|
||||
if [ -n "${K_NASKERNEL_UBOOT_VER}" ]; then
|
||||
pushd ${WORKDIR}
|
||||
unpack u-boot-${K_NASKERNEL_UBOOT_VER}.tar.bz2
|
||||
if [ -n "${K_NASKERNEL_UBOOT_PATCHES_VER}" ]; then
|
||||
unpack u-boot-patches-${K_NASKERNEL_UBOOT_VER}-${K_NASKERNEL_UBOOT_PATCHES_VER}.tar.bz2
|
||||
fi
|
||||
popd
|
||||
fi
|
||||
}
|
||||
|
||||
@ -451,16 +455,9 @@ _kernel_src_compile() {
|
||||
# needed anyway, even if grub use flag is not used here
|
||||
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
|
||||
if [ -n "${K_NASKERNEL_XLOADER_VER}" ]; then
|
||||
einfo "Starting to compile X Loader..."
|
||||
pushd "${WORKDIR}/x-loader-${K_NASKERNEL_XLOADER_VER}"
|
||||
if [ -n "${K_NASKERNEL_XLOADER_PATCHES_VER}" ]; then
|
||||
EPATCH_SOURCE="${WORKDIR}/x-loader-patches" EPATCH_SUFFIX="patch" \
|
||||
@ -480,6 +477,7 @@ _kernel_src_compile() {
|
||||
|
||||
# compile u-boot if required
|
||||
if [ -n "${K_NASKERNEL_UBOOT_VER}" ]; then
|
||||
einfo "Starting to compile U Boot..."
|
||||
pushd "${WORKDIR}/u-boot-${K_NASKERNEL_UBOOT_VER}"
|
||||
if [ -n "${K_KERNEL_UBOOT_PATCHES_VER}" ]; then
|
||||
EPATCH_SOURCE="${WORKDIR}/u-boot-patches" EPATCH_SUFFIX="patch" \
|
||||
@ -497,6 +495,15 @@ _kernel_src_compile() {
|
||||
popd
|
||||
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
|
||||
GKARGS="--no-save-config --disklabel"
|
||||
use dracut && GKARGS="${GKARGS} --dracut"
|
||||
|
Loading…
Reference in New Issue
Block a user