Skip to content

Commit a118c55

Browse files
authored
Merge branch 'main' into build-extensions
2 parents ce95b07 + 4150cd4 commit a118c55

File tree

454 files changed

+1039
-15059
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

454 files changed

+1039
-15059
lines changed

.github/CODEOWNERS

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ config/boards/bananapim2pro.conf @igorpecovnik
3232
config/boards/bananapim2s.conf @jeanrhum @pyavitz
3333
config/boards/bananapim2zero.csc @mhawkins-consultant
3434
config/boards/bananapim3.csc @AaronNGray
35-
config/boards/bananapim4berry.csc @The-going
35+
config/boards/bananapim4berry.conf @The-going
3636
config/boards/bananapim4zero.conf @pyavitz
3737
config/boards/bananapim5.conf @igorpecovnik
3838
config/boards/bananapim64.csc @devdotnetorg
@@ -270,17 +270,17 @@ patch/u-boot/v2023.10/ @adeepn
270270
patch/u-boot/v2024.01/ @Tonymac32 @rpardini
271271
patch/u-boot/v2024.01/board_orangepi5/ @efectn
272272
patch/u-boot/v2024.04-rock5b-radxa/ @amazingfate @linhz0hz
273-
patch/u-boot/v2024.04/ @Tonymac32 @chraac @igorpecovnik @pyavitz @utlark
273+
patch/u-boot/v2024.04/ @Tonymac32 @chraac @pyavitz @utlark
274274
patch/u-boot/v2024.07-coolpi-cm5/ @andyshrk
275275
patch/u-boot/v2024.07/ @adeepn @igorpecovnik @monkaBlyat
276276
patch/u-boot/v2024.07/board_station-m1/ @150balbes
277-
patch/u-boot/v2024.10/ @HeyMeco @alexl83 @brentr @fridtjof
277+
patch/u-boot/v2024.10/ @HeyMeco @alexl83 @brentr @fridtjof @pyavitz
278278
patch/u-boot/v2024.10/board_bigtreetech-cb2/ @JohnTheCoolingFan
279279
patch/u-boot/v2025-sunxi/ @The-going
280280
patch/u-boot/v2025.01-rc3-coolpi-cm5/ @andyshrk
281281
patch/u-boot/v2025.01/ @ColorfulRhino @efectn @jeanrhum @joekhoobyar @paolosabatino @pyavitz @rpardini @torte71
282282
patch/u-boot/v2025.01/board_h96-tvbox-3566/ @hqnicolas
283-
patch/u-boot/v2025.04/ @IsMrX @NicoD-SBC @SuperKali @TheSnowfield @Tonymac32 @ZazaBR @amazingfate @andyshrk @catalinii @mlegenovic @rpardini @vamzii
283+
patch/u-boot/v2025.04/ @IsMrX @NicoD-SBC @SuperKali @TheSnowfield @Tonymac32 @ZazaBR @amazingfate @andyshrk @catalinii @igorpecovnik @mlegenovic @rpardini @vamzii
284284
sources/families/bcm2711.conf @PanderMusubi @teknoid
285285
sources/families/genio.conf @HeyMeco
286286
sources/families/imx8m.conf @schmiedelm

config/boards/helios4.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ KERNEL_TEST_TARGET="current"
1313

1414
function post_family_config__helios4_extra_packages() {
1515
add_packages_to_image "fancontrol"
16+
add_packages_to_image "ethtool"
1617
}

config/boards/khadas-vim3.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ BOOT_LOGO="desktop"
1212
BOOT_FDT_FILE="amlogic/meson-g12b-a311d-khadas-vim3.dtb" # there is also a s922x dtb, but vim3 is a311d only
1313
ASOUND_STATE="asound.state.khadas-vim3"
1414

15-
BOOTBRANCH_BOARD="tag:v2025.04-rc5"
15+
BOOTBRANCH_BOARD="tag:v2025.04"
1616
BOOTPATCHDIR="v2025.04" # this has 'board_khadas-vim3' which has a patch to boot USB/NVMe/SCSI first
1717

1818
declare -g KHADAS_OOWOW_BOARD_ID="VIM3" # for use with EXT=output-image-oowow

