tools/Unix.mk:make incdir precedence over other targets

Make.defs need incdir at the very beginning.
fix error such as `make menuconfig` `make oldconfig` etc.

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
xuxin19 2024-01-04 16:58:49 +08:00 committed by Xiang Xiao
parent e60c60b691
commit 4595f9388f
2 changed files with 4 additions and 4 deletions

View File

@ -416,7 +416,7 @@ DIRLINKS_FILE += $(DIRLINKS_EXTERNAL_DEP)
# The symlink subfolders need to be removed before the parent symlinks
.PHONY: clean_dirlinks
clean_dirlinks:
clean_dirlinks: tools/incdir$(HOSTEXEEXT)
$(Q) $(call DELFILE, $(DIRLINKS_FILE))
$(Q) $(call DELFILE, .dirlinks)
$(Q) $(DIRUNLINK) drivers/platform
@ -815,7 +815,7 @@ endif
# apps_distclean: Perform the distclean operation only in the user application
# directory.
apps_preconfig: .dirlinks
apps_preconfig: tools/incdir$(HOSTEXEEXT) .dirlinks
ifneq ($(APPDIR),)
$(Q) $(MAKE) -C $(APPDIR) preconfig
endif

View File

@ -397,7 +397,7 @@ DIRLINKS_FILE += $(DIRLINKS_EXTERNAL_DEP)
# The symlink subfolders need to be removed before the parent symlinks
.PHONY: clean_dirlinks
clean_dirlinks:
clean_dirlinks: tools\incdir$(HOSTEXEEXT)
$(Q) $(call DELFILE, $(DIRLINKS_FILE))
$(Q) $(call DELFILE, .dirlinks)
$(Q) $(DIRUNLINK) drivers\platform
@ -731,7 +731,7 @@ endif
# apps_distclean: Perform the distclean operation only in the user application
# directory.
apps_preconfig: .dirlinks
apps_preconfig: tools\incdir$(HOSTEXEEXT) .dirlinks
ifneq ($(APPDIR),)
$(Q) $(MAKE) -C "$(APPDIR)" preconfig
endif