Rework JetHub symlinking

This commit is contained in:
Igor Pecovnik
2023-12-30 13:29:49 +01:00
committed by Igor
parent ea064e2698
commit e24ec9ca51
6 changed files with 5 additions and 7 deletions

View File

@@ -159,8 +159,11 @@ buildjethomecmds() {
# Wifi & Bluetooth
run_host_command_logged mkdir -pv --mode=755 "$destination/lib/firmware/" || exit_with_error "Unable to mkdir firmware"
run_host_command_logged mkdir -v --mode=775 "$destination/lib/firmware/brcm/" || exit_with_error "Unable to mkdir brcm"
run_host_command_logged cp -Pv "$SRC"/packages/bsp/jethub/"$BOARD"/{BCM4345C0.hcd,'brcmfmac43455-sdio.jethome,jethub-j100.txt','brcmfmac43455-sdio.jethome,jethub-j100.bin','brcmfmac43456-sdio.jethome,jethub-j100.txt','brcmfmac43456-sdio.jethome,jethub-j100.bin'} "$destination/lib/firmware/brcm/" || exit_with_error "Unable to copy brcm firmware symlinks"
run_host_command_logged ln -s "../BCM4345C0.hcd" "$destination/lib/firmware/brcm/BCM4345C0.hcd"
run_host_command_logged ln -s "brcmfmac43455-sdio.bin" "$destination/lib/firmware/brcm/brcmfmac43455-sdio.jethome,jethub-j100.bin"
run_host_command_logged ln -s "brcmfmac43455-sdio.txt" "$destination/lib/firmware/brcm/brcmfmac43455-sdio.jethome,jethub-j100.txt"
run_host_command_logged ln -s "brcmfmac43456-sdio.bin" "$destination/lib/firmware/brcm/brcmfmac43456-sdio.jethome,jethub-j100.bin"
run_host_command_logged ln -s "brcmfmac43456-sdio.txt" "$destination/lib/firmware/brcm/brcmfmac43456-sdio.jethome,jethub-j100.txt"
else
exit_with_error "Unexpected board \"$BOARD\""
fi

View File

@@ -1 +0,0 @@
../BCM4345C0.hcd

View File

@@ -1 +0,0 @@
brcmfmac43455-sdio.bin

View File

@@ -1 +0,0 @@
brcmfmac43455-sdio.txt

View File

@@ -1 +0,0 @@
brcmfmac43456-sdio.bin

View File

@@ -1 +0,0 @@
brcmfmac43456-sdio.txt