1#!/bin/sh 2 3do_socfpga_detect() { 4 . /lib/socfpga.sh 5 6 socfpga_board_detect 7} 8 9boot_hook_add preinit_main do_socfpga_detect 10