diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2021-02-20 21:04:15 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2021-02-21 08:59:51 +0100 |
commit | 7e53cd0c36c84b63f44d0d701cab0fd2c00075dd (patch) | |
tree | f2cf0a6873078f304c5344162a7023a27191cd0a /source/k/build-all-kernels.sh | |
parent | 782ab7566ebf43eb6feeedace1c58e6632f37e10 (diff) | |
download | current-7e53cd0c36c84b63f44d0d701cab0fd2c00075dd.tar.gz |
Sat Feb 20 21:04:15 UTC 202120210220210415
a/sysvinit-scripts-2.1-noarch-40.txz: Rebuilt.
Drop old /sbin/rescan-scsi-bus as the most recent version is already present
in the sg3_utils package as /usr/bin/rescan-scsi-bus.sh.
d/meson-0.57.1-x86_64-1.txz: Upgraded.
l/mozilla-nss-3.62-x86_64-1.txz: Upgraded.
l/sg3_utils-1.45-x86_64-4.txz: Rebuilt.
Make a symlink /sbin/rescan-scsi-bus -> /usr/bin/rescan-scsi-bus.sh in case
anyone depends on the old path / name from the sysvinit-scripts package.
n/ipset-7.11-x86_64-1.txz: Upgraded.
n/krb5-1.19.1-x86_64-1.txz: Upgraded.
n/s-nail-14.9.21-x86_64-4.txz: Rebuilt.
If there's no mail, exit. Thanks to ardya.
testing/packages/linux-5.11/kernel-generic-5.11.0-x86_64-1.txz: Added.
testing/packages/linux-5.11/kernel-headers-5.11.0-x86-1.txz: Added.
testing/packages/linux-5.11/kernel-huge-5.11.0-x86_64-1.txz: Added.
testing/packages/linux-5.11/kernel-modules-5.11.0-x86_64-1.txz: Added.
testing/packages/linux-5.11/kernel-source-5.11.0-noarch-1.txz: Added.
Diffstat (limited to 'source/k/build-all-kernels.sh')
-rwxr-xr-x | source/k/build-all-kernels.sh | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/source/k/build-all-kernels.sh b/source/k/build-all-kernels.sh index 5d1d5daa..561b8e32 100755 --- a/source/k/build-all-kernels.sh +++ b/source/k/build-all-kernels.sh @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright 2018 Patrick J. Volkerding, Sebeka, Minnesota, USA +# Copyright 2018, 2021 Patrick J. Volkerding, Sebeka, Minnesota, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -108,7 +108,12 @@ for recipe in $RECIPES ; do ) KERNEL_HUGE_PACKAGE_NAME=$(PRINT_PACKAGE_NAME=YES KERNEL_NAME=huge KERNEL_SOURCE=$TMP/package-kernel-source/usr/src/linux KERNEL_CONFIG=./kernel-configs/config-huge${LOCALVERSION}-${VERSION}${LOCALVERSION}${CONFIG_SUFFIX} CONFIG_SUFFIX=${CONFIG_SUFFIX} KERNEL_OUTPUT_DIRECTORY=$OUTPUT/kernels/huge$(echo ${LOCALVERSION} | tr -d -).s BUILD=$BUILD ./kernel-generic.SlackBuild) KERNEL_NAME=huge KERNEL_SOURCE=$TMP/package-kernel-source/usr/src/linux KERNEL_CONFIG=./kernel-configs/config-huge${LOCALVERSION}-${VERSION}${LOCALVERSION}${CONFIG_SUFFIX} CONFIG_SUFFIX=${CONFIG_SUFFIX} KERNEL_OUTPUT_DIRECTORY=$OUTPUT/kernels/huge$(echo ${LOCALVERSION} | tr -d -).s BUILD=$BUILD ./kernel-generic.SlackBuild - mv ${TMP}/${KERNEL_HUGE_PACKAGE_NAME} $OUTPUT || exit 1 + if [ -r ${TMP}/${KERNEL_HUGE_PACKAGE_NAME} ]; then + mv ${TMP}/${KERNEL_HUGE_PACKAGE_NAME} $OUTPUT + else + echo "kernel-source build failed." + exit 1 + fi if [ "${INSTALL_PACKAGES}" = "YES" ]; then installpkg ${OUTPUT}/${KERNEL_HUGE_PACKAGE_NAME} || exit 1 fi @@ -116,7 +121,12 @@ for recipe in $RECIPES ; do # Build kernel-generic package: KERNEL_GENERIC_PACKAGE_NAME=$(PRINT_PACKAGE_NAME=YES KERNEL_NAME=generic KERNEL_SOURCE=$TMP/package-kernel-source/usr/src/linux KERNEL_CONFIG=./kernel-configs/config-generic${LOCALVERSION}-${VERSION}${LOCALVERSION}${CONFIG_SUFFIX} CONFIG_SUFFIX=${CONFIG_SUFFIX} KERNEL_OUTPUT_DIRECTORY=$OUTPUT/kernels/generic$(echo ${LOCALVERSION} | tr -d -).s BUILD=$BUILD ./kernel-generic.SlackBuild) KERNEL_NAME=generic KERNEL_SOURCE=$TMP/package-kernel-source/usr/src/linux KERNEL_CONFIG=./kernel-configs/config-generic${LOCALVERSION}-${VERSION}${LOCALVERSION}${CONFIG_SUFFIX} CONFIG_SUFFIX=${CONFIG_SUFFIX} KERNEL_OUTPUT_DIRECTORY=$OUTPUT/kernels/generic$(echo ${LOCALVERSION} | tr -d -).s BUILD=$BUILD ./kernel-generic.SlackBuild - mv ${TMP}/${KERNEL_GENERIC_PACKAGE_NAME} $OUTPUT || exit 1 + if [ -r ${TMP}/${KERNEL_GENERIC_PACKAGE_NAME} ]; then + mv ${TMP}/${KERNEL_GENERIC_PACKAGE_NAME} $OUTPUT + else + echo "kernel-generic build failed." + exit 1 + fi if [ "${INSTALL_PACKAGES}" = "YES" ]; then installpkg ${OUTPUT}/${KERNEL_GENERIC_PACKAGE_NAME} || exit 1 fi @@ -125,7 +135,12 @@ for recipe in $RECIPES ; do # will also work with the huge kernel): KERNEL_MODULES_PACKAGE_NAME=$(PRINT_PACKAGE_NAME=YES KERNEL_SOURCE=$TMP/package-kernel-source/usr/src/linux KERNEL_CONFIG=$TMP/package-kernel-source/usr/src/linux/.config BUILD=$BUILD ./kernel-modules.SlackBuild) KERNEL_SOURCE=$TMP/package-kernel-source/usr/src/linux KERNEL_CONFIG=$TMP/package-kernel-source/usr/src/linux/.config BUILD=$BUILD ./kernel-modules.SlackBuild - mv ${TMP}/${KERNEL_MODULES_PACKAGE_NAME} $OUTPUT || exit 1 + if [ -r ${TMP}/${KERNEL_MODULES_PACKAGE_NAME} ]; then + mv ${TMP}/${KERNEL_MODULES_PACKAGE_NAME} $OUTPUT + else + echo "kernel-modules build failed." + exit 1 + fi if [ "${INSTALL_PACKAGES}" = "YES" ]; then installpkg ${OUTPUT}/${KERNEL_MODULES_PACKAGE_NAME} || exit 1 fi @@ -133,7 +148,12 @@ for recipe in $RECIPES ; do # Build kernel-headers: KERNEL_HEADERS_PACKAGE_NAME=$(PRINT_PACKAGE_NAME=YES KERNEL_SOURCE=$TMP/package-kernel-source/usr/src/linux BUILD=$BUILD ./kernel-headers.SlackBuild) KERNEL_SOURCE=$TMP/package-kernel-source/usr/src/linux BUILD=$BUILD ./kernel-headers.SlackBuild - mv ${TMP}/${KERNEL_HEADERS_PACKAGE_NAME} $OUTPUT || exit 1 + if [ -r ${TMP}/${KERNEL_HEADERS_PACKAGE_NAME} ]; then + mv ${TMP}/${KERNEL_HEADERS_PACKAGE_NAME} $OUTPUT + else + echo "kernel-headers build failed." + exit 1 + fi if [ "${INSTALL_PACKAGES}" = "YES" ]; then upgradepkg --reinstall --install-new ${OUTPUT}/${KERNEL_HEADERS_PACKAGE_NAME} || exit 1 fi |