You've already forked slimbootloader
mirror of
https://github.com/Dasharo/slimbootloader.git
synced 2026-03-06 15:26:20 -08:00
* Sync BaseTools to align with edk2-stable202311 Keep the SBL specific change (e.g. Lz4). Signed-off-by: Guo Dong <guo.dong@intel.com> * feat: Sync MdePkg from EDK2 edk2-stable202311 branch Only sync required file without any changes to EDK2 files. Signed-off-by: Guo Dong <guo.dong@intel.com> * feat: Update MdePkg for SBL after sync from EDK2 Signed-off-by: Guo Dong <guo.dong@intel.com> * Update SBL after updating Basetool and MdePkg After Sync BaseTool and MdePkg to edk2-stable202311, Need update SBL code to align with this change. Signed-off-by: Guo Dong <guo.dong@intel.com> * feat: rollback some changes after mdepkg sync New change from MdePkg requires new NASM version. To make sure NASM 2.14.02 still works, just rollback few changes. Signed-off-by: Guo Dong <guo.dong@intel.com> * feat: Update component size to fix build failure After syncing BaseTool and MdePkg, some components would have a little bigger size. So update the config to fix the build failure. Signed-off-by: Guo Dong <guo.dong@intel.com> * feat: Remove unused asl code Some ASL files don't exist but they are included in other asl files. It would cause build failure with new build BaseTool. So just remove them to fix the build failure. Signed-off-by: Guo Dong <guo.dong@intel.com> --------- Signed-off-by: Guo Dong <guo.dong@intel.com>
71 lines
1.8 KiB
Plaintext
71 lines
1.8 KiB
Plaintext
## @file
|
|
# Makefile
|
|
#
|
|
# Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
|
|
!IFNDEF EDK_TOOLS_PATH
|
|
!ERROR "Please set your EDK_TOOLS_PATH!"
|
|
!ENDIF
|
|
|
|
!IFNDEF BASE_TOOLS_PATH
|
|
!ERROR "BASE_TOOLS_PATH is not set! Please run build_tools.bat at first!"
|
|
!ENDIF
|
|
|
|
!IFNDEF HOST_ARCH
|
|
HOST_ARCH = IA32
|
|
!ENDIF
|
|
|
|
!IFNDEF MAKEROOT
|
|
MAKEROOT = $(SOURCE_PATH)
|
|
!ENDIF
|
|
|
|
!IFNDEF EDK2_PATH
|
|
EDK2_PATH = $(MAKEROOT)\..\..\..
|
|
!ENDIF
|
|
|
|
MAKE = nmake -nologo
|
|
|
|
# DOS del command doesn't support ":\\" in the file path, such as j:\\BaseTools. Convert ":\\" to ":\"
|
|
BASE_TOOLS_PATH = $(BASE_TOOLS_PATH::\\=:\)
|
|
EDK_TOOLS_PATH = $(EDK_TOOLS_PATH::\\=:\)
|
|
|
|
SOURCE_PATH = $(BASE_TOOLS_PATH)\Source\C
|
|
BIN_PATH = $(BASE_TOOLS_PATH)\Bin
|
|
LIB_PATH = $(BASE_TOOLS_PATH)\Lib
|
|
|
|
SYS_BIN_PATH=$(EDK_TOOLS_PATH)\Bin
|
|
SYS_LIB_PATH=$(EDK_TOOLS_PATH)\Lib
|
|
|
|
!IF "$(HOST_ARCH)"=="IA32"
|
|
ARCH_INCLUDE = $(EDK2_PATH)\MdePkg\Include\Ia32
|
|
BIN_PATH = $(BASE_TOOLS_PATH)\Bin\Win32
|
|
LIB_PATH = $(BASE_TOOLS_PATH)\Lib\Win32
|
|
SYS_BIN_PATH = $(EDK_TOOLS_PATH)\Bin\Win32
|
|
SYS_LIB_PATH = $(EDK_TOOLS_PATH)\Lib\Win32
|
|
|
|
!ELSEIF "$(HOST_ARCH)"=="X64"
|
|
ARCH_INCLUDE = $(EDK2_PATH)\MdePkg\Include\X64
|
|
BIN_PATH = $(BASE_TOOLS_PATH)\Bin\Win64
|
|
LIB_PATH = $(BASE_TOOLS_PATH)\Lib\Win64
|
|
SYS_BIN_PATH = $(EDK_TOOLS_PATH)\Bin\Win64
|
|
SYS_LIB_PATH = $(EDK_TOOLS_PATH)\Lib\Win64
|
|
|
|
!ELSE
|
|
!ERROR "Bad HOST_ARCH"
|
|
!ENDIF
|
|
|
|
CC = cl.exe
|
|
CXX = cl.exe
|
|
AS = ml.exe
|
|
AR = lib.exe
|
|
LD = link.exe
|
|
LINKER = $(LD)
|
|
|
|
INC = $(INC) -I . -I $(SOURCE_PATH)\Include -I $(ARCH_INCLUDE) -I $(SOURCE_PATH)\Common
|
|
INC = $(INC) -I $(EDK2_PATH)\MdePkg\Include
|
|
|
|
CFLAGS = $(CFLAGS) /nologo /Z7 /c /O2 /MT /W4 /WX /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE
|
|
CPPFLAGS = $(CPPFLAGS) /EHsc /nologo /Z7 /c /O2 /MT /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE
|