package: starfive: Add stfisp_setfile to starfive package

Sync the latest stfisp_setfile from JH7100.

Signed-off-by: mason.huo <mason.huo@starfivetech.com>

(cherry-pick commit 56c057d22a095e37f8a3bed296a7cea2893c9442 from jh7110-mm-devel branch)
This commit is contained in:
mason.huo
2022-04-15 19:08:38 +08:00
committed by changhuang.liang
parent cf9c62a4f1
commit a217d12606
5 changed files with 3 additions and 2 deletions
@@ -0,0 +1,17 @@
################################################################################
#
# stfisp_setfile
#
################################################################################
STFISP_SETFILE_LICENSE = GPL-2.0+
define HOST_STFISP_SETFILE_BUILD_CMDS
cp package/starfive/stfisp_setfile/stfisp_setfile.c $(@D)/
(cd $(@D); $(HOSTCC) -Wall -O2 stfisp_setfile.c -o stfisp_setfile; ./stfisp_setfile)
install -m 0755 -D $(@D)/ov4689_stf_isp_fw.bin $(TARGET_DIR)/lib/firmware/stf_isp0_fw.bin
install -m 0755 -D $(@D)/ov4689_stf_isp_fw_dump.bin $(TARGET_DIR)/lib/firmware/stf_isp0_fw_dump.bin
install -m 0755 -D $(@D)/sc2235_stf_isp_fw.bin $(TARGET_DIR)/lib/firmware/stf_isp1_fw.bin
endef
$(eval $(host-generic-package))