Revert "[ build script ] small speed improvements when building all packages"

This reverts commit ae920870e7.
This commit is contained in:
Igor Pecovnik 2019-05-28 22:29:11 +02:00
parent f7c634c2bb
commit f1f10fff9b

View File

@ -300,19 +300,11 @@ fi
overlayfs_wrapper "cleanup"
# extract kernel version
if [[ -f $DEST/debs/${CHOSEN_KERNEL}_${REVISION}_${ARCH}.deb && $BUILD_ALL != yes ]]; then
VER=$(dpkg --info $DEST/debs/${CHOSEN_KERNEL}_${REVISION}_${ARCH}.deb | grep Descr | awk '{print $(NF)}' | sed "s/-$LINUXFAMILY//")
else
VER=$(grep -E "^VERSION|^PATCHLEVEL|^SUBLEVEL" $SRC/cache/sources/$LINUXSOURCEDIR/Makefile | awk '{print $(NF)}' | paste -sd "." -)
fi
# extract kernel version from .deb package
VER=$(dpkg --info $DEST/debs/${CHOSEN_KERNEL}_${REVISION}_${ARCH}.deb | grep Descr | awk '{print $(NF)}')
VER="${VER/-$LINUXFAMILY/}"
# extract u-boot version
if [[ -f $DEST/debs/${CHOSEN_UBOOT}_${REVISION}_${ARCH}.deb && $BUILD_ALL != yes ]]; then
UBOOT_VER=$(dpkg --info $DEST/debs/${CHOSEN_UBOOT}_${REVISION}_${ARCH}.deb | grep Descr | awk '{print $(NF)}')
else
UBOOT_VER=$(grep -E "^VERSION|^PATCHLEVEL" $SRC/cache/sources/$BOOTSOURCEDIR/Makefile | awk '{print $(NF)}' | paste -sd "." -)
fi
UBOOT_VER=$(dpkg --info $DEST/debs/${CHOSEN_UBOOT}_${REVISION}_${ARCH}.deb | grep Descr | awk '{print $(NF)}')
# create board support package
[[ -n $RELEASE && ! -f $DEST/debs/$RELEASE/${CHOSEN_ROOTFS}_${REVISION}_${ARCH}.deb ]] && create_board_package