首先修改driver下驱动文件中的Makefile文件:
添加自己的平台,我的平台是hi3518c,具体操作如下:
#add the new platform hi3518c alter by kj
CONFIG_PLATFORM_HI_3518C = y
添加平台的编译选项:
#add the compile option for hi_3518c alter by kj
ifeq ($(CONFIG_PLATFORM_HI_3518C), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN-DCONFIG_MINIMAL_MEMORY_USAGE
ARCH := arm
CROSS_COMPILE := arm-hisiv100nptl-linux-
KVER
KSRC :=/home/kongjun/mywork/develop_kj/Hi3518_SDK_V1.0.3.0/osdrv/kernel/linux-3.0.y
endif
注意:
CONFIG_POWER_SAVING =n(省电模式最好关闭)
下面是官方文档的编译说明:
Introduction
Inthis document, we introduce two ways to compileand
1)
targets
engineers who want to portour Wi-Fi driver ontodifferentplatforms.
1.
For
script
network
utilities
please refer to:
document