@@ -36,7 +36,7 @@ _ub_cksum_special_derivativeScripts_contents() {
36
36
#export ub_setScriptChecksum_disable='true'
37
37
( [[ -e "$0".nck ]] || [[ "${BASH_SOURCE[0]}" != "${0}" ]] || [[ "$1" == '--profile' ]] || [[ "$1" == '--script' ]] || [[ "$1" == '--call' ]] || [[ "$1" == '--return' ]] || [[ "$1" == '--devenv' ]] || [[ "$1" == '--shell' ]] || [[ "$1" == '--bypass' ]] || [[ "$1" == '--parent' ]] || [[ "$1" == '--embed' ]] || [[ "$1" == '--compressed' ]] || [[ "$0" == "/bin/bash" ]] || [[ "$0" == "-bash" ]] || [[ "$0" == "/usr/bin/bash" ]] || [[ "$0" == "bash" ]] ) && export ub_setScriptChecksum_disable='true'
38
38
export ub_setScriptChecksum_header='2591634041'
39
- export ub_setScriptChecksum_contents='2476189741 '
39
+ export ub_setScriptChecksum_contents='2022055273 '
40
40
41
41
# CAUTION: Symlinks may cause problems. Disable this test for such cases if necessary.
42
42
# WARNING: Performance may be crucial here.
@@ -21158,6 +21158,60 @@ _test_build_kernel() {
21158
21158
21159
21159
21160
21160
21161
+ # ATTRIBUTION-AI: ChatGPT o1 2025-01-11 ... suggested Debian package postprocessing.
21162
+ _supplement_kernel_debPkg-dpkg_sequence() {
21163
+ _messagePlain_nominal 'init: _supplement_kernel_debPkg-dpkg_sequence'
21164
+
21165
+ local currentFile="$1"
21166
+ _messagePlain_probe_var currentFile
21167
+
21168
+ local currentConfigDir="$2"
21169
+ _messagePlain_probe_var currentConfigDir
21170
+
21171
+ _start
21172
+ mkdir -p "$safeTmp"/kernel-headers
21173
+
21174
+ _messagePlain_probe_cmd dpkg-deb -R "$currentFile" "$safeTmp"/kernel-headers
21175
+
21176
+ # ATTENTION: Usually there will be only one matching destination. Mostly, the for loop is used due to the especially unpredictable directory naming.
21177
+ local currentDestination
21178
+ for currentDestination in "$safeTmp"/kernel-headers/usr/src/linux-headers-*
21179
+ do
21180
+ _messagePlain_probe_cmd cp -a "$currentConfigDir"/.config "$currentDestination"/
21181
+ done
21182
+
21183
+ rm -f "$currentFile"
21184
+ _messagePlain_probe_cmd dpkg-deb -b /tmp/kernel-headers "$currentFile"
21185
+
21186
+ _stop
21187
+ }
21188
+ _supplement_kernel_debPkg_sequence() {
21189
+ #local functionEntryPWD
21190
+ #functionEntryPWD="$PWD"
21191
+
21192
+ _messagePlain_nominal 'init: _supplement_kernel_debPkg_sequence'
21193
+
21194
+ local currentFile
21195
+
21196
+ local currentExitStatus
21197
+ currentExitStatus=1
21198
+
21199
+ # ATTENTION: Usually there will be only one matching filename. Most of the reason for using a for loop is unpredictable filenames, such as the apparently used "$currentKernelName_$currentKernelName" pattern, or the "$currentKernelName"'_mainline', etc, patterns.
21200
+ # Expected to begin in the same directory as "make deb-pkg" , Debian package files expected at '../' .
21201
+ for currentFile in ../linux-headers-"$currentKernelName"*.deb
21202
+ do
21203
+ _messagePlain_probe_cmd "$scriptAbsoluteLocation" _supplement_kernel_debPkg-dpkg_sequence "$currentFile" "$functionEntryPWD"
21204
+ currentExitStatus="$?"
21205
+ done
21206
+
21207
+ #cd "$functionEntryPWD"
21208
+ return "$currentExitStatus"
21209
+ }
21210
+ _supplement_kernel_debPkg() {
21211
+ "$scriptAbsoluteLocation" _supplement_kernel_debPkg_sequence "$@"
21212
+ }
21213
+
21214
+
21161
21215
21162
21216
_fetchKernel-lts-legacyHTTPS() {
21163
21217
# DANGER: NOTICE: Do NOT export without corresponding source code!
@@ -21506,6 +21560,7 @@ _buildKernel-lts() {
21506
21560
then
21507
21561
make deb-pkg -j $(nproc)
21508
21562
[[ "$?" != "0" ]] && currentExitStatus=1
21563
+ _supplement_kernel_debPkg
21509
21564
else
21510
21565
_messageError 'bad: current_force_bindepOnly'
21511
21566
export current_force_bindepOnly=""
@@ -21549,6 +21604,7 @@ _buildKernel-lts-server() {
21549
21604
then
21550
21605
make deb-pkg -j $(nproc)
21551
21606
[[ "$?" != "0" ]] && currentExitStatus=1
21607
+ _supplement_kernel_debPkg
21552
21608
else
21553
21609
_messageError 'bad: current_force_bindepOnly'
21554
21610
export current_force_bindepOnly=""
@@ -21593,6 +21649,7 @@ _buildKernel-mainline() {
21593
21649
then
21594
21650
make deb-pkg -j $(nproc)
21595
21651
[[ "$?" != "0" ]] && currentExitStatus=1
21652
+ _supplement_kernel_debPkg
21596
21653
else
21597
21654
_messageError 'bad: current_force_bindepOnly'
21598
21655
export current_force_bindepOnly=""
@@ -21636,6 +21693,7 @@ _buildKernel-mainline-server() {
21636
21693
then
21637
21694
make deb-pkg -j $(nproc)
21638
21695
[[ "$?" != "0" ]] && currentExitStatus=1
21696
+ _supplement_kernel_debPkg
21639
21697
else
21640
21698
_messageError 'bad: current_force_bindepOnly'
21641
21699
export current_force_bindepOnly=""
0 commit comments