tools/Makefile.win and link.bat: Fix for 'make menuconfig' (#117)

This commit is contained in:
patacongo 2020-01-16 16:12:31 -06:00 committed by Abdelatif Guettouche
parent d360205d07
commit c600f6d6cf
2 changed files with 4 additions and 2 deletions

View File

@ -335,7 +335,7 @@ ifeq ($(CONFIG_WINDOWS_MKLINK),y)
$(Q) /user:administrator mklink /d $(TOPDIR)\drivers\platform $(BOARD_DIR)\drivers $(Q) /user:administrator mklink /d $(TOPDIR)\drivers\platform $(BOARD_DIR)\drivers
else else
$(Q) xcopy $(BOARD_DIR)\drivers $(TOPDIR)\drivers\platform /c /q /s /e /y /i $(Q) xcopy $(BOARD_DIR)\drivers $(TOPDIR)\drivers\platform /c /q /s /e /y /i
$(Q) echo FAKELNK > $(TOPDIR)\drivers\platform .fakelnk $(Q) echo FAKELNK > $(TOPDIR)\drivers\platform\.fakelnk
endif endif
ifeq ($(COMMON_DIR),y) ifeq ($(COMMON_DIR),y)

View File

@ -88,7 +88,9 @@ if "%usemklink%"=="y" (
goto :End goto :End
) )
xcopy %src% %link% /c /q /s /e /y /i rem %src% may include forward slashes. That upsets xcopy, but not GNUWin32 cp
rem xcopy %src% %link% /c /q /s /e /y /i
cp -dR %src% %link%
echo FAKELNK > %link%\.fakelnk echo FAKELNK > %link%\.fakelnk
goto :End goto :End