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>
48 lines
2.1 KiB
Makefile
48 lines
2.1 KiB
Makefile
# --------------------------------------------------------------------------------
|
|
# SET compiler {{{ START
|
|
# --------------------------------------------------------------------------------
|
|
ifneq ($(RK_TOOLCHAIN_CROSS),)
|
|
MTD_CROSS_COMPILER_PREFIX ?= $(RK_TOOLCHAIN_CROSS)-
|
|
else
|
|
MTD_CROSS_COMPILER_PREFIX ?= arm-rockchip830-linux-uclibcgnueabihf-
|
|
endif
|
|
CC := $(MTD_CROSS_COMPILER_PREFIX)gcc
|
|
CXX := $(MTD_CROSS_COMPILER_PREFIX)g++
|
|
AR := $(MTD_CROSS_COMPILER_PREFIX)ar
|
|
AS := $(MTD_CROSS_COMPILER_PREFIX)as
|
|
LD := $(MTD_CROSS_COMPILER_PREFIX)ld
|
|
CPP := $(MTD_CROSS_COMPILER_PREFIX)cpp
|
|
NM := $(MTD_CROSS_COMPILER_PREFIX)nm
|
|
STRIP := $(MTD_CROSS_COMPILER_PREFIX)strip
|
|
OBJCOPY := $(MTD_CROSS_COMPILER_PREFIX)objcopy
|
|
OBJDUMP := $(MTD_CROSS_COMPILER_PREFIX)objdump
|
|
# --------------------------------------------------------------------------------
|
|
# SET compiler END }}}
|
|
# --------------------------------------------------------------------------------
|
|
|
|
# $(info MTD_CROSS_COMPILER_PREFIX = $(MTD_CROSS_COMPILER_PREFIX))
|
|
|
|
CFLAGS := -L ./ -I ./ -fPIC -w
|
|
|
|
SOURCES_C := common.c flash_erase.c libmtd.c libmtd_legacy.c mtd_debug.c mtd_utils_all.c nanddump.c nandwrite.c
|
|
|
|
OBJECTS_O = $(addsuffix .o, $(basename $(SOURCES_C)))
|
|
|
|
LIBNAME := libmtd-tools.a
|
|
|
|
all:
|
|
@mkdir -p ./out_board
|
|
$(CC) $(CFLAGS) -o out_board/common.o -c common.c
|
|
$(CC) $(CFLAGS) -o out_board/flash_erase.o -c flash_erase.c
|
|
$(CC) $(CFLAGS) -o out_board/libmtd.o -c libmtd.c
|
|
$(CC) $(CFLAGS) -o out_board/libmtd_legacy.o -c libmtd_legacy.c
|
|
$(CC) $(CFLAGS) -o out_board/mtd_debug.o -c mtd_debug.c
|
|
$(CC) $(CFLAGS) -o out_board/mtd_utils_all.o -c mtd_utils_all.c
|
|
$(CC) $(CFLAGS) -o out_board/nanddump.o -c nanddump.c
|
|
$(CC) $(CFLAGS) -o out_board/nandwrite.o -c nandwrite.c
|
|
cd out_board && $(AR) rcs $(LIBNAME) *.o && cd ..
|
|
# $(CC) flash_rw_demo.c -o flash_rw_demo $(LIBNAME) $(CFLAGS)
|
|
|
|
clean:
|
|
@$(RM) -rf $(OBJECTS_O) ./out_board
|