63 lines
4.0 KiB
Makefile
63 lines
4.0 KiB
Makefile
|
#**********************************************************************
|
||
|
#**********************************************************************
|
||
|
#** **
|
||
|
#** (C)Copyright 1985-2019, American Megatrends, Inc. **
|
||
|
#** **
|
||
|
#** All Rights Reserved. **
|
||
|
#** **
|
||
|
#** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
|
||
|
#** **
|
||
|
#** Phone: (770)-246-8600 **
|
||
|
#** **
|
||
|
#**********************************************************************
|
||
|
#**********************************************************************
|
||
|
Prepare : $(BUILD_DIR)/BootOptioneLinks.h $(BUILD_DIR)/PlatformDriverOverrideElinks.h
|
||
|
|
||
|
# We are trying to convert a list of comma separated functions to a list of comma
|
||
|
# separated function name strings.
|
||
|
# The original list of function may contain C comment blocks /* */
|
||
|
BDS_CONTROL_FLOW0 = $(subst $(SPACE),,$(BDS_CONTROL_FLOW)) # remove the spaces
|
||
|
BDS_CONTROL_FLOW1 = $(subst */$(COMMA),*/,$(BDS_CONTROL_FLOW0)) # remove commas after the comments
|
||
|
BDS_CONTROL_FLOW2 = $(subst *//*,,$(BDS_CONTROL_FLOW1)) # merge the adjacent comments
|
||
|
BDS_CONTROL_FLOW3 = $(subst */,*/",$(BDS_CONTROL_FLOW2)) # add quote after the comment to begin the next string
|
||
|
BDS_CONTROL_FLOW4 = "$(subst $(COMMA),"$(COMMA)",$(BDS_CONTROL_FLOW3))", # add quotes before and after the commas
|
||
|
BDS_CONTROL_FLOW5 = $(subst "/*,/*,$(BDS_CONTROL_FLOW4)) # remove quote before the comments
|
||
|
BDS_CONTROL_FLOW_STRINGS = $(subst ",\",$(BDS_CONTROL_FLOW5)) # escape the quotes for echo
|
||
|
|
||
|
$(BUILD_DIR)/BootOptioneLinks.h : $(BUILD_DIR)/Token.h $(Bds_DIR)/Bds.mak
|
||
|
$(ECHO) \
|
||
|
"#define BOOT_OPTION_DP_MATCHING_FUNCTIONS $(BootOptionDpMatchingFunctions)$(EOL)\
|
||
|
#define BOOT_OPTION_MATCHING_FUNCTIONS $(BootOptionMatchingFunctions)$(EOL)\
|
||
|
#define BOOT_OPTION_BUILD_NAME_FUNCTIONS $(BootOptionBuildNameFunctions)$(EOL)\
|
||
|
#define BOOT_OPTION_BUILD_FILE_PATH_FUNCTIONS $(BootOptionBuildFilePathFunctions)$(EOL)\
|
||
|
#define BOOT_OPTION_BOOT_DEVICE_FILTERING_FUNCTIONS $(BootOptionBootDeviceFilteringFunctions)$(EOL)\
|
||
|
$(EOL)\
|
||
|
#define BDS_CONTROL_FLOW $(BDS_CONTROL_FLOW)$(EOL)\
|
||
|
#define BDS_CONTROL_FLOW_NAMES $(BDS_CONTROL_FLOW_STRINGS)$(EOL)\
|
||
|
#define BOOT_MANAGER_CAPABILITIES $(foreach x, $(BOOT_MANAGER_CAPABILITIES),$x |) 0$(EOL)\
|
||
|
#define OS_INDICATIONS_SUPPORTED $(foreach x, $(OS_INDICATIONS_SUPPORTED),$x |) 0$(EOL)"\
|
||
|
>$(BUILD_DIR)/BootOptioneLinks.h
|
||
|
|
||
|
$(BUILD_DIR)/PlatformDriverOverrideElinks.h : $(BUILD_DIR)/Token.h $(Bds_DIR)/Bds.mak
|
||
|
$(ECHO) \
|
||
|
"#define PLATFORM_DRIVER_OVERRIDE_FUNCTIONS $(PLATFORM_DRIVER_OVERRIDE_FUNCTIONS)$(EOL)"\
|
||
|
>$(BUILD_DIR)/PlatformDriverOverrideElinks.h
|
||
|
|
||
|
|
||
|
ifeq ($(call __ge, $(AMI_MODULE_PKG_VERSION), 48),no)
|
||
|
$(error This version of BDS requires AmiModulePkg_48 or newer (you are using AmiModulePkg_$(AMI_MODULE_PKG_VERSION)))
|
||
|
endif
|
||
|
|
||
|
#**********************************************************************
|
||
|
#**********************************************************************
|
||
|
#** **
|
||
|
#** (C)Copyright 1985-2019, American Megatrends, Inc. **
|
||
|
#** **
|
||
|
#** All Rights Reserved. **
|
||
|
#** **
|
||
|
#** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
|
||
|
#** **
|
||
|
#** Phone: (770)-246-8600 **
|
||
|
#** **
|
||
|
#**********************************************************************
|
||
|
#**********************************************************************
|