| | |
| | | # |
| | | # 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- |
| | | CROSS_COMPILE ?= arm-linux-gnueabihf- |
| | | |
| | | LINUX_SRC = ${shell pwd}/../../kernel/linux-imx/ |
| | | DRV_INSTPATH = ${shell pwd}/../../rootfs/driver/ |
| | | DRV_PATH ?= ${shell pwd}/../../images/drivers/ |
| | | |
| | | EXTRA_INSTPATH=/tftp |
| | | |
| | |
| | | modules: |
| | | @echo ${LINUX_SRC} |
| | | @make -C $(LINUX_SRC) M=$(PWD) modules |
| | | @make -C $(LINUX_SRC) M=$(PWD) modules_install INSTALL_MOD_PATH=${DRV_INSTPATH} INSTALL_MOD_STRIP=1 |
| | | @make -C $(LINUX_SRC) M=$(PWD) modules_install INSTALL_MOD_PATH=${DRV_PATH} INSTALL_MOD_STRIP=1 |
| | | @make clear |
| | | |
| | | install: |
| | | install: |
| | | cp -af *.ko ${EXTRA_INSTPATH} |
| | | |
| | | clear: |
| | | @rm -f *.o *.mod* .*.cmd *.symvers *.order |
| | | @rm -f *.o *.mod* .*.cmd *.symvers *.order |
| | | |
| | | clean: clear |
| | | @rm -f *.ko |