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:
parent
e60c60b691
commit
4595f9388f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue