wave511.mk 6.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. ################################################################################
  2. #
  3. # wave511
  4. #
  5. ################################################################################
  6. WAVE511_VERSION:=1.0.0
  7. WAVE511_SITE=$(TOPDIR)/../soft_3rdpart/wave511/code
  8. WAVE511_SITE_METHOD=local
  9. WAVE511_INSTALL_STAGING = YES
  10. export KERNELDIR=$(TOPDIR)/../work/linux
  11. define WAVE511_BUILD_CMDS
  12. $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) -f $(@D)/WaveDecode_buildroot.mak
  13. # $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) -f $(@D)/WaveDecDriver_buildroot.mak
  14. endef
  15. define WAVE511_CLEAN_CMDS
  16. endef
  17. define WAVE511_INSTALL_TARGET_CMDS
  18. $(INSTALL) -D -m 0777 $(@D)/vdi/linux/driver/load.sh $(TARGET_DIR)/root/wave511/vdec_load.sh
  19. $(INSTALL) -D -m 0777 $(@D)/vdi/linux/driver/unload.sh $(TARGET_DIR)/root/wave511/vdec_unload.sh
  20. $(INSTALL) -D -m 0644 $(@D)/libsfdec.so $(TARGET_DIR)/usr/lib/libsfdec.so
  21. # $(INSTALL) -D -m 0644 $(@D)/vdi/linux/driver/vdec.ko $(TARGET_DIR)/root/wave511/vdec.ko
  22. # $(INSTALL) -D -m 0644 $(WAVE511_SITE)/../firmware/chagall.bin $(TARGET_DIR)/lib/firmware/chagall.bin
  23. endef
  24. define WAVE511_INSTALL_STAGING_CMDS
  25. mkdir -p $(STAGING_DIR)/usr/include/wave511
  26. $(INSTALL) -D -m 0644 $(@D)/sample_v2/component_list_decoder.h $(STAGING_DIR)/usr/include/wave511/sample_v2/component_list_decoder.h
  27. $(INSTALL) -D -m 0644 $(@D)/sample_v2/component_list_encoder.h $(STAGING_DIR)/usr/include/wave511/sample_v2/component_list_encoder.h
  28. $(INSTALL) -D -m 0644 $(@D)/sample_v2/helper/misc/pbu.h $(STAGING_DIR)/usr/include/wave511/sample_v2/helper/misc/pbu.h
  29. $(INSTALL) -D -m 0644 $(@D)/sample_v2/helper/misc/header_struct.h $(STAGING_DIR)/usr/include/wave511/sample_v2/helper/misc/header_struct.h
  30. $(INSTALL) -D -m 0644 $(@D)/sample_v2/helper/misc/json_output.h $(STAGING_DIR)/usr/include/wave511/sample_v2/helper/misc/json_output.h
  31. $(INSTALL) -D -m 0644 $(@D)/sample_v2/helper/misc/debug.h $(STAGING_DIR)/usr/include/wave511/sample_v2/helper/misc/debug.h
  32. $(INSTALL) -D -m 0644 $(@D)/sample_v2/helper/misc/bw_monitor.h $(STAGING_DIR)/usr/include/wave511/sample_v2/helper/misc/bw_monitor.h
  33. $(INSTALL) -D -m 0644 $(@D)/sample_v2/helper/main_helper.h $(STAGING_DIR)/usr/include/wave511/sample_v2/helper/main_helper.h
  34. $(INSTALL) -D -m 0644 $(@D)/sample_v2/component/component.h $(STAGING_DIR)/usr/include/wave511/sample_v2/component/component.h
  35. $(INSTALL) -D -m 0644 $(@D)/sample_v2/component/cnm_app_internal.h $(STAGING_DIR)/usr/include/wave511/sample_v2/component/cnm_app_internal.h
  36. $(INSTALL) -D -m 0644 $(@D)/sample_v2/component/cnm_app.h $(STAGING_DIR)/usr/include/wave511/sample_v2/component/cnm_app.h
  37. $(INSTALL) -D -m 0644 $(@D)/sample_v2/component/component_list.h $(STAGING_DIR)/usr/include/wave511/sample_v2/component/component_list.h
  38. $(INSTALL) -D -m 0644 $(@D)/sample_v2/component_list_all.h $(STAGING_DIR)/usr/include/wave511/sample_v2/component_list_all.h
  39. $(INSTALL) -D -m 0644 $(@D)/sample_v2/component_encoder/encoder_listener.h $(STAGING_DIR)/usr/include/wave511/sample_v2/component_encoder/encoder_listener.h
  40. $(INSTALL) -D -m 0644 $(@D)/sample_v2/component_decoder/decoder_listener.h $(STAGING_DIR)/usr/include/wave511/sample_v2/component_decoder/decoder_listener.h
  41. $(INSTALL) -D -m 0644 $(@D)/vdi/vdi_osal.h $(STAGING_DIR)/usr/include/wave511/vdi/vdi_osal.h
  42. $(INSTALL) -D -m 0644 $(@D)/vdi/linux/driver/vmm.h $(STAGING_DIR)/usr/include/wave511/vdi/linux/driver/vmm.h
  43. $(INSTALL) -D -m 0644 $(@D)/vdi/linux/driver/vpu.h $(STAGING_DIR)/usr/include/wave511/vdi/linux/driver/vpu.h
  44. $(INSTALL) -D -m 0644 $(@D)/vdi/mm.h $(STAGING_DIR)/usr/include/wave511/vdi/mm.h
  45. $(INSTALL) -D -m 0644 $(@D)/vdi/vdi.h $(STAGING_DIR)/usr/include/wave511/vdi/vdi.h
  46. $(INSTALL) -D -m 0644 $(@D)/config.h $(STAGING_DIR)/usr/include/wave511/config.h
  47. $(INSTALL) -D -m 0644 $(@D)/vpuapi/product.h $(STAGING_DIR)/usr/include/wave511/vpuapi/product.h
  48. $(INSTALL) -D -m 0644 $(@D)/vpuapi/coda9/coda9_vpuconfig.h $(STAGING_DIR)/usr/include/wave511/vpuapi/coda9/coda9_vpuconfig.h
  49. $(INSTALL) -D -m 0644 $(@D)/vpuapi/coda9/coda9.h $(STAGING_DIR)/usr/include/wave511/vpuapi/coda9/coda9.h
  50. $(INSTALL) -D -m 0644 $(@D)/vpuapi/coda9/coda9_regdefine.h $(STAGING_DIR)/usr/include/wave511/vpuapi/coda9/coda9_regdefine.h
  51. $(INSTALL) -D -m 0644 $(@D)/vpuapi/vpuapi.h $(STAGING_DIR)/usr/include/wave511/vpuapi/vpuapi.h
  52. $(INSTALL) -D -m 0644 $(@D)/vpuapi/vpuconfig.h $(STAGING_DIR)/usr/include/wave511/vpuapi/vpuconfig.h
  53. $(INSTALL) -D -m 0644 $(@D)/vpuapi/wave/wave5.h $(STAGING_DIR)/usr/include/wave511/vpuapi/wave/wave5.h
  54. $(INSTALL) -D -m 0644 $(@D)/vpuapi/wave/wave5_regdefine.h $(STAGING_DIR)/usr/include/wave511/vpuapi/wave/wave5_regdefine.h
  55. $(INSTALL) -D -m 0644 $(@D)/vpuapi/vpuerror.h $(STAGING_DIR)/usr/include/wave511/vpuapi/vpuerror.h
  56. $(INSTALL) -D -m 0644 $(@D)/vpuapi/vputypes.h $(STAGING_DIR)/usr/include/wave511/vpuapi/vputypes.h
  57. $(INSTALL) -D -m 0644 $(@D)/vpuapi/vpuapifunc.h $(STAGING_DIR)/usr/include/wave511/vpuapi/vpuapifunc.h
  58. endef
  59. define WAVE511_UNINSTALL_TARGET_CMDS
  60. rm -rf $(TARGET_DIR)/root/vdec.ko
  61. rm -rf $(TARGET_DIR)/root/vdec_load.sh
  62. rm -rf $(TARGET_DIR)/root/vdec_unload.sh
  63. endef
  64. wave511_WORK_DIR := $(TARGET_DIR)/../build/wave511-$(WAVE511_VERSION)
  65. wave511driver:
  66. ifneq ($(wildcard $(wave511_WORK_DIR)/WaveDecDriver_buildroot.mak),)
  67. $(TARGET_MAKE_ENV) $(MAKE) -C $(wave511_WORK_DIR) -f $(wave511_WORK_DIR)/WaveDecDriver_buildroot.mak
  68. $(INSTALL) -D -m 0644 $(wave511_WORK_DIR)/vdi/linux/driver/vdec.ko $(TARGET_DIR)/root/wave511/vdec.ko
  69. endif
  70. $(eval $(generic-package))