凌云实验室推出的ARM Linux物联网网关开发板IGKBoard(IoT Gateway Kit Board)项目源码
guowenxue
2021-12-30 c5289d6f5ef0b5c249bec0edf638aece0c401d1a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#*********************************************************************************
#      Copyright:  (C) 2021 LingYun IoT System Studio <www.weike-iot.com>
#                  All rights reserved.
#
#       Filename:  Makefile
#    Description:  This Makefile used to compile all the drivers here
#                      
#        Version:  1.0.0(18/12/2021~)
#                  Author:  Guo Wenxue <guowenxue@gmail.com>
#      ChangeLog:  1, Release initial version on "18/12/2021 01:29:33 PM"
#                       
#********************************************************************************/
 
CROSS_COMPILE ?= /opt/buildroot/cortexA7/bin/arm-linux-
 
LINUX_SRC = ${shell pwd}/../../kernel/linux-imx/
DRV_PATH ?= ${shell pwd}/../../rootfs/driver/
 
EXTRA_INSTPATH=/tftp
 
PWD := $(shell pwd)
 
obj-m += hello.o
 
modules:
    @echo ${LINUX_SRC}
    @make -C $(LINUX_SRC) M=$(PWD) modules
    @make -C $(LINUX_SRC) M=$(PWD) modules_install INSTALL_MOD_PATH=${DRV_PATH} INSTALL_MOD_STRIP=1
    @make clear
 
install: 
    cp -af *.ko ${EXTRA_INSTPATH}
 
clear:
    @rm -f *.o *.mod* .*.cmd *.symvers *.order 
 
clean: clear
    @rm -f  *.ko