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>
79 lines
1.7 KiB
Makefile
79 lines
1.7 KiB
Makefile
|
|
ifeq ($(MEDIA_PARAM), )
|
|
MEDIA_PARAM:=../Makefile.param
|
|
include $(MEDIA_PARAM)
|
|
endif
|
|
|
|
export CONFIG_RK_SYSUTILS=y
|
|
export LC_ALL=C
|
|
SHELL:=/bin/bash
|
|
|
|
CURRENT_DIR := $(shell pwd)
|
|
|
|
CC := $(RK_MEDIA_CROSS)-gcc
|
|
AR := $(RK_MEDIA_CROSS)-ar
|
|
|
|
PKG_NAME := sysutils
|
|
PKG_BIN ?= out
|
|
PKG_BUILD ?= build
|
|
|
|
RK_MEDIA_OPTS += -Wl,-rpath-link,${RK_MEDIA_OUTPUT}/lib:$(RK_MEDIA_OUTPUT)/root/usr/lib
|
|
PKG_CONF_OPTS += $(RK_MEDIA_OPTS)
|
|
|
|
ifeq ($(RK_MEDIA_CHIP), rv1126)
|
|
PKG_CONF_OPTS += -DCMAKE_SYSTEM_PROCESSOR=armv7l
|
|
PKG_CONF_OPTS += -DRV1126_RV1109
|
|
endif
|
|
|
|
ifeq ($(RK_MEDIA_CHIP), rv1106)
|
|
PKG_CONF_OPTS += -DRV1106_RV1103
|
|
endif
|
|
|
|
ifeq ($(RK_MEDIA_CHIP), rk3588)
|
|
PKG_CONF_OPTS += -DRK3588
|
|
endif
|
|
|
|
ifeq ($(CONFIG_RK_SYSUTILS),y)
|
|
PKG_TARGET := sysutils-build
|
|
else
|
|
PKG_TARGET :=
|
|
$(warning Not config source RK_SYSUTILS, Skip...)
|
|
endif
|
|
|
|
ifeq ($(PKG_BIN),)
|
|
$(error ### $(CURRENT_DIR): PKG_BIN is NULL, Please Check !!!)
|
|
endif
|
|
|
|
SRC += $(wildcard $(CURRENT_DIR)/src/*.c)
|
|
OBJ := $(SRC:%.c=%.o)
|
|
|
|
INC_FLAGS := -I$(CURRENT_DIR)/include
|
|
INC_FLAGS += -I$(RK_MEDIA_OUTPUT)/include
|
|
CFLAGS += -g -Wall $(INC_FLAGS) $(PKG_CONF_OPTS) -fPIC -lpthread -lm -ldl
|
|
|
|
export SYSUTILS_OUT_DIR=$(CURRENT_DIR)/out
|
|
export PKG_CONF_OPTS
|
|
export OBJ
|
|
export CC
|
|
export AR
|
|
export CFLAGS
|
|
export LD_FLAGS
|
|
|
|
all: $(PKG_TARGET)
|
|
@$(call MAROC_COPY_PKG_TO_MEDIA_OUTPUT, $(RK_MEDIA_OUTPUT), $(SYSUTILS_OUT_DIR))
|
|
@echo "build $(PKG_NAME) done";
|
|
|
|
sysutils-build:
|
|
@mkdir -p $(SYSUTILS_OUT_DIR)/bin
|
|
@cp -rfa $(CURRENT_DIR)/include $(SYSUTILS_OUT_DIR)/
|
|
@make -C $(CURRENT_DIR)/src;
|
|
@make -C $(CURRENT_DIR)/examples;
|
|
@make -C $(CURRENT_DIR)/examples install;
|
|
|
|
clean:
|
|
@make -C $(CURRENT_DIR)/examples clean
|
|
@make -C $(CURRENT_DIR)/src clean
|
|
@rm -rf $(SYSUTILS_OUT_DIR)
|
|
|
|
distclean: clean
|