luckfox-pico-sdk/media/samples/example/test/Makefile
luckfox-eng29 8f34c2760d project:build.sh: Added fastboot support; custom modifications to U-Boot and kernel implemented using patches.
project:cfg:BoardConfig_IPC: Added fastboot BoardConfig file and firmware post-scripts, distinguishing between
the BoardConfigs for Luckfox Pico Pro and Luckfox Pico Max. project:app: Added fastboot_client and rk_smart_door
for quick boot applications; updated rkipc app to adapt to the latest media library. media:samples: Added more
usage examples. media:rockit: Fixed bugs; removed support for retrieving data frames from VPSS. media:isp:
Updated rkaiq library and related tools to support connection to RKISP_Tuner. sysdrv:Makefile: Added support for
compiling drv_ko on Luckfox Pico Ultra W using Ubuntu; added support for custom root filesystem.
sysdrv:tools:board: Updated Buildroot optional mirror sources, updated some software versions, and stored device
tree files and configuration files that undergo multiple modifications for U-Boot and kernel separately.
sysdrv:source:mcu: Used RISC-V MCU SDK with RT-Thread system, mainly for initializing camera AE during quick
boot. sysdrv:source:uboot: Added support for fastboot; added high baud rate DDR bin for serial firmware upgrades.
sysdrv:source:kernel: Upgraded to version 5.10.160; increased NPU frequency for RV1106G3; added support for
fastboot.

Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
2024-10-14 09:47:04 +08:00

68 lines
4.2 KiB
Makefile

