mirror of
https://github.com/armbian/build.git
synced 2026-05-06 04:36:25 +02:00
arduino-uno-q: install USB gadget scripts unconditionally in BSP
Some checks failed
Infrastructure: Dispatch to fork / 📢 Run repository dispatch on fork (push) Has been cancelled
Infrastructure: Mirror to Codeberg / codeberg (push) Has been cancelled
Maintenance: Announce merge / announcepush (push) Has been cancelled
Maintenance: Security scan / Scorecards analysis (push) Has been cancelled
Data: Sync board list / Send dispatch (push) Has been cancelled
Some checks failed
Infrastructure: Dispatch to fork / 📢 Run repository dispatch on fork (push) Has been cancelled
Infrastructure: Mirror to Codeberg / codeberg (push) Has been cancelled
Maintenance: Announce merge / announcepush (push) Has been cancelled
Maintenance: Security scan / Scorecards analysis (push) Has been cancelled
Data: Sync board list / Send dispatch (push) Has been cancelled
The BSP package is built once per board+branch and cached across all distributions. Conditioning the installation on DISTRIBUTION inside a post_family_tweaks_bsp__ hook causes the CI to cache a BSP built for Debian (without gadget files), then reuse it for Ubuntu builds where systemctl enable usbgadget-rndis.service fails because the service file is missing. Install the files unconditionally in the BSP and keep the service enablement conditional in post_family_tweaks__ where DISTRIBUTION can be reliably checked per-image.
This commit is contained in:
parent
a74b8a89f3
commit
4cd04e6660
@ -41,7 +41,8 @@ function post_family_tweaks__arduino-uno-q() {
|
||||
}
|
||||
|
||||
function post_family_tweaks_bsp__arduino-uno-q_usb_gadget() {
|
||||
[[ "${DISTRIBUTION}" != "Ubuntu" ]] && return 0
|
||||
# BSP is built once and cached across distros, so install files unconditionally.
|
||||
# The usbgadget-rndis service is enabled in post_family_tweaks__ only when adbd is unavailable.
|
||||
display_alert "Installing USB gadget network scripts" "${BOARD}" "info"
|
||||
install -Dm755 "$SRC/packages/bsp/usb-gadget-network/setup-usbgadget-network.sh" "$destination/usr/local/bin/setup-usbgadget-network.sh"
|
||||
install -Dm755 "$SRC/packages/bsp/usb-gadget-network/remove-usbgadget-network.sh" "$destination/usr/local/bin/remove-usbgadget-network.sh"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user