mirror of
https://github.com/acidanthera/audk.git
synced 2025-08-14 22:28:08 +02:00
This change adds the support of crossbuilding basetool for Windows ARM/ ARM64 systems, which will enable the generally available pipeline agents to build binary tools and make releases as they see fit. The EDK2 base tools build script is also updated to support cross compilation using this script. The crossbuilt binary output is tested on Windows ARM based hardware systems. Cc: Rebecca Cran <rebecca@bsdio.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Bob Feng <bob.c.feng@intel.com> Cc: Yuwei Chen <yuwei.chen@intel.com> Signed-off-by: Kun Qin <kun.qin@microsoft.com>
135 lines
3.4 KiB
Makefile
135 lines
3.4 KiB
Makefile
# PCCTS directory
|
|
|
|
# You will need to set the LIB variable similar to this.
|
|
# LIB="C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/lib;c:/Microsoft Visual Studio .NET 2003/Vc7/PlatformSDK/Lib"
|
|
|
|
# PCCTS_HOME=<your PCCTS_HOME>
|
|
PCCTS_HOME=$(BASE_TOOLS_PATH)\Source\C\VfrCompile\Pccts
|
|
DLG_SRC=$(PCCTS_HOME)\dlg
|
|
PCCTS_H=$(PCCTS_HOME)\h
|
|
|
|
|
|
# Support directories
|
|
SET=$(PCCTS_HOME)\support\set
|
|
|
|
!IFNDEF HOST_ARCH
|
|
HOST_ARCH = IA32
|
|
!ENDIF
|
|
|
|
!IF "$(HOST_ARCH)"=="IA32" || "$(HOST_ARCH)"=="ARM"
|
|
SYS_BIN_PATH=$(EDK_TOOLS_PATH)\Bin\Win32
|
|
!ELSE
|
|
SYS_BIN_PATH=$(EDK_TOOLS_PATH)\Bin\Win64
|
|
!ENDIF
|
|
|
|
# Compiler stuff
|
|
CC = cl
|
|
CFLAGS = /nologo -I "." -I "$(PCCTS_H)" -I "$(SET)" -D "USER_ZZSYN" -D "PC" \
|
|
-D "ZZLEXBUFSIZE=65536" /D "LONGFILENAMES" /W3 /Z7 \
|
|
/D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE
|
|
|
|
DLG_OBJS = dlg_p.obj dlg_a.obj main.obj err.obj support.obj \
|
|
output.obj relabel.obj automata.obj
|
|
|
|
SUPPORT_OBJS = set.obj
|
|
|
|
# Dependencies
|
|
|
|
$(SYS_BIN_PATH)\dlg.exe: $(DLG_OBJS) $(SUPPORT_OBJS)
|
|
$(CC) $(CFLAGS) -Fedlg.exe $(DLG_OBJS) $(SUPPORT_OBJS)
|
|
-@if not exist $(SYS_BIN_PATH) mkdir $(SYS_BIN_PATH)
|
|
copy dlg.exe $(SYS_BIN_PATH)
|
|
|
|
dlg_p.obj: $(DLG_SRC)\dlg_p.c \
|
|
$(PCCTS_H)\antlr.h \
|
|
$(PCCTS_H)\config.h \
|
|
$(PCCTS_H)\dlgdef.h \
|
|
$(SET)\set.h \
|
|
$(DLG_SRC)\dlg.h \
|
|
$(DLG_SRC)\mode.h \
|
|
$(DLG_SRC)\tokens.h \
|
|
|
|
$(CC) -c $(CFLAGS) $(DLG_SRC)\dlg_p.c
|
|
|
|
dlg_a.obj: $(DLG_SRC)\dlg_a.c \
|
|
$(PCCTS_H)\antlr.h \
|
|
$(PCCTS_H)\config.h \
|
|
$(PCCTS_H)\dlgauto.h \
|
|
$(PCCTS_H)\dlgdef.h \
|
|
$(SET)\set.h \
|
|
$(DLG_SRC)\dlg.h \
|
|
$(DLG_SRC)\mode.h \
|
|
$(DLG_SRC)\tokens.h \
|
|
|
|
$(CC) -c $(CFLAGS) $(DLG_SRC)\dlg_a.c
|
|
|
|
main.obj: $(DLG_SRC)\main.c \
|
|
$(PCCTS_H)\antlr.h \
|
|
$(PCCTS_H)\config.h \
|
|
$(PCCTS_H)\dlgdef.h \
|
|
$(SET)\set.h \
|
|
$(DLG_SRC)\dlg.h \
|
|
$(DLG_SRC)\mode.h \
|
|
$(DLG_SRC)\stdpccts.h \
|
|
$(DLG_SRC)\tokens.h \
|
|
|
|
$(CC) -c $(CFLAGS) $(DLG_SRC)\main.c
|
|
|
|
err.obj: $(DLG_SRC)\err.c \
|
|
$(PCCTS_H)\antlr.h \
|
|
$(PCCTS_H)\config.h \
|
|
$(PCCTS_H)\dlgdef.h \
|
|
$(PCCTS_H)\err.h \
|
|
$(SET)\set.h \
|
|
$(DLG_SRC)\dlg.h \
|
|
$(DLG_SRC)\tokens.h \
|
|
|
|
$(CC) -c $(CFLAGS) $(DLG_SRC)\err.c
|
|
|
|
support.obj: $(DLG_SRC)\support.c \
|
|
$(PCCTS_H)\config.h \
|
|
$(SET)\set.h \
|
|
$(DLG_SRC)\dlg.h \
|
|
|
|
$(CC) -c $(CFLAGS) $(DLG_SRC)\support.c
|
|
|
|
output.obj: $(DLG_SRC)\output.c \
|
|
$(PCCTS_H)\config.h \
|
|
$(SET)\set.h \
|
|
$(DLG_SRC)\dlg.h \
|
|
|
|
$(CC) -c $(CFLAGS) $(DLG_SRC)\output.c
|
|
|
|
relabel.obj: $(DLG_SRC)\relabel.c \
|
|
$(PCCTS_H)\config.h \
|
|
$(SET)\set.h \
|
|
$(DLG_SRC)\dlg.h \
|
|
|
|
$(CC) -c $(CFLAGS) $(DLG_SRC)\relabel.c
|
|
|
|
automata.obj: $(DLG_SRC)\automata.c \
|
|
$(PCCTS_H)\config.h \
|
|
$(SET)\set.h \
|
|
$(DLG_SRC)\dlg.h \
|
|
|
|
$(CC) -c $(CFLAGS) $(DLG_SRC)\automata.c
|
|
|
|
|
|
set.obj: $(SET)\set.c \
|
|
$(PCCTS_H)\config.h \
|
|
$(SET)\set.h \
|
|
|
|
$(CC) -c $(CFLAGS) $(SET)\set.c
|
|
|
|
clean:
|
|
-del *.obj
|
|
-del *.ilk
|
|
-del *.pdb
|
|
|
|
cleanall:
|
|
-del *.obj
|
|
-del *.ilk
|
|
-del *.pdb
|
|
-del *.exe
|
|
-del $(EDK_TOOLS_PATH)\Bin\Win32\dlg.exe
|