[Fix] AHT10驱动 解决未纳入构建的问题
1. 顶层Makefile,src 下第一目标为 install,保证 aht10 产物可以安装到 install 目录下; 2. 新增中间的 Makfile,将顶层与AHT10驱动层建立联系;
This commit is contained in:
2
Makefile
2
Makefile
@ -32,7 +32,7 @@ clean:
|
||||
|
||||
install: $(if $(wildcard prebuilt/*),prebuilt)
|
||||
$(MAKE) -Csrc hinstall
|
||||
$(MAKE) -Csrc
|
||||
$(MAKE) -Csrc install
|
||||
|
||||
|
||||
#
|
||||
|
||||
3
src/drivers/Makefile
Normal file
3
src/drivers/Makefile
Normal file
@ -0,0 +1,3 @@
|
||||
LIST=drivers
|
||||
|
||||
include recurse.mk
|
||||
3
src/drivers/i2c/Makefile
Normal file
3
src/drivers/i2c/Makefile
Normal file
@ -0,0 +1,3 @@
|
||||
LIST=i2c
|
||||
|
||||
include recurse.mk
|
||||
@ -1,12 +1,14 @@
|
||||
|
||||
ifndef QCONFIG
|
||||
QCONFIG=qconfig.mk
|
||||
endif
|
||||
include $(QCONFIG)
|
||||
include $(MKFILES_ROOT)/qmacros.mk
|
||||
|
||||
NAME=aht10
|
||||
|
||||
|
||||
USE_INSTALL_ROOT = 1
|
||||
INSTALL_ROOT_nto = $(PROJECT_ROOT)/../../../../install
|
||||
INSTALLDIR = sbin
|
||||
|
||||
#This has to be included last
|
||||
include $(MKFILES_ROOT)/qtargets.mk
|
||||
|
||||
Reference in New Issue
Block a user