config/boards/mixtile-blade3.csc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@ declare -g UEFI_EDK2_BOARD_ID="blade3" # This _only_ used for uefi-edk2-rk3588 e
1212

1313
# Vendor u-boot; use the default family (rockchip-rk3588) u-boot. See config/sources/families/rockchip-rk3588.conf
1414
function post_family_config__vendor_uboot_mekotronics() {
15-
display_alert "$BOARD" "Configuring $BOARD vendor u-boot" "info"
15+
display_alert "$BOARD" "Configuring $BOARD vendor u-boot (using Radxa's older next-dev-v2024.03)" "info"
1616
declare -g BOOTDELAY=1 # build injects this into u-boot config. we can then get into UMS mode and avoid the whole rockusb/rkdeveloptool thing
17+
18+
# Override the stuff from rockchip-rk3588 family; Meko's have a patch for stable MAC address that breaks with Radxa's next-dev-v2024.10+
19+
declare -g BOOTSOURCE='https://github.com/radxa/u-boot.git'
20+
declare -g BOOTBRANCH='branch:next-dev-v2024.03' # NOT next-dev-v2024.10
21+
declare -g BOOTPATCHDIR="legacy/u-boot-radxa-rk35xx"
1722
}
1823

1924
function post_family_config_branch_edge__different_dtb_for_edge() {

config/boards/nanopct6.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function post_family_config_branch_edge__nanopct6_use_mainline_uboot() {
3636
declare -g BOOTCONFIG="nanopc-t6-rk3588_defconfig"
3737
declare -g BOOTDELAY=1 # Wait for UART interrupt to enter UMS/RockUSB mode etc
3838
declare -g BOOTSOURCE="https://github.com/u-boot/u-boot.git" # We ❤️ Mainline
39-
declare -g BOOTBRANCH="tag:v2025.04-rc1"
39+
declare -g BOOTBRANCH="tag:v2025.04"
4040
declare -g BOOTPATCHDIR="v2025.04"
4141
declare -g BOOTDIR="u-boot-${BOARD}" # do not share u-boot directory
4242
declare -g UBOOT_TARGET_MAP="BL31=${RKBIN_DIR}/${BL31_BLOB} ROCKCHIP_TPL=${RKBIN_DIR}/${DDR_BLOB};;u-boot-rockchip.bin u-boot-rockchip-spi.bin"

config/boards/odroidhc4.conf

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
BOARD_NAME="Odroid HC4"
33
BOARDFAMILY="meson-sm1"
44
BOARD_MAINTAINER="igorpecovnik"
5-
BOOTCONFIG="odroid-c4_defconfig" # for the SD card; but also 'odroid-hc4_defconfig', see below at pre_config_uboot_target
5+
BOOTCONFIG="odroid-hc4_defconfig"
66
KERNEL_TARGET="current,edge"
77
KERNEL_TEST_TARGET="current"
88
MODULES_BLACKLIST="simpledrm" # SimpleDRM conflicts with Panfrost
@@ -12,8 +12,8 @@ BOOT_FDT_FILE="amlogic/meson-sm1-odroid-hc4.dtb"
1212
PACKAGE_LIST_BOARD="lm-sensors fancontrol" # SPI, sensors, manual fan control via 'pwmconfig'
1313

1414
# Newer u-boot for the HC4. There's patches in `board_odroidhc4` for the defconfigs used in the UBOOT_TARGET_MAP below.
15-
BOOTBRANCH_BOARD="tag:v2024.04"
16-
BOOTPATCHDIR="v2024.04"
15+
BOOTBRANCH_BOARD="tag:v2025.04"
16+
BOOTPATCHDIR="v2025.04"
1717

1818
# We build u-boot twice: C4 config for SD cards, and HC4 (with SATA/PCI/SPI) config for SPI.
1919
UBOOT_TARGET_MAP="
@@ -39,22 +39,6 @@ function post_uboot_custom_postprocess__odroid_hc4_uboot() {
3939
uboot_g12_postprocess "${SRC}"/cache/sources/amlogic-boot-fip/odroid-hc4 g12a
4040
}
4141

42-
# switch defconfig according to target, so we can still use the same post_config_uboot_target for both.
43-
function pre_config_uboot_target__odroidhc4_defconfig_per_target() {
44-
case "${target_make}" in
45-
"armbian_target=spi "*)
46-
BOOTCONFIG="odroid-hc4_defconfig"
47-
;;
48-
"armbian_target=sd "*)
49-
BOOTCONFIG="odroid-c4_defconfig"
50-
;;
51-
*)
52-
exit_with_error "Unknown target_make: '${target_make}', unknown BOOTCONFIG."
53-
;;
54-
esac
55-
display_alert "setting BOOTCONFIG for target" "${target_make}: '${BOOTCONFIG}'" "info"
56-
}
57-
5842
# Enable extra u-boot .config options, this way we avoid patching defconfig
5943
function post_config_uboot_target__extra_configs_for_odroid_hc4() {
6044
display_alert "u-boot for ${BOARD}" "u-boot: enable preboot & pci+usb start in preboot" "info"

config/boards/quartz64a.csc

Lines changed: 65 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ function post_family_config__quartz64_a_use_mainline_uboot() {
1616
display_alert "$BOARD" "Using mainline U-Boot for $BOARD / $BRANCH" "info"
1717

1818
declare -g BOOTSOURCE="https://github.com/u-boot/u-boot.git" # We ❤️ Mainline U-Boot
19-
declare -g BOOTBRANCH="tag:v2024.07"
20-
declare -g BOOTPATCHDIR="v2024.07/board_${BOARD}"
21-
# Don't set BOOTDIR, allow shared U-Boot source directory for disk space efficiency
19+
declare -g BOOTBRANCH="tag:v2025.04"
20+
declare -g BOOTPATCHDIR="v2025.04"
21+
declare -g BOOTDELAY=1 # Wait for UART interrupt to enter UMS/RockUSB mode etc
2222

2323
declare -g UBOOT_TARGET_MAP="BL31=${RKBIN_DIR}/${BL31_BLOB} ROCKCHIP_TPL=${RKBIN_DIR}/${DDR_BLOB};;u-boot-rockchip.bin"
2424

@@ -30,3 +30,65 @@ function post_family_config__quartz64_a_use_mainline_uboot() {
3030
dd "if=$1/u-boot-rockchip.bin" "of=$2" bs=32k seek=1 conv=notrunc status=none
3131
}
3232
}
33+
34+
# Quartz64a's OTG port is the BLACK one, on top of the USB3 port. Use an USB-A cable; not all cables work.
35+
function pre_config_uboot_target__quartz64a_patch_uboot_dtsi_for_ums() {
36+
display_alert "u-boot for ${BOARD}" "u-boot: add to u-boot dtsi for UMS" "info" # avoid a patch, just append to the dtsi file
37+
cat <<- UBOOT_BOARD_DTSI_OTG >> arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi
38+
&usb_host0_xhci { dr_mode = "otg"; };
39+
UBOOT_BOARD_DTSI_OTG
40+
}
41+
42+
# "rockchip-common: boot SD card first, then NVMe, then SATA, then USB, then mmc"
43+
# On quartz64a, mmc0 is the eMMC, mmc1 is the SD card slot
44+
function pre_config_uboot_target__quartz64a_patch_rockchip_common_boot_order() {
45+
declare -a rockchip_uboot_targets=("mmc1" "nvme" "scsi" "usb" "mmc0" "pxe" "dhcp" "spi") # for future make-this-generic delight
46+
display_alert "u-boot for ${BOARD}/${BRANCH}" "u-boot: adjust boot order to '${rockchip_uboot_targets[*]}'" "info"
47+
sed -i -e "s/#define BOOT_TARGETS.*/#define BOOT_TARGETS \"${rockchip_uboot_targets[*]}\"/" include/configs/rockchip-common.h
48+
regular_git diff -u include/configs/rockchip-common.h || true
49+
}
50+
51+
# A better equivalent to patching a defconfig, do changes to .config via code.
52+
# For UMS/RockUSB to work in u-boot, &usb_host0_xhci { dr_mode = "otg" } is required. See 0002-board-rockchip-ODROID-M1-override-kernel-DT-for-xhci-otg-dr_mode.patch
53+
function post_config_uboot_target__extra_configs_for_quartz64a() {
54+
[[ "${BRANCH}" == "edge" || "${BRANCH}" == "current" ]] || return 0
55+
56+
display_alert "u-boot for ${BOARD}" "u-boot: enable preboot & flash leds in preboot" "info"
57+
run_host_command_logged scripts/config --enable CONFIG_USE_PREBOOT
58+
run_host_command_logged scripts/config --set-str CONFIG_PREBOOT "'echo armbian leds; led diy-led on; led work-led on; sleep 0.1; led diy-led off; led work-led off; sleep 0.1; led diy-led on;'" # double quote
59+
60+
display_alert "u-boot for ${BOARD}" "u-boot: enable EFI debugging command" "info"
61+
run_host_command_logged scripts/config --enable CMD_EFIDEBUG
62+
run_host_command_logged scripts/config --enable CMD_NVEDIT_EFI
63+
64+
display_alert "u-boot for ${BOARD}" "u-boot: enable more compression support" "info"
65+
run_host_command_logged scripts/config --enable CONFIG_LZO
66+
run_host_command_logged scripts/config --enable CONFIG_BZIP2
67+
run_host_command_logged scripts/config --enable CONFIG_ZSTD
68+
69+
display_alert "u-boot for ${BOARD}" "u-boot: enable gpio LED support" "info"
70+
run_host_command_logged scripts/config --enable CONFIG_LED
71+
run_host_command_logged scripts/config --enable CONFIG_LED_GPIO
72+
73+
display_alert "u-boot for ${BOARD}" "u-boot: enable networking cmds" "info"
74+
run_host_command_logged scripts/config --enable CONFIG_CMD_NFS
75+
run_host_command_logged scripts/config --enable CONFIG_CMD_WGET
76+
run_host_command_logged scripts/config --enable CONFIG_CMD_DNS
77+
run_host_command_logged scripts/config --enable CONFIG_PROT_TCP
78+
run_host_command_logged scripts/config --enable CONFIG_PROT_TCP_SACK
79+
80+
display_alert "u-boot for ${BOARD}" "u-boot: enable more cmdline commands" "info" # for extra compat with eg HAOS
81+
run_host_command_logged scripts/config --enable CONFIG_CMD_SQUASHFS
82+
run_host_command_logged scripts/config --enable CONFIG_CMD_SETEXPR
83+
run_host_command_logged scripts/config --enable CONFIG_CMD_FILEENV # added via cmd-fileenv-read-string-from-file-into-env.patch
84+
run_host_command_logged scripts/config --enable CONFIG_CMD_CAT
85+
run_host_command_logged scripts/config --enable CONFIG_CMD_XXD
86+
87+
display_alert "u-boot for ${BOARD}/${BRANCH}" "u-boot: enabling UMS/RockUSB Gadget functionality" "info"
88+
declare -a enable_configs=("CONFIG_CMD_USB_MASS_STORAGE" "CONFIG_USB_GADGET" "USB_GADGET_DOWNLOAD" "CONFIG_USB_FUNCTION_ROCKUSB" "CONFIG_USB_FUNCTION_ACM" "CONFIG_CMD_ROCKUSB" "CONFIG_CMD_USB_MASS_STORAGE")
89+
for config in "${enable_configs[@]}"; do
90+
run_host_command_logged scripts/config --enable "${config}"
91+
done
92+
# Auto-enabled by the above, force off...
93+
run_host_command_logged scripts/config --disable USB_FUNCTION_FASTBOOT
94+
}

config/boards/thinkpad-x13s.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ enable_extension "grub-with-dtb" # important, puts the whole DTB handling in pla
2727
declare -g BOARD_FIRMWARE_INSTALL="-full"
2828

2929
function post_family_config_branch_sc8280xp__jhovolds_wip_kernel() {
30-
declare -g KERNEL_MAJOR_MINOR="6.14" # Major and minor versions of this kernel.
31-
declare -g KERNELBRANCH='branch:wip/sc8280xp-6.14' # @TODO: this is down to 31 patches, from hundreds back in the day. Considering merging this with default arm64 uefi kernel
30+
declare -g KERNEL_MAJOR_MINOR="6.15" # Major and minor versions of this kernel.
31+
declare -g KERNELBRANCH='branch:wip/sc8280xp-6.15' # @TODO: this is up to 47 patches, from 28 around 6.13; wait a bit until speculating about merging with uefi-arm64
3232
declare -g KERNELSOURCE='https://github.com/jhovold/linux.git'
3333
declare -g LINUXCONFIG="linux-${ARCH}-${BRANCH}" # for this board: linux-arm64-sc8280xp
3434
display_alert "Set up jhovold's kernel ${KERNELBRANCH} for" "${BOARD}" "info"

config/kernel/linux-rockchip64-edge.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,7 @@ CONFIG_TUN_VNET_CROSS_LE=y
798798
CONFIG_VETH=m
799799
CONFIG_VIRTIO_NET=m
800800
CONFIG_NLMON=m
801+
CONFIG_NETKIT=y
801802
CONFIG_NET_VRF=m
802803
CONFIG_MHI_NET=m
803804
CONFIG_ATM_DUMMY=m
@@ -1932,6 +1933,7 @@ CONFIG_V4L_MEM2MEM_DRIVERS=y
19321933
CONFIG_VIDEO_MEM2MEM_DEINTERLACE=m
19331934
CONFIG_VIDEO_ROCKCHIP_RGA=m
19341935
CONFIG_VIDEO_SYNOPSYS_HDMIRX=m
1936+
CONFIG_VIDEO_SYNOPSYS_HDMIRX_LOAD_DEFAULT_EDID=y
19351937
CONFIG_VIDEO_HANTRO=m
19361938
CONFIG_SMS_SDIO_DRV=m
19371939
CONFIG_VIDEO_HI556=m

config/sources/families/include/meson64_common.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ case $BRANCH in
3939
declare -g KERNEL_MAJOR_MINOR="6.12"
4040
;;
4141
edge)
42-
declare -g KERNEL_MAJOR_MINOR="6.14"
42+
declare -g KERNEL_MAJOR_MINOR="6.15"
4343
;;
4444

4545
esac

config/sources/families/include/rockchip64_common.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ case $BRANCH in
3333
;;
3434

3535
edge)
36-
declare -g KERNEL_MAJOR_MINOR="6.14"
36+
declare -g KERNEL_MAJOR_MINOR="6.15"
3737
declare -g LINUXFAMILY=rockchip64
3838
declare -g LINUXCONFIG='linux-rockchip64-'$BRANCH
3939
;;

