]> code.delx.au - refind/commitdiff
REALLY fixed build problem with development version of EDK2.
authorsrs5694 <srs5694@users.sourceforge.net>
Sun, 30 Jun 2013 03:54:41 +0000 (23:54 -0400)
committersrs5694 <srs5694@users.sourceforge.net>
Sun, 30 Jun 2013 03:54:41 +0000 (23:54 -0400)
Make.tiano
Makefile
refind/AutoGen.c
refind/main.c

index 6884a07b1bf20e847b08f588d7d03d1c73fe4593..5ed907b301784eb047b7a5ba9862f1dce9d187eb 100644 (file)
@@ -30,6 +30,7 @@ ifeq ($(ARCH),x86_64)
 endif
 
 EDK2BASE = /usr/local/UDK2010/MyWorkSpace
+#EDK2BASE = /usr/local/EDK2/tianocore-edk2
 
 # Below file defines TARGET (RELEASE or DEBUG) and TOOL_CHAIN_TAG (GCC44, GCC45, GCC46, or GCC47)
 include $(EDK2BASE)/Conf/target.txt
index c0c1e4398e37c7b842cefcd1c13ff65c75cf5a18..a84ca25bbcd4060c8a12a8eb6954ca4061e2eabf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,7 @@ tiano:
        +make AR_TARGET=mok -C $(MOK_DIR) -f Make.tiano
        +make BUILDME=refind DLL_TARGET=refind -C $(LOADER_DIR) -f Make.tiano
        +make -C $(GPTSYNC_DIR) -f Make.tiano
-       +make -C $(FS_DIR)
+#      +make -C $(FS_DIR)
 
 clean:
        make -C $(LIBEG_DIR) clean
index 6423efc64467430d1b283e0d4d929dc37d1951cb..22f7f3ac99f0256ca1b63a647c1186b0e44fc86c 100644 (file)
@@ -115,6 +115,13 @@ extern const  BOOLEAN  _gPcd_FixedAtBuild_PcdVerifyNodeInList;
 #define _PCD_GET_MODE_BOOL_PcdVerifyNodeInList  _gPcd_FixedAtBuild_PcdVerifyNodeInList
 #define _PCD_SET_MODE_BOOL_PcdVerifyNodeInList  ASSERT(FALSE)  // It is not allowed to set value for a FIXED_AT_BUILD PCD
 
+#define _PCD_TOKEN_PcdMaximumDevicePathNodeCount  6U
+#define _PCD_VALUE_PcdMaximumDevicePathNodeCount  0U
+GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gPcd_FixedAtBuild_PcdMaximumDevicePathNodeCount = _PCD_VALUE_PcdMaximumDevicePathNodeCount;
+extern const  UINT32  _gPcd_FixedAtBuild_PcdMaximumDevicePathNodeCount;
+#define _PCD_GET_MODE_32_PcdMaximumDevicePathNodeCount  _gPcd_FixedAtBuild_PcdMaximumDevicePathNodeCount
+//#define _PCD_SET_MODE_32_PcdMaximumDevicePathNodeCount  ASSERT(FALSE)  // It is not allowed to set value for a FIXED_AT_BUILD PCD
+
 #define _PCD_TOKEN_PcdDriverDiagnosticsDisable  6U
 #define _PCD_VALUE_PcdDriverDiagnosticsDisable  ((BOOLEAN)0U)
 GLOBAL_REMOVE_IF_UNREFERENCED const BOOLEAN _gPcd_FixedAtBuild_PcdDriverDiagnosticsDisable = _PCD_VALUE_PcdDriverDiagnosticsDisable;
@@ -150,7 +157,6 @@ extern const  UINT32  _gPcd_FixedAtBuild_PcdUefiLibMaxPrintBufferSize;
 #define _PCD_GET_MODE_32_PcdUefiLibMaxPrintBufferSize  _gPcd_FixedAtBuild_PcdUefiLibMaxPrintBufferSize
 #define _PCD_SET_MODE_32_PcdUefiLibMaxPrintBufferSize  ASSERT(FALSE)  // It is not allowed to set value for a FIXED_AT_BUILD PCD
 
-
 EFI_STATUS
 EFIAPI
 UefiBootServicesTableLibConstructor (
index ca7bb1319e2cfa1ac3b467327dcaedea5213c345..2c3b18dab8cf7182fdb2a0610733b1ee91c5f020 100644 (file)
@@ -1228,9 +1228,7 @@ static BOOLEAN ScanLoaderDir(IN REFIT_VOLUME *Volume, IN CHAR16 *Path, IN CHAR16
              SPrint(FileName, 255, L"\\%s", DirEntry->FileName);
           CleanUpPathNameSlashes(FileName);
 
-          if( /* (!StriSubCmp(L"vmlinuz", DirEntry->FileName) ||
-              !StriSubCmp(L"bzImage", DirEntry->FileName)) && */
-              !IsValidLoader(Volume, FileName))
+          if(!IsValidLoader(Volume, FileName))
              continue;
 
           NewLoader = AllocateZeroPool(sizeof(struct LOADER_LIST));