From cf936361bcccbb7d539fa840bab93e5fabf20e44 Mon Sep 17 00:00:00 2001 From: gaoyang3513 Date: Sun, 21 Jan 2024 13:09:34 +0000 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=20=E6=96=B0=E5=A2=9EBOARD?= =?UTF-8?q?=20=E5=85=A5=E5=8F=82=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .editorconfig | 2 +- .gitignore | 3 +++ 01-Char/Makefile | 11 ++++++++--- 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 .gitignore diff --git a/.editorconfig b/.editorconfig index a84d70627..7c8d74135 100644 --- a/.editorconfig +++ b/.editorconfig @@ -9,4 +9,4 @@ indent_size = 8 end_of_line = lf charset = utf-8 trim_trailing_whitespace = true -insert_final_newline = true \ No newline at end of file +#insert_final_newline = true diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..f51474288 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ + +*.o +*.mod diff --git a/01-Char/Makefile b/01-Char/Makefile index 7c2b83d57..67b1a6f9d 100644 --- a/01-Char/Makefile +++ b/01-Char/Makefile @@ -2,8 +2,12 @@ ifneq ($(KERNELRELEASE),) obj-m := char_static.o -else -ifneq ($(ARCH),) +else # KERNELRELEASE + +ifneq ($(filter $(BOARD),mikv-Duo),) +KERNELDIR ?= ${HOME}/Source/10-CV1800/01-MilkDuo/02-Project/SDK_CV1800_BR2/linux_5.10/build/cv1800b_milkv_duo_sd +ROOTFS ?= ${HOME}/nfs/rootfs +else ifneq ($(filter $(ARCH),arm64),) KERNELDIR ?= ${HOME}/Source/04-RK3568/02-Projects/SDK_RK3568_Linux_LBCat2/kernel ROOTFS ?= ${HOME}/nfs/rootfs else @@ -18,4 +22,5 @@ modules_install: @$(MAKE) -C $(KERNELDIR) M=$(PWD) INSTALL_MOD_PATH=$(ROOTFS) modules_install clean: @rm -rf *.o *.ko .*.cmd *.mod* modules.order Module.symvers .tmp_versions -endif + +endif # KERNELRELEASE