config/sources/families/include/sunxi64_common.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ case $BRANCH in
3131

3232
current)
3333
declare -g KERNEL_MAJOR_MINOR="6.12" # Major and minor versions of this kernel.
34-
declare -g KERNELBRANCH="tag:v6.12.23"
34+
declare -g KERNELBRANCH="tag:v6.12.30"
3535
;;
3636

3737
edge)

config/sources/families/include/sunxi_common.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ case $BRANCH in
3232

3333
current)
3434
declare -g KERNEL_MAJOR_MINOR="6.12" # Major and minor versions of this kernel.
35-
declare -g KERNELBRANCH="tag:v6.12.23"
35+
declare -g KERNELBRANCH="tag:v6.12.30"
3636
;;
3737

3838
edge)

config/sources/families/include/uefi_common.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ case "${BRANCH}" in
4141
;;
4242

4343
edge)
44-
declare -g KERNEL_MAJOR_MINOR="6.14"
44+
declare -g KERNEL_MAJOR_MINOR="6.15"
4545
;;
4646
esac
4747

config/sources/mainline-kernel.conf.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# Shared versioning logic for Armbian mainline kernels.
88
function mainline_kernel_decide_version__upstream_release_candidate_number() {
99
[[ -n "${KERNELBRANCH}" ]] && return 0 # if already set, don't touch it; that way other hooks can run in any order
10-
if [[ "${KERNEL_MAJOR_MINOR}" == "6.15" ]]; then # @TODO: roll over to next MAJOR.MINOR and MAJOR.MINOR-rc1 when it is released
11-
declare -g KERNELBRANCH="tag:v6.15-rc1"
10+
if [[ "${KERNEL_MAJOR_MINOR}" == "6.16" ]]; then # @TODO: roll over to next MAJOR.MINOR and MAJOR.MINOR-rc1 when it is released
11+
declare -g KERNELBRANCH="tag:v6.16-rc1"
1212
display_alert "mainline-kernel: upstream release candidate" "Using KERNELBRANCH='${KERNELBRANCH}' for KERNEL_MAJOR_MINOR='${KERNEL_MAJOR_MINOR}'" "info"
1313
fi
1414
}

