[修改] 新增BOARD 入参检查
This commit is contained in:
@ -9,4 +9,4 @@ indent_size = 8
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
#insert_final_newline = true
|
||||
|
||||
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
*.o
|
||||
*.mod
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user