v4l2_test.mk 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. ################################################################################
  2. #
  3. # v4l2test
  4. #
  5. ################################################################################
  6. V4L2_TEST_LICENSE = GPL-2.0+
  7. define V4L2_TEST_BUILD_CMDS
  8. cp package/starfive/v4l2_test/v4l2_test.c $(@D)/
  9. cp package/starfive/v4l2_test/yuv.c $(@D)/
  10. cp package/starfive/v4l2_test/yuv.h $(@D)/
  11. cp package/starfive/v4l2_test/convert.c $(@D)/
  12. cp package/starfive/v4l2_test/convert.h $(@D)/
  13. cp package/starfive/v4l2_test/stf_v4l2.c $(@D)/
  14. cp package/starfive/v4l2_test/stf_v4l2.h $(@D)/
  15. cp package/starfive/v4l2_test/stf_framebuffer.c $(@D)/
  16. cp package/starfive/v4l2_test/stf_framebuffer.h $(@D)/
  17. cp package/starfive/v4l2_test/stf_drm.c $(@D)/
  18. cp package/starfive/v4l2_test/stf_drm.h $(@D)/
  19. cp package/starfive/v4l2_test/config.h $(@D)/
  20. cp package/starfive/v4l2_test/common.c $(@D)/
  21. cp package/starfive/v4l2_test/common.h $(@D)/
  22. cp package/starfive/v4l2_test/stf_log.c $(@D)/
  23. cp package/starfive/v4l2_test/stf_log.h $(@D)/
  24. cp package/starfive/v4l2_test/media-ctl-pipeline.sh $(@D)/
  25. (cd $(@D); $(TARGET_CC) -Wall -O2 v4l2_test.c common.c yuv.c convert.c \
  26. stf_v4l2.c stf_framebuffer.c stf_drm.c stf_log.c -lv4l2 -ljpeg \
  27. -I$(STAGING_DIR)/usr/include/drm -ldrm -o v4l2test)
  28. endef
  29. define V4L2_TEST_INSTALL_TARGET_CMDS
  30. install -m 0755 -D $(@D)/v4l2test $(TARGET_DIR)/usr/bin/v4l2test
  31. install -m 0755 -D $(@D)/media-ctl-pipeline.sh $(TARGET_DIR)/usr/bin/media-ctl-pipeline.sh
  32. endef
  33. V4L2_TEST_DEPENDENCIES = jpeg libv4l
  34. $(eval $(generic-package))