buildroot:Multimedia: add starfive private packages for vpu/jpu/omx

add starfive private packages: wave511 wave521 wave420l sf-omx-il sf-omx-il-test

Signed-off-by: Som Qin <som.qin@starfivetech.com>
This commit is contained in:
Som Qin
2022-06-01 22:10:35 +08:00
parent 54427dece3
commit 8bb467e8c6
14 changed files with 428 additions and 0 deletions
+1
View File
@@ -2576,4 +2576,5 @@ endmenu
menu "starfive packages"
source "package/starfive/Config.in"
endmenu
endmenu
+6
View File
@@ -1,3 +1,9 @@
# starfive packages
source "package/starfive/wave511/Config.in"
source "package/starfive/wave521/Config.in"
source "package/starfive/wave420l/Config.in"
source "package/starfive/codaj12/Config.in"
source "package/starfive/sf-omx-il/Config.in"
source "package/starfive/sf-omx-il-test/Config.in"
source "package/starfive/v4l2_test/Config.in"
source "package/starfive/stfisp_setfile/Config.in.host"
+6
View File
@@ -0,0 +1,6 @@
comment "codaj12 package"
config BR2_PACKAGE_CODAJ12
bool "codaj12"
help
codaj12 package
+66
View File
@@ -0,0 +1,66 @@
################################################################################
#
# codaj12
#
################################################################################
# CODAJ12_VERSION:=1.0.0
CODAJ12_SITE=$(TOPDIR)/../soft_3rdpart/codaj12
CODAJ12_SITE_METHOD=local
CODAJ12_INSTALL_STAGING = YES
export KERNELDIR=$(TOPDIR)/../work/linux
define CODAJ12_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) -f $(@D)/codaj12_buildroot.mak
# $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) -f $(@D)/codaj12Driver_buildroot.mak
endef
define CODAJ12_CLEAN_CMDS
endef
define CODAJ12_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0777 $(@D)/jdi/linux/driver/load.sh $(TARGET_DIR)/root/codaj12/load.sh
$(INSTALL) -D -m 0777 $(@D)/jdi/linux/driver/unload.sh $(TARGET_DIR)/root/codaj12/unload.sh
$(INSTALL) -D -m 0644 $(@D)/libcodadec.so $(TARGET_DIR)/usr/lib/libcodadec.so
# $(INSTALL) -D -m 0644 $(@D)/jdi/linux/driver/jpu.ko $(TARGET_DIR)/root/codaj12/jpu.ko
endef
define CODAJ12_INSTALL_STAGING_CMDS
mkdir -p $(STAGING_DIR)/usr/include/codaj12
$(INSTALL) -D -m 0644 $(@D)/jpuapi/jpuapi.h $(STAGING_DIR)/usr/include/codaj12/jpuapi/jpuapi.h
$(INSTALL) -D -m 0644 $(@D)/jpuapi/jpuapifunc.h $(STAGING_DIR)/usr/include/codaj12/jpuapi/jpuapifunc.h
$(INSTALL) -D -m 0644 $(@D)/jpuapi/regdefine.h $(STAGING_DIR)/usr/include/codaj12/jpuapi/regdefine.h
$(INSTALL) -D -m 0644 $(@D)/jpuapi/jpuconfig.h $(STAGING_DIR)/usr/include/codaj12/jpuapi/jpuconfig.h
$(INSTALL) -D -m 0644 $(@D)/jpuapi/jputypes.h $(STAGING_DIR)/usr/include/codaj12/jpuapi/jputypes.h
$(INSTALL) -D -m 0644 $(@D)/jpuapi/jputable.h $(STAGING_DIR)/usr/include/codaj12/jpuapi/jputable.h
$(INSTALL) -D -m 0644 $(@D)/sample/helper/cnm_fpga.h $(STAGING_DIR)/usr/include/codaj12/sample/helper/cnm_fpga.h
$(INSTALL) -D -m 0644 $(@D)/sample/helper/platform.h $(STAGING_DIR)/usr/include/codaj12/sample/helper/platform.h
$(INSTALL) -D -m 0644 $(@D)/sample/helper/yuv_feeder.h $(STAGING_DIR)/usr/include/codaj12/sample/helper/yuv_feeder.h
$(INSTALL) -D -m 0644 $(@D)/sample/helper/datastructure.h $(STAGING_DIR)/usr/include/codaj12/sample/helper/datastructure.h
$(INSTALL) -D -m 0644 $(@D)/sample/helper/jpulog.h $(STAGING_DIR)/usr/include/codaj12/sample/helper/jpulog.h
$(INSTALL) -D -m 0644 $(@D)/sample/main_helper.h $(STAGING_DIR)/usr/include/codaj12/sample/main_helper.h
$(INSTALL) -D -m 0644 $(@D)/jdi/linux/driver/jpu.h $(STAGING_DIR)/usr/include/codaj12/jdi/linux/driver/jpu.h
$(INSTALL) -D -m 0644 $(@D)/jdi/linux/driver/jmm.h $(STAGING_DIR)/usr/include/codaj12/jdi/linux/driver/jmm.h
$(INSTALL) -D -m 0644 $(@D)/jdi/jdi.h $(STAGING_DIR)/usr/include/codaj12/jdi/jdi.h
$(INSTALL) -D -m 0644 $(@D)/jdi/mm.h $(STAGING_DIR)/usr/include/codaj12/jdi/mm.h
$(INSTALL) -D -m 0644 $(@D)/config.h $(STAGING_DIR)/usr/include/codaj12/config.h
endef
define CODAJ12_UNINSTALL_TARGET_CMDS
rm -rf $(TARGET_DIR)/root/codaj12/jpu.ko
rm -rf $(TARGET_DIR)/root/codaj12/load.sh
rm -rf $(TARGET_DIR)/root/codaj12/unload.sh
endef
codaj12_WORK_DIR := $(TARGET_DIR)/../build/codaj12
codaj12driver:
ifneq ($(wildcard $(codaj12_WORK_DIR)/codaj12Driver_buildroot.mak),)
$(TARGET_MAKE_ENV) $(MAKE) -C $(codaj12_WORK_DIR) -f $(codaj12_WORK_DIR)/codaj12Driver_buildroot.mak
$(INSTALL) -D -m 0644 $(codaj12_WORK_DIR)/jdi/linux/driver/jpu.ko $(TARGET_DIR)/root/codaj12/jpu.ko
endif
$(eval $(generic-package))
@@ -0,0 +1,8 @@
config BR2_PACKAGE_SF_OMX_IL_TEST
bool "sf-omx-il-test"
depends on BR2_PACKAGE_SF_OMX_IL && BR2_PACKAGE_FFMPEG
help
sf-omx-il-test package
comment "sf-omx-il-test package requires a OpenMAX implementation"
depends on !BR2_PACKAGE_SF_OMX_IL || !BR2_PACKAGE_FFMPEG
@@ -0,0 +1,29 @@
################################################################################
#
# OMX_IL_TEST
#
################################################################################
SF_OMX_IL_TEST_VERSION:=1.0.0
SF_OMX_IL_TEST_SITE=$(TOPDIR)/../soft_3rdpart/omx-il
SF_OMX_IL_TEST_SITE_METHOD=local
SF_OMX_IL_TEST_DEPENDENCIES=sf-omx-il ffmpeg
define SF_OMX_IL_TEST_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) test
endef
define SF_OMX_IL_TEST_CLEAN_CMDS
endef
define SF_OMX_IL_TEST_INSTALL_TARGET_CMDS
$(INSTALL) -m 0777 $(@D)/video_dec_test $(TARGET_DIR)/root/video_dec_test
$(INSTALL) -m 0777 $(@D)/video_enc_test $(TARGET_DIR)/root/video_enc_test
$(INSTALL) -m 0777 $(@D)/mjpeg_dec_test $(TARGET_DIR)/root/mjpeg_dec_test
endef
define SF_OMX_IL_TEST_UNINSTALL_TARGET_CMDS
endef
$(eval $(generic-package))
+7
View File
@@ -0,0 +1,7 @@
comment "sf openmax il package"
config BR2_PACKAGE_SF_OMX_IL
bool "sf-omx-il"
depends on BR2_PACKAGE_WAVE511 && (BR2_PACKAGE_WAVE420L || BR2_PACKAGE_WAVE521) && BR2_PACKAGE_CODAJ12
help
sf-omx-il package
+41
View File
@@ -0,0 +1,41 @@
################################################################################
#
# OMX_IL
#
################################################################################
SF_OMX_IL_VERSION:=1.0.0
SF_OMX_IL_SITE=$(TOPDIR)/../soft_3rdpart/omx-il
SF_OMX_IL_SITE_METHOD=local
SF_OMX_IL_INSTALL_STAGING = YES
SF_OMX_IL_DEPENDENCIES=wave511 wave420l codaj12
define SF_OMX_IL_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
endef
define SF_OMX_IL_CLEAN_CMDS
endef
define SF_OMX_IL_INSTALL_TARGET_CMDS
$(INSTALL) -m 0644 $(@D)/libsf-omx-il.so $(TARGET_DIR)/usr/lib/libsf-omx-il.so
ln -sf libsf-omx-il.so $(TARGET_DIR)/usr/lib/libOMX_Core.so
$(INSTALL) -d $(@D)/include/khronos $(TARGET_DIR)/usr/include/omx-il
$(INSTALL) -m 0644 $(@D)/include/khronos/* $(TARGET_DIR)/usr/include/omx-il
endef
define SF_OMX_IL_INSTALL_STAGING_CMDS
$(INSTALL) -m 0644 $(@D)/libsf-omx-il.so $(STAGING_DIR)/usr/lib/libsf-omx-il.so
ln -sf libsf-omx-il.so $(STAGING_DIR)/usr/lib/libOMX_Core.so
$(INSTALL) -d $(@D)/include/khronos $(STAGING_DIR)/usr/include/omx-il
$(INSTALL) -m 0644 $(@D)/include/khronos/* $(STAGING_DIR)/usr/include/omx-il
endef
define SF_OMX_IL_UNINSTALL_TARGET_CMDS
endef
$(eval $(generic-package))
+7
View File
@@ -0,0 +1,7 @@
comment "wave420l package"
config BR2_PACKAGE_WAVE420L
bool "wave420l"
help
wave420l package
+82
View File
@@ -0,0 +1,82 @@
################################################################################
#
# WAVE420L
#
################################################################################
WAVE420L_VERSION:=1.0.0
WAVE420L_SITE=$(TOPDIR)/../soft_3rdpart/wave420l/code
WAVE420L_SITE_METHOD=local
WAVE420L_INSTALL_STAGING = YES
export KERNELDIR=$(TOPDIR)/../work/linux
define WAVE420L_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) -f $(@D)/WaveEncoder_buildroot.mak
# $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) -f $(@D)/WaveEncDriver_buildroot.mak
endef
define WAVE420L_CLEAN_CMDS
endef
define WAVE420L_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0777 $(@D)/vdi/linux/driver/load.sh $(TARGET_DIR)/root/wave420l/venc_load.sh
$(INSTALL) -D -m 0777 $(@D)/vdi/linux/driver/unload.sh $(TARGET_DIR)/root/wave420l/venc_unload.sh
$(INSTALL) -D -m 0644 $(@D)/libsfenc.so $(TARGET_DIR)/usr/lib/libsfenc.so
$(INSTALL) -D -m 0644 $(WAVE420L_SITE)/../firmware/monet.bin $(TARGET_DIR)/lib/firmware/monet.bin
$(INSTALL) -D -m 0644 $(@D)/cfg/encoder_defconfig.cfg $(TARGET_DIR)/lib/firmware/encoder_defconfig.cfg
endef
define WAVE420L_INSTALL_STAGING_CMDS
mkdir -p $(STAGING_DIR)/usr/include/wave420l
$(INSTALL) -D -m 0644 $(@D)/vpuapi/vpuconfig.h $(STAGING_DIR)/usr/include/wave420l/vpuapi/vpuconfig.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/product.h $(STAGING_DIR)/usr/include/wave420l/vpuapi/product.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/vputypes.h $(STAGING_DIR)/usr/include/wave420l/vpuapi/vputypes.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/vpuapi.h $(STAGING_DIR)/usr/include/wave420l/vpuapi/vpuapi.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/vpuapifunc.h $(STAGING_DIR)/usr/include/wave420l/vpuapi/vpuapifunc.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/coda9/coda9_vpuconfig.h $(STAGING_DIR)/usr/include/wave420l/vpuapi/coda9/coda9_vpuconfig.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/coda9/coda9.h $(STAGING_DIR)/usr/include/wave420l/vpuapi/coda9/coda9.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/coda9/coda9_regdefine.h $(STAGING_DIR)/usr/include/wave420l/vpuapi/coda9/coda9_regdefine.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/wave/coda7q/coda7q_regdefine.h $(STAGING_DIR)/usr/include/wave420l/vpuapi/wave/coda7q/coda7q_regdefine.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/wave/coda7q/coda7q.h $(STAGING_DIR)/usr/include/wave420l/vpuapi/wave/coda7q/coda7q.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/wave/wave4/wave4.h $(STAGING_DIR)/usr/include/wave420l/vpuapi/wave/wave4/wave4.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/wave/wave4/wave4_regdefine.h $(STAGING_DIR)/usr/include/wave420l/vpuapi/wave/wave4/wave4_regdefine.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/wave/wave5/wave5.h $(STAGING_DIR)/usr/include/wave420l/vpuapi/wave/wave5/wave5.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/wave/wave5/wave5_regdefine.h $(STAGING_DIR)/usr/include/wave420l/vpuapi/wave/wave5/wave5_regdefine.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/wave/common/common.h $(STAGING_DIR)/usr/include/wave420l/vpuapi/wave/common/common.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/wave/common/common_vpuconfig.h $(STAGING_DIR)/usr/include/wave420l/vpuapi/wave/common/common_vpuconfig.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/wave/common/common_regdefine.h $(STAGING_DIR)/usr/include/wave420l/vpuapi/wave/common/common_regdefine.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/vpuerror.h $(STAGING_DIR)/usr/include/wave420l/vpuapi/vpuerror.h
$(INSTALL) -D -m 0644 $(@D)/sample/helper/misc/pbu.h $(STAGING_DIR)/usr/include/wave420l/sample/helper/misc/pbu.h
$(INSTALL) -D -m 0644 $(@D)/sample/helper/misc/skip.h $(STAGING_DIR)/usr/include/wave420l/sample/helper/misc/skip.h
$(INSTALL) -D -m 0644 $(@D)/sample/helper/misc/getopt.h $(STAGING_DIR)/usr/include/wave420l/sample/helper/misc/getopt.h
$(INSTALL) -D -m 0644 $(@D)/sample/helper/misc/header_struct.h $(STAGING_DIR)/usr/include/wave420l/sample/helper/misc/header_struct.h
$(INSTALL) -D -m 0644 $(@D)/sample/helper/misc/debug.h $(STAGING_DIR)/usr/include/wave420l/sample/helper/misc/debug.h
$(INSTALL) -D -m 0644 $(@D)/sample/helper/msvc/inttypes.h $(STAGING_DIR)/usr/include/wave420l/sample/helper/msvc/inttypes.h
$(INSTALL) -D -m 0644 $(@D)/sample/helper/msvc/stdint.h $(STAGING_DIR)/usr/include/wave420l/sample/helper/msvc/stdint.h
$(INSTALL) -D -m 0644 $(@D)/sample/helper/main_helper.h $(STAGING_DIR)/usr/include/wave420l/sample/helper/main_helper.h
$(INSTALL) -D -m 0644 $(@D)/vdi/mm.h $(STAGING_DIR)/usr/include/wave420l/vdi/mm.h
$(INSTALL) -D -m 0644 $(@D)/vdi/linux/driver/vmm.h $(STAGING_DIR)/usr/include/wave420l/vdi/linux/driver/vmm.h
$(INSTALL) -D -m 0644 $(@D)/vdi/linux/driver/vpu.h $(STAGING_DIR)/usr/include/wave420l/vdi/linux/driver/vpu.h
$(INSTALL) -D -m 0644 $(@D)/vdi/vdi.h $(STAGING_DIR)/usr/include/wave420l/vdi/vdi.h
$(INSTALL) -D -m 0644 $(@D)/vdi/vdi_osal.h $(STAGING_DIR)/usr/include/wave420l/vdi/vdi_osal.h
$(INSTALL) -D -m 0644 $(@D)/config.h $(STAGING_DIR)/usr/include/wave420l/config.h
endef
define WAVE420L_UNINSTALL_TARGET_CMDS
rm -rf $(TARGET_DIR)/root/venc.ko
rm -rf $(TARGET_DIR)/root/venc_load.sh
rm -rf $(TARGET_DIR)/root/venc_unload.sh
endef
WAVE420L_WORK_DIR := $(TARGET_DIR)/../build/wave420l-$(WAVE420L_VERSION)
wave420ldriver:
ifneq ($(wildcard $(WAVE420L_WORK_DIR)/WaveEncDriver_buildroot.mak),)
$(TARGET_MAKE_ENV) $(MAKE) -C $(WAVE420L_WORK_DIR) -f $(WAVE420L_WORK_DIR)/WaveEncDriver_buildroot.mak
$(INSTALL) -D -m 0644 $(WAVE420L_WORK_DIR)/vdi/linux/driver/venc.ko $(TARGET_DIR)/root/wave420l/venc.ko
endif
$(eval $(generic-package))
+6
View File
@@ -0,0 +1,6 @@
comment "wave511 package"
config BR2_PACKAGE_WAVE511
bool "wave511"
help
wave511 package
+80
View File
@@ -0,0 +1,80 @@
################################################################################
#
# wave511
#
################################################################################
WAVE511_SITE=$(TOPDIR)/../soft_3rdpart/wave511/code
WAVE511_SITE_METHOD=local
WAVE511_INSTALL_STAGING = YES
export KERNELDIR=$(TOPDIR)/../work/linux
define WAVE511_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) -f $(@D)/WaveDecode_buildroot.mak
# $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) -f $(@D)/WaveDecDriver_buildroot.mak
endef
define WAVE511_CLEAN_CMDS
endef
define WAVE511_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0777 $(@D)/vdi/linux/driver/load.sh $(TARGET_DIR)/root/wave511/vdec_load.sh
$(INSTALL) -D -m 0777 $(@D)/vdi/linux/driver/unload.sh $(TARGET_DIR)/root/wave511/vdec_unload.sh
$(INSTALL) -D -m 0644 $(@D)/libsfdec.so $(TARGET_DIR)/usr/lib/libsfdec.so
$(INSTALL) -D -m 0644 $(WAVE511_SITE)/../firmware/chagall.bin $(TARGET_DIR)/lib/firmware/chagall.bin
endef
define WAVE511_INSTALL_STAGING_CMDS
mkdir -p $(STAGING_DIR)/usr/include/wave511
$(INSTALL) -D -m 0644 $(@D)/sample_v2/component_list_decoder.h $(STAGING_DIR)/usr/include/wave511/sample_v2/component_list_decoder.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/component_list_encoder.h $(STAGING_DIR)/usr/include/wave511/sample_v2/component_list_encoder.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/helper/misc/pbu.h $(STAGING_DIR)/usr/include/wave511/sample_v2/helper/misc/pbu.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/helper/misc/header_struct.h $(STAGING_DIR)/usr/include/wave511/sample_v2/helper/misc/header_struct.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/helper/misc/json_output.h $(STAGING_DIR)/usr/include/wave511/sample_v2/helper/misc/json_output.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/helper/misc/debug.h $(STAGING_DIR)/usr/include/wave511/sample_v2/helper/misc/debug.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/helper/misc/bw_monitor.h $(STAGING_DIR)/usr/include/wave511/sample_v2/helper/misc/bw_monitor.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/helper/main_helper.h $(STAGING_DIR)/usr/include/wave511/sample_v2/helper/main_helper.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/component/component.h $(STAGING_DIR)/usr/include/wave511/sample_v2/component/component.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/component/cnm_app_internal.h $(STAGING_DIR)/usr/include/wave511/sample_v2/component/cnm_app_internal.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/component/cnm_app.h $(STAGING_DIR)/usr/include/wave511/sample_v2/component/cnm_app.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/component/component_list.h $(STAGING_DIR)/usr/include/wave511/sample_v2/component/component_list.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/component_list_all.h $(STAGING_DIR)/usr/include/wave511/sample_v2/component_list_all.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/component_encoder/encoder_listener.h $(STAGING_DIR)/usr/include/wave511/sample_v2/component_encoder/encoder_listener.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/component_decoder/decoder_listener.h $(STAGING_DIR)/usr/include/wave511/sample_v2/component_decoder/decoder_listener.h
$(INSTALL) -D -m 0644 $(@D)/vdi/vdi_osal.h $(STAGING_DIR)/usr/include/wave511/vdi/vdi_osal.h
$(INSTALL) -D -m 0644 $(@D)/vdi/linux/driver/vmm.h $(STAGING_DIR)/usr/include/wave511/vdi/linux/driver/vmm.h
$(INSTALL) -D -m 0644 $(@D)/vdi/linux/driver/vpu.h $(STAGING_DIR)/usr/include/wave511/vdi/linux/driver/vpu.h
$(INSTALL) -D -m 0644 $(@D)/vdi/mm.h $(STAGING_DIR)/usr/include/wave511/vdi/mm.h
$(INSTALL) -D -m 0644 $(@D)/vdi/vdi.h $(STAGING_DIR)/usr/include/wave511/vdi/vdi.h
$(INSTALL) -D -m 0644 $(@D)/config.h $(STAGING_DIR)/usr/include/wave511/config.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/product.h $(STAGING_DIR)/usr/include/wave511/vpuapi/product.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/coda9/coda9_vpuconfig.h $(STAGING_DIR)/usr/include/wave511/vpuapi/coda9/coda9_vpuconfig.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/coda9/coda9.h $(STAGING_DIR)/usr/include/wave511/vpuapi/coda9/coda9.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/coda9/coda9_regdefine.h $(STAGING_DIR)/usr/include/wave511/vpuapi/coda9/coda9_regdefine.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/vpuapi.h $(STAGING_DIR)/usr/include/wave511/vpuapi/vpuapi.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/vpuconfig.h $(STAGING_DIR)/usr/include/wave511/vpuapi/vpuconfig.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/wave/wave5.h $(STAGING_DIR)/usr/include/wave511/vpuapi/wave/wave5.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/wave/wave5_regdefine.h $(STAGING_DIR)/usr/include/wave511/vpuapi/wave/wave5_regdefine.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/vpuerror.h $(STAGING_DIR)/usr/include/wave511/vpuapi/vpuerror.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/vputypes.h $(STAGING_DIR)/usr/include/wave511/vpuapi/vputypes.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/vpuapifunc.h $(STAGING_DIR)/usr/include/wave511/vpuapi/vpuapifunc.h
endef
define WAVE511_UNINSTALL_TARGET_CMDS
rm -rf $(TARGET_DIR)/root/vdec.ko
rm -rf $(TARGET_DIR)/root/vdec_load.sh
rm -rf $(TARGET_DIR)/root/vdec_unload.sh
endef
wave511_WORK_DIR := $(TARGET_DIR)/../build/wave511
wave511driver:
ifneq ($(wildcard $(wave511_WORK_DIR)/WaveDecDriver_buildroot.mak),)
$(TARGET_MAKE_ENV) $(MAKE) -C $(wave511_WORK_DIR) -f $(wave511_WORK_DIR)/WaveDecDriver_buildroot.mak
$(INSTALL) -D -m 0644 $(wave511_WORK_DIR)/vdi/linux/driver/vdec.ko $(TARGET_DIR)/root/wave511/vdec.ko
endif
$(eval $(generic-package))
+7
View File
@@ -0,0 +1,7 @@
comment "wave521 package"
config BR2_PACKAGE_WAVE521
bool "wave521"
help
wave521 package
+82
View File
@@ -0,0 +1,82 @@
################################################################################
#
# wave521
#
################################################################################
WAVE521_VERSION:=1.0.0
WAVE521_SITE=$(TOPDIR)/../soft_3rdpart/wave521/code
WAVE521_SITE_METHOD=local
WAVE521_INSTALL_STAGING = YES
export KERNELDIR=$(TOPDIR)/../work/linux
define WAVE521_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) -f $(@D)/WaveEncoder_buildroot.mak
# $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) -f $(@D)/WaveEncDriver_buildroot.mak
endef
define WAVE521_CLEAN_CMDS
endef
define WAVE521_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0777 $(@D)/vdi/linux/driver/load.sh $(TARGET_DIR)/root/wave521/venc_load.sh
$(INSTALL) -D -m 0777 $(@D)/vdi/linux/driver/unload.sh $(TARGET_DIR)/root/wave521/venc_unload.sh
$(INSTALL) -D -m 0644 $(@D)/libsfenc.so $(TARGET_DIR)/usr/lib/libsfenc.so
$(INSTALL) -D -m 0644 $(@D)/cfg/encoder_defconfig.cfg $(TARGET_DIR)/lib/firmware/encoder_defconfig.cfg
# $(INSTALL) -D -m 0644 $(@D)/vdi/linux/driver/venc.ko $(TARGET_DIR)/root/wave521/venc.ko
# $(INSTALL) -D -m 0644 $(WAVE521_SITE)/../firmware/chagall.bin $(TARGET_DIR)/root/wave521/chagall.bin
endef
define WAVE521_INSTALL_STAGING_CMDS
mkdir -p $(STAGING_DIR)/usr/include/wave521
$(INSTALL) -D -m 0644 $(@D)/sample_v2/component_list_decoder.h $(STAGING_DIR)/usr/include/wave521/sample_v2/component_list_decoder.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/component_list_encoder.h $(STAGING_DIR)/usr/include/wave521/sample_v2/component_list_encoder.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/helper/misc/pbu.h $(STAGING_DIR)/usr/include/wave521/sample_v2/helper/misc/pbu.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/helper/misc/header_struct.h $(STAGING_DIR)/usr/include/wave521/sample_v2/helper/misc/header_struct.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/helper/misc/json_output.h $(STAGING_DIR)/usr/include/wave521/sample_v2/helper/misc/json_output.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/helper/misc/debug.h $(STAGING_DIR)/usr/include/wave521/sample_v2/helper/misc/debug.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/helper/misc/bw_monitor.h $(STAGING_DIR)/usr/include/wave521/sample_v2/helper/misc/bw_monitor.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/helper/main_helper.h $(STAGING_DIR)/usr/include/wave521/sample_v2/helper/main_helper.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/component/component.h $(STAGING_DIR)/usr/include/wave521/sample_v2/component/component.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/component/cnm_app_internal.h $(STAGING_DIR)/usr/include/wave521/sample_v2/component/cnm_app_internal.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/component/cnm_app.h $(STAGING_DIR)/usr/include/wave521/sample_v2/component/cnm_app.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/component/component_list.h $(STAGING_DIR)/usr/include/wave521/sample_v2/component/component_list.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/component_list_all.h $(STAGING_DIR)/usr/include/wave521/sample_v2/component_list_all.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/component_encoder/encoder_listener.h $(STAGING_DIR)/usr/include/wave521/sample_v2/component_encoder/encoder_listener.h
$(INSTALL) -D -m 0644 $(@D)/sample_v2/component_decoder/decoder_listener.h $(STAGING_DIR)/usr/include/wave521/sample_v2/component_decoder/decoder_listener.h
$(INSTALL) -D -m 0644 $(@D)/vdi/vdi_osal.h $(STAGING_DIR)/usr/include/wave521/vdi/vdi_osal.h
$(INSTALL) -D -m 0644 $(@D)/vdi/linux/driver/vmm.h $(STAGING_DIR)/usr/include/wave521/vdi/linux/driver/vmm.h
$(INSTALL) -D -m 0644 $(@D)/vdi/linux/driver/vpu.h $(STAGING_DIR)/usr/include/wave521/vdi/linux/driver/vpu.h
$(INSTALL) -D -m 0644 $(@D)/vdi/mm.h $(STAGING_DIR)/usr/include/wave521/vdi/mm.h
$(INSTALL) -D -m 0644 $(@D)/vdi/vdi.h $(STAGING_DIR)/usr/include/wave521/vdi/vdi.h
$(INSTALL) -D -m 0644 $(@D)/config.h $(STAGING_DIR)/usr/include/wave521/config.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/product.h $(STAGING_DIR)/usr/include/wave521/vpuapi/product.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/coda9/coda9_vpuconfig.h $(STAGING_DIR)/usr/include/wave521/vpuapi/coda9/coda9_vpuconfig.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/coda9/coda9.h $(STAGING_DIR)/usr/include/wave521/vpuapi/coda9/coda9.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/coda9/coda9_regdefine.h $(STAGING_DIR)/usr/include/wave521/vpuapi/coda9/coda9_regdefine.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/vpuapi.h $(STAGING_DIR)/usr/include/wave521/vpuapi/vpuapi.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/vpuconfig.h $(STAGING_DIR)/usr/include/wave521/vpuapi/vpuconfig.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/wave/wave5.h $(STAGING_DIR)/usr/include/wave521/vpuapi/wave/wave5.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/wave/wave5_regdefine.h $(STAGING_DIR)/usr/include/wave521/vpuapi/wave/wave5_regdefine.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/vpuerror.h $(STAGING_DIR)/usr/include/wave521/vpuapi/vpuerror.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/vputypes.h $(STAGING_DIR)/usr/include/wave521/vpuapi/vputypes.h
$(INSTALL) -D -m 0644 $(@D)/vpuapi/vpuapifunc.h $(STAGING_DIR)/usr/include/wave521/vpuapi/vpuapifunc.h
endef
define WAVE521_UNINSTALL_TARGET_CMDS
rm -rf $(TARGET_DIR)/root/venc.ko
rm -rf $(TARGET_DIR)/root/venc_load.sh
rm -rf $(TARGET_DIR)/root/venc_unload.sh
endef
wave521_WORK_DIR := $(TARGET_DIR)/../build/wave521-$(WAVE521_VERSION)
wave521driver:
ifneq ($(wildcard $(wave521_WORK_DIR)/WaveEncDriver_buildroot.mak),)
$(TARGET_MAKE_ENV) $(MAKE) -C $(wave521_WORK_DIR) -f $(wave521_WORK_DIR)/WaveEncDriver_buildroot.mak
$(INSTALL) -D -m 0644 $(wave521_WORK_DIR)/vdi/linux/driver/venc.ko $(TARGET_DIR)/root/wave521/venc.ko
endif
$(eval $(generic-package))