extensions/grub.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,13 @@ pre_umount_final_image__900_export_kernel_and_initramfs() {
247247
}
248248

249249
configure_grub() {
250+
display_alert "Extension: ${EXTENSION}: Configuring GRUB" "UEFI GRUB; SERIALCON=${SERIALCON}" "info"
251+
252+
# If SERIALCON is _not_ tty1 or tty0, include a console=tty0 first.
253+
if [[ "${SERIALCON}" != "tty1" && "${SERIALCON}" != "tty0" ]]; then
254+
GRUB_CMDLINE_LINUX_DEFAULT+=" console=tty0"
255+
fi
256+
250257
[[ -n "$SERIALCON" ]] &&
251258
GRUB_CMDLINE_LINUX_DEFAULT+=" console=${SERIALCON}"
252259

@@ -266,7 +273,7 @@ configure_grub() {
266273
run_host_command_logged chmod -v +x "${MOUNT}"/usr/share/desktop-base/grub_background.sh
267274
fi
268275

269-
display_alert "Extension: ${EXTENSION}: GRUB EFI kernel cmdline" "${GRUB_CMDLINE_LINUX_DEFAULT} distro=${UEFI_GRUB_DISTRO_NAME} timeout=${UEFI_GRUB_TIMEOUT}" ""
276+
display_alert "Extension: ${EXTENSION}: GRUB EFI kernel cmdline" "cmdline '${GRUB_CMDLINE_LINUX_DEFAULT}' distro=${UEFI_GRUB_DISTRO_NAME} timeout=${UEFI_GRUB_TIMEOUT}" ""
270277
cat <<- grubCfgFrag >> "${MOUNT}"/etc/default/grub.d/98-armbian.cfg
271278
GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_DEFAULT}"
272279
GRUB_TIMEOUT_STYLE=menu # Show the menu with Kernel options (Armbian or -generic)...

lib/functions/artifacts/artifacts-obtain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ function build_artifact_for_image() {
397397

398398
function pack_artifact_to_local_cache() {
399399
if [[ "${artifact_type}" == "deb-tar" ]]; then
400-
declare -a files_to_tar=()
400+
wait_for_disk_sync "before pack_artifact_to_local_cache for deb-tar"
401401
run_host_command_logged tar -C "${artifact_base_dir}" -cf "${artifact_final_file}" "${artifact_map_debs[@]}"
402402
display_alert "Created deb-tar artifact" "deb-tar: ${artifact_final_file}" "info"
403403
fi

lib/functions/compilation/kernel-debs.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,9 +458,8 @@ function kernel_package_callback_linux_headers() {
458458
# In order for the cleanup to be correct for tools, we need to pass the VMLINUX_BTF variable,
459459
# which contains the real path to the newly compiled vmlinux file.
460460
declare make_bitbucket="&> /dev/null"
461-
[[ "${DEBUG}" == "yes" ]] && make_bitbucket=""
462-
run_host_command_logged cd "${headers_target_dir}" "&&" make "ARCH=${SRC_ARCH}" "M=scripts" clean "${make_bitbucket}"
463-
run_host_command_logged cd "${headers_target_dir}/tools" "&&" make "ARCH=${SRC_ARCH}" "VMLINUX_BTF=${kernel_work_dir}/vmlinux" clean "${make_bitbucket}"
461+
run_host_command_logged cd "${headers_target_dir}" "&&" make "ARCH=${SRC_ARCH}" "M=scripts" clean "${make_bitbucket}" "||" make "ARCH=${SRC_ARCH}" "M=scripts" clean
462+
run_host_command_logged cd "${headers_target_dir}/tools" "&&" make "ARCH=${SRC_ARCH}" "VMLINUX_BTF=${kernel_work_dir}/vmlinux" clean "${make_bitbucket}" "||" make "ARCH=${SRC_ARCH}" "VMLINUX_BTF=${kernel_work_dir}/vmlinux" clean
464463

465464
# Trim down on the tools dir a bit after cleaning.
466465
rm -rf "${headers_target_dir}/tools/perf" "${headers_target_dir}/tools/testing"

0 commit comments

Comments
 (0)