${makefile_header} # # Platform Macro Definition # PLATFORM_NAME = ${platform_name} PLATFORM_GUID = ${platform_guid} PLATFORM_VERSION = ${platform_version} # # Build Configuration Macro Definition # TOOLCHAIN = ${toolchain_tag} TOOLCHAIN_TAG = ${toolchain_tag} TARGET = ${build_target} # # Build Directory Macro Definition # BUILD_DIR = ${platform_build_directory} FV_DIR = ${platform_build_directory}${separator}FV # # Shell Command Macro # ${BEGIN}${shell_command_code} = ${shell_command} ${END} MAKE = ${make_path} MAKE_FILE = ${makefile_path} # # Default target # all: modules fds # # Initialization target: print build information and create necessary directories # init: \t-@ \t${BEGIN}-@${create_directory_command} \t${END} # # library build target # libraries: init ${BEGIN}\t@cd $(BUILD_DIR)${separator}${arch} && "$(MAKE)" $(MAKE_FLAGS) libraries ${END}\t@cd $(BUILD_DIR) # # module build target # modules: init ${BEGIN}\t@cd $(BUILD_DIR)${separator}${arch} && "$(MAKE)" $(MAKE_FLAGS) modules ${END}\t@cd $(BUILD_DIR) # # genfont for detail information # genfont: \tGenFontBat --fif $(WORKSPACE)/BaseTools/Fonts/Standard.fif --fuf $(BUILD_DIR)/FV/Font.fuf --output_hpk $(BUILD_DIR)/FV/Font.hpk -v # # Flash Device Image Target # fds: prefds ${BEGIN}\tGenFds -f ${fdf_file} -o $(BUILD_DIR) -t $(TOOLCHAIN) -b $(TARGET) -p ${active_platform} -a ${build_architecture_list} ${extra_options}${END}${BEGIN} -r ${fd} ${END}${BEGIN} -i ${fv} ${END}${BEGIN} -C ${cap} ${END} ${BEGIN} -x ${skuid} ${END}${BEGIN} -X ${skuids} ${END} ${BEGIN} -D ${macro} ${END} --Dynamic-to-DynamicEx --fdm-revision 3 prefds: init \t-@cd $(FV_DIR) \tGenVarrcBat $(FV_DIR) \tGenVfrCollationBat $(FV_DIR) \tGenFontBat --fif $(WORKSPACE)/BaseTools/Fonts/Standard.fif --fuf $(BUILD_DIR)/FV/Font.fuf --output_hpk $(BUILD_DIR)/FV/Font.hpk # # run command for emulator platform only # run: \tif exist $(BUILD_DIR)${separator}IA32 ( \\ \t cd $(BUILD_DIR)${separator}IA32 && ".${separator}SecMain" \\ \t) else ( \\ \t cd $(BUILD_DIR)${separator}X64 && ".${separator}SecMain" \\ \t) \tcd $(BUILD_DIR) run64: \tif exist $(BUILD_DIR)${separator}X64 ( \\ \t cd $(BUILD_DIR)${separator}X64 && ".${separator}SecMain" \\ \t) \tcd $(BUILD_DIR) # # Clean intermediate files # clean: ${BEGIN}\t-@${sub_build_command} clean ${END}\t@cd $(BUILD_DIR) # # Clean all generated files except to makefile # cleanall: ${BEGIN}\t${cleanall_command} ${END} # # Clean all library files # cleanlib: ${BEGIN}\t-@${sub_build_command} cleanlib ${END}\t@cd $(BUILD_DIR)\n\n