New switch - freeze armbian packages (u-boot, kernel, dtb)

This commit is contained in:
Igor Pecovnik 2017-06-17 21:34:03 +02:00
parent 83fd67137b
commit f4265dc6b4
3 changed files with 11 additions and 2 deletions

View file

@ -34,6 +34,7 @@ BUILD_ALL="no" # cycle through available boards and make images or kernel/u-b
BETA="" # set yes to add subrevision with tomorrow's date. For internal use.
MULTITHREAD="" # build n images at once. For internal use.
BSPFREEZE="" # freeze armbian packages (u-boot, kernel, dtb, bsp)
# build script version to use
LIB_TAG="" # empty for latest version,
@ -99,4 +100,4 @@ fi
# If you are committing new version of this file, increment VERSION
# Only integers are supported
# VERSION=25
# VERSION=26

View file

@ -39,5 +39,5 @@ family_tweaks()
{
printf "blacklist wlan_8723bs_vq0\nblacklist ctp_gslX680\nblacklist ctp_gsl3680\n" > $CACHEDIR/$SDCARD/etc/modprobe.d/blacklist-guitar.conf
printf "blacklist gsensor_mir3da\nblacklist gsensor_stk8313\nblacklist gsensor_bma222\nblacklist lightsensor_ltr301\n" >> $CACHEDIR/$SDCARD/etc/modprobe.d/blacklist-guitar.conf
gzip < $SRC/lib/bin/udoo.bmp > $CACHEDIR/$SDCARD/boot/boot_logo.bmp.gz
gzip < $SRC/lib/bin/splash/udoo.bmp > $CACHEDIR/$SDCARD/boot/boot_logo.bmp.gz
}

View file

@ -125,6 +125,14 @@ install_common()
display_alert "Installing board support package" "$BOARD" "info"
chroot $CACHEDIR/$SDCARD /bin/bash -c "dpkg -i /tmp/debs/$RELEASE/${CHOSEN_ROOTFS}_${REVISION}_${ARCH}.deb" >> $DEST/debug/install.log 2>&1
# freeze armbian packages
if [[ $BSPFREEZE == "yes" ]]; then
display_alert "Freeze armbian packages" "$BOARD" "info"
if [[ "$BRANCH" != "default" ]]; then MINIBRANCH="-"$BRANCH; fi
chroot $CACHEDIR/$SDCARD /bin/bash -c "apt-mark hold ${CHOSEN_KERNEL} ${CHOSEN_KERNEL/image/headers} \
linux-u-boot-${BOARD}-${BRANCH} linux-dtb${MINIBRANCH}-${LINUXFAMILY}" >> $DEST/debug/install.log 2>&1
fi
# copy boot splash images
cp $SRC/lib/bin/splash/armbian-u-boot.bmp $CACHEDIR/$SDCARD/boot/boot.bmp
cp $SRC/lib/bin/splash/armbian-desktop.png $CACHEDIR/$SDCARD/boot/boot-desktop.png