v4l2_test.mk 1.0 KB

1234567891011121314151617181920212223242526272829
  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/config.h $(@D)/
  14. cp package/starfive/v4l2_test/string.c $(@D)/
  15. cp package/starfive/v4l2_test/pipeline_setting.sh $(@D)/
  16. (cd $(@D); $(TARGET_CC) -Wall -O2 v4l2_test.c yuv.c convert.c string.c -l v4l2 -l jpeg -o v4l2test)
  17. #(cd $(@D); $(TARGET_CC) -Wall -O2 v4l2_test.c -o v4l2test)
  18. endef
  19. define V4L2_TEST_INSTALL_TARGET_CMDS
  20. install -m 0755 -D $(@D)/v4l2test $(TARGET_DIR)/usr/bin/v4l2test
  21. install -m 0755 -D $(@D)/pipeline_setting.sh $(TARGET_DIR)/usr/bin/pipeline_setting.sh
  22. endef
  23. V4L2_TEST_DEPENDENCIES = jpeg libv4l
  24. $(eval $(generic-package))