# Rockchip sample Makefile
LD_FLAGS += -L$(COMM_DIR)/lib -lsample_comm
LD_FLAGS += $(RK_MEDIA_OPTS) -L$(RK_MEDIA_OUTPUT)/lib
ifeq ($(RK_MEDIA_CHIP), rv1106)
LD_FLAGS += -lrockit_full
else
LD_FLAGS += -lrockit
endif
all:
@$(SAMPLE_CC) $(SAMPLE_CFLAGS) sample_ai_aenc_adec_ao_stresstest.c -o sample_ai_aenc_adec_ao_stresstest $(LD_FLAGS)
@$(SAMPLE_CC) $(SAMPLE_CFLAGS) sample_isp_stresstest.c -o sample_isp_stresstest $(LD_FLAGS) -lrkaiq
@$(SAMPLE_CC) $(SAMPLE_CFLAGS) sample_venc_stresstest.c -o sample_venc_stresstest $(LD_FLAGS) -lrockchip_mpp -lrkaiq -lrtsp
@$(SAMPLE_CC) $(SAMPLE_CFLAGS) sample_rgn_stresstest.c -o sample_rgn_stresstest $(LD_FLAGS) -lrockchip_mpp -lrkaiq -lrtsp
@$(SAMPLE_CC) $(SAMPLE_CFLAGS) sample_mulit_isp_stresstest.c -o sample_mulit_isp_stresstest $(LD_FLAGS) -lrkaiq
@$(SAMPLE_CC) $(SAMPLE_CFLAGS) sample_demo_aiisp_stresstest.c -o sample_demo_aiisp_stresstest $(LD_FLAGS) -lrockchip_mpp -lrkaiq -lrtsp -lrockiva
@$(SAMPLE_CC) $(SAMPLE_CFLAGS) sample_demo_dual_aiisp_stresstest.c -o sample_demo_dual_aiisp_stresstest $(LD_FLAGS) -lrockchip_mpp -lrkaiq -lrtsp -lrockiva
ifeq ($(HAVE_AVS), y)
@$(SAMPLE_CC) $(SAMPLE_CFLAGS) sample_avs_stresstest.c -o sample_avs_stresstest $(LD_FLAGS) -lrkaiq
@$(SAMPLE_CC) $(SAMPLE_CFLAGS) sample_demo_vi_avs_venc_stresstest.c -o sample_demo_vi_avs_venc_stresstest $(LD_FLAGS) -lrockchip_mpp -lrkaiq -lrtsp
endif
@$(SAMPLE_CC) $(SAMPLE_CFLAGS) sample_vpss_stresstest.c -o sample_vpss_stresstest $(LD_FLAGS) -lrkaiq
ifeq ($(CONFIG_RK_IVA) ,y)
@$(SAMPLE_CC) $(SAMPLE_CFLAGS) sample_demo_vi_venc_stresstest.c -o sample_demo_vi_venc_stresstest $(LD_FLAGS) -lrockchip_mpp -lrkaiq -lrtsp -lrockiva
else
@$(SAMPLE_CC) $(SAMPLE_CFLAGS) sample_demo_vi_venc_stresstest.c -o sample_demo_vi_venc_stresstest $(LD_FLAGS) -lrockchip_mpp -lrkaiq -lrtsp
endif
install:
@mv -f sample_ai_aenc_adec_ao_stresstest $(SAMPLE_OUT_DIR)/bin
@mv -f sample_isp_stresstest $(SAMPLE_OUT_DIR)/bin
@mv -f sample_venc_stresstest $(SAMPLE_OUT_DIR)/bin
@mv -f sample_rgn_stresstest $(SAMPLE_OUT_DIR)/bin
@mv -f sample_mulit_isp_stresstest $(SAMPLE_OUT_DIR)/bin
ifeq ($(HAVE_AVS), y)
@mv -f sample_avs_stresstest $(SAMPLE_OUT_DIR)/bin
@mv -f sample_demo_vi_avs_venc_stresstest $(SAMPLE_OUT_DIR)/bin
endif
@mv -f sample_vpss_stresstest $(SAMPLE_OUT_DIR)/bin
@mv -f sample_demo_vi_venc_stresstest $(SAMPLE_OUT_DIR)/bin
@mv -f sample_demo_aiisp_stresstest $(SAMPLE_OUT_DIR)/bin
@mv -f sample_demo_dual_aiisp_stresstest $(SAMPLE_OUT_DIR)/bin
@mkdir -p $(SAMPLE_OUT_DIR)/install_to_userdata/
@cp -f source/ai_aenc_adec_ao_stresstes.sh $(SAMPLE_OUT_DIR)/install_to_userdata
@cp -f source/160x96.bmp $(SAMPLE_OUT_DIR)/install_to_userdata
@cp -f source/192x96.bmp $(SAMPLE_OUT_DIR)/install_to_userdata
@cp -f source/rv1103_stresstest.sh $(SAMPLE_OUT_DIR)/install_to_userdata
@cp -f source/rv1106_stresstest.sh $(SAMPLE_OUT_DIR)/install_to_userdata
@cp -f source/avs_stresstest.sh $(SAMPLE_OUT_DIR)/install_to_userdata
@cp -f source/vpss_stresstest.sh $(SAMPLE_OUT_DIR)/install_to_userdata
@cp -f source/isp_stresstest.sh $(SAMPLE_OUT_DIR)/install_to_userdata
@cp -f source/venc_stresstest.sh $(SAMPLE_OUT_DIR)/install_to_userdata
@cp -f source/demo_vi_venc_stresstest.sh $(SAMPLE_OUT_DIR)/install_to_userdata
@cp -f source/rgn_stresstest.sh $(SAMPLE_OUT_DIR)/install_to_userdata
@cp -f source/rv1126_stresstest.sh $(SAMPLE_OUT_DIR)/install_to_userdata
@cp -f source/demo_vi_avs_venc_stresstest.sh $(SAMPLE_OUT_DIR)/install_to_userdata
@cp -f source/demo_aiisp_stresstest.sh $(SAMPLE_OUT_DIR)/install_to_userdata
@cp -f source/demo_dual_aiisp_stresstest.sh $(SAMPLE_OUT_DIR)/install_to_userdata
@cp -f source/rv1106_multi_cam_stresstest.sh $(SAMPLE_OUT_DIR)/install_to_userdata
@cp -f source/multi_isp_stresstest.sh $(SAMPLE_OUT_DIR)/install_to_userdata
@cp -f source/rv1126_multi_cam_stresstest.sh $(SAMPLE_OUT_DIR)/install_to_userdata
@cp -f source/kill_pid.sh $(SAMPLE_OUT_DIR)/install_to_userdata
clean:
@echo "clean test"