Move kernel heaers install under switch and to config example. Package can now be installed from armbian-config "with one click".

This commit is contained in:
Igor Pecovnik
2017-08-06 14:45:13 +02:00
parent 4129a8ea56
commit 549d09b043
2 changed files with 5 additions and 2 deletions

View File

@@ -20,3 +20,4 @@ BUILD_ALL="no" # cycle through available boards and make images or kernel/u-b
# set KERNEL_ONLY to "yes" or "no" to build all packages/all images
BSPFREEZE="" # freeze armbian packages (u-boot, kernel, dtb)
INSTALL_HEADERS="" # install kernel headers package

View File

@@ -101,8 +101,10 @@ install_common()
display_alert "Installing u-boot" "$CHOSEN_UBOOT" "info"
chroot $SDCARD /bin/bash -c "DEVICE=/dev/null dpkg -i /tmp/debs/${CHOSEN_UBOOT}_${REVISION}_${ARCH}.deb" >> $DEST/debug/install.log 2>&1
display_alert "Installing headers" "${CHOSEN_KERNEL/image/headers}" "info"
chroot $SDCARD /bin/bash -c "dpkg -i /tmp/debs/${CHOSEN_KERNEL/image/headers}_${REVISION}_${ARCH}.deb" >> $DEST/debug/install.log 2>&1
if [[ $INSTALL_HEADERS == "yes" ]]; then
display_alert "Installing headers" "${CHOSEN_KERNEL/image/headers}" "info"
chroot $SDCARD /bin/bash -c "dpkg -i /tmp/debs/${CHOSEN_KERNEL/image/headers}_${REVISION}_${ARCH}.deb" >> $DEST/debug/install.log 2>&1
fi
# install firmware
#if [[ -f $SDCARD/tmp/debs/${CHOSEN_KERNEL/image/firmware-image}_${REVISION}_${ARCH}.deb ]]; then