[Fix] AHT10驱动 解决未纳入构建的问题

1. 顶层Makefile,src 下第一目标为 install,保证 aht10 产物可以安装到 install 目录下;
2. 新增中间的 Makfile,将顶层与AHT10驱动层建立联系;
This commit is contained in:
gaoyang3513
2025-12-29 20:12:56 +08:00
parent 5851df325d
commit 2980e70e56
4 changed files with 11 additions and 3 deletions

View File

@ -32,7 +32,7 @@ clean:
install: $(if $(wildcard prebuilt/*),prebuilt)
$(MAKE) -Csrc hinstall
$(MAKE) -Csrc
$(MAKE) -Csrc install
#

3
src/drivers/Makefile Normal file
View File

@ -0,0 +1,3 @@
LIST=drivers
include recurse.mk

3
src/drivers/i2c/Makefile Normal file
View File

@ -0,0 +1,3 @@
LIST=i2c
include recurse.mk

View File

@ -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