luckfox-pico-sdk/sysdrv/drv_ko/wifi/atbm/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

141 lines
3.6 KiB
Makefile

#
#makefile for build atbm_wifi.ko
#
###############################################################################
#
# when release to customer ,the CUSTOMER_SUPPORT_USED must set to y!!!!!!!!!!!!!
#
###############################################################################
CUSTOMER_SUPPORT_USED=y
###############################################################################
#PLATFORM_XUNWEI 1
#PLATFORM_SUN6I 2
#PLATFORM_FRIENDLY 3
#PLATFORM_SUN6I_64 4
#PLATFORM_SUN8I 5
#PLATFORM_HI3518E 6
#PLATFORM_X86PC 7
#PLATFORM_AMLOGIC 8
#PLATFORM_AMLOGIC_905 8
#PLATFORM_AMLOGIC_905X 9
#PLATFORM_ROCKCHIP 10
#PLATFORM_MSTAR 11
#PLATFORM_CDLINUX 12
#PLATFORM_AMLOGIC_S805 13
#PLATFORM_HIS_LINUX_3_4 14
#PLATFORM_ROCKCHIP_3229 15
#PLATFORM_ROCKCHIP_3229_ANDROID8 16
#PLATFORM_HS_IPC 17
#PLATFORM_SIGMASTAR 18
#PLATFORM_HI3516EV200 19
#PLATFORM_XUNWEI_2G 20
#PLATFORM_NVT98517 21
#PLATFORM_INGENICT31 22
#PLATFORM_INGENICT41 23
platform ?= PLATFORM_ROCKCHIP
#ATBM_BUILD_IN_KERNEL?=
ifeq ($(KERNELRELEASE),)
export
ATBM_BUILD_IN_KERNEL=n
export DRIVER_PATH ?= $(shell pwd)
ifeq ($(CUSTOMER_SUPPORT_USED),y)
$(info "hello makefile")
MAKEFILE_SUB ?= Makefile.build.customer
else
MAKEFILE_SUB ?= Makefile.build
endif
KERDIR ?= /usr/lchome/yuzhihuang/Mstar/IPC_I3/linux3.18_i3/
CROSS_COMPILE ?= /usr/lchome/yuzhihuang/Mstar/IPC_I3/arm-linux-gnueabihf-4.8.3-201404/bin/arm-linux-gnueabihf-
#Android
#Linux
sys ?= Linux
#arch:arm or arm64 or mips(NVT98517)
arch ?= arm
all:install
install:
@echo "make PLATFORM_CROSS=$(platform)"
#$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNEL_DIR) M=$(shell pwd) modules -j12
$(MAKE) all -f $(MAKEFILE_SUB) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) KDIR=$(KERNEL_DIR) SYS=$(sys) PLAT=$(platform) -j8 O=$(WIFI_BUILD_KERNEL_OBJ_DIR)
#arm-rockchip830-linux-uclibcgnueabihf-strip --strip-debug $(shell pwd)/driver_install/atbm603x_.ko
cp $(shell pwd)/driver_install/atbm603x_wifi_usb.ko $(M_OUT_DIR)/atbm603x_.ko
clean:
$(MAKE) -f $(MAKEFILE_SUB) KDIR=$(KERDIR) ARCH=$(arch) clean
strip:
$(MAKE) -f $(MAKEFILE_SUB) KDIR=$(KERDIR) ARCH=$(arch) SYS=$(sys) PLAT=$(platform) strip
get_ver:
$(MAKE) -f $(MAKEFILE_SUB) KDIR=$(KERDIR) ARCH=$(arch) SYS=$(sys) PLAT=$(platform) get_ver
buid_config:
$(MAKE) -C atbm_kconf clean
$(MAKE) -C atbm_kconf mconf -f Makefile
menuconfig:buid_config
@./atbm_kconf/mconf ./atbm_kconf/Kconfig
else
ifeq ($(platform),PLATFORM_XUNWEI)
export
ATBM_WIFI__EXT_CCFLAGS ?= -DATBM_WIFI_PLATFORM=1
endif
ifeq ($(platform),PLATFORM_SUN6I)
export
ATBM_WIFI__EXT_CCFLAGS ?= -DATBM_WIFI_PLATFORM=2
endif
ifeq ($(platform),PLATFORM_FRIENDLY)
export
ATBM_WIFI__EXT_CCFLAGS ?= -DATBM_WIFI_PLATFORM=3
endif
ifeq ($(platform),PLATFORM_SUN6I_64)
export
ATBM_WIFI__EXT_CCFLAGS ?= -DATBM_WIFI_PLATFORM=4
endif
ifeq ($(platform),PLATFORM_SUN8I)
export
ATBM_WIFI__EXT_CCFLAGS ?= -DATBM_WIFI_PLATFORM=5
endif
ifeq ($(platform),PLATFORM_AMLOGIC_905)
export
ATBM_WIFI__EXT_CCFLAGS ?= -DATBM_WIFI_PLATFORM=8
endif
ifeq ($(platform),PLATFORM_CDLINUX)
export
ATBM_WIFI__EXT_CCFLAGS ?= -DATBM_WIFI_PLATFORM=12
endif
ifeq ($(platform),PLATFORM_AMLOGIC_S805)
export
ATBM_WIFI__EXT_CCFLAGS ?= -DATBM_WIFI_PLATFORM=13
endif
ifeq ($(platform),PLATFORM_INGENICT31)
export
ATBM_WIFI__EXT_CCFLAGS ?= -DATBM_WIFI_PLATFORM=22
endif
ifeq ($(platform),PLATFORM_INGENICT41)
export
ATBM_WIFI__EXT_CCFLAGS ?= -DATBM_WIFI_PLATFORM=23
endif
ifeq ($(ATBM_BUILD_IN_KERNEL),)
obj-m += hal_apollo/
export ATBM_BUILD_IN_KERNEL=y
else
export
include $(src)/Makefile.build.kernel
endif
endif