From 1b3785bc92a0caeacb4253e56b406f3bce4a591c Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Sun, 05 Jun 2022 17:35:40 +0800
Subject: [PATCH] Add dtoverlay config file in boot partition
---
bsp/drivers/users/Makefile | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/bsp/drivers/users/Makefile b/bsp/drivers/users/Makefile
index 46bdd9d..3c6f3ea 100644
--- a/bsp/drivers/users/Makefile
+++ b/bsp/drivers/users/Makefile
@@ -4,17 +4,17 @@
#
# 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 ?= /opt/buildroot/cortexA7/bin/arm-linux-
LINUX_SRC = ${shell pwd}/../../kernel/linux-imx/
-DRV_INSTPATH = ${shell pwd}/../../rootfs/driver/
+DRV_PATH ?= ${shell pwd}/../../images/drivers/
EXTRA_INSTPATH=/tftp
@@ -25,14 +25,14 @@
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
--
Gitblit v1.9.1