Skip to content

Commit

Permalink
hinlink-h88k: add spi lcd firmware to bsp package
Browse files Browse the repository at this point in the history
  • Loading branch information
amazingfate committed Dec 28, 2024
1 parent 06c37e5 commit f730b0a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/boards/hinlink-h88k.csc
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,15 @@ function post_family_tweaks__hinlink_h88k_naming_audios() {

return 0
}

function post_family_tweaks_bsp__hinlink_h88k_bsp_firmware_in_initrd() {
display_alert "Adding to bsp-cli" "${BOARD}: firmware in initrd" "info"
declare file_added_to_bsp_destination # will be filled in by add_file_from_stdin_to_bsp_destination
add_file_from_stdin_to_bsp_destination "/etc/initramfs-tools/hooks/hinlink-h88k-firmware" <<- 'FIRMWARE_HOOK'
#!/bin/bash
[[ "$1" == "prereqs" ]] && exit 0
. /usr/share/initramfs-tools/hook-functions
add_firmware "hinlink-h88k-240x135-lcd.bin" # firmware for 240x135 spi lcd
FIRMWARE_HOOK
run_host_command_logged chmod -v +x "${file_added_to_bsp_destination}"
}

0 comments on commit f730b0a

Please sign in to comment.