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