wave511.mk 6.4 KB

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