Changeset 100473 in vbox
- Timestamp:
- Jul 10, 2023 3:54:56 PM (17 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile.kmk
r100334 r100473 2093 2093 2094 2094 efi-packing: 2095 + $(KMK) -C src/VBox/Devices/EFI/Firmware$(VBOX_EFI_FIRMWARE_SUFFIX) $(PATH_STAGE)/VBoxEfiFirmware.zip 2095 + $(KMK) -C src/VBox/Devices/EFI/Firmware$(VBOX_EFI_FIRMWARE_SUFFIX) $(PATH_STAGE)/VBoxEfiFirmware.zip $(if $(VBOX_WITH_VIRT_ARMV8),$(PATH_STAGE)/VBoxEfiFirmware-armv8.zip,) 2096 2096 2097 2097 -
trunk/src/VBox/Devices/EFI/Firmware/EfiModules.kmk
r99455 r100473 51 51 # List of modules that ends up producing .efi, .debug and .pdb files. 52 52 # 53 VBOX_EFI_MODULES = \ 53 VBOX_EFI_MODULES_CMN = \ 54 MdeModulePkg/Universal/BdsDxe/BdsDxe/$(VBOX_EFI_DEBUG_DIR)/BdsDxe 55 56 VBOX_EFI_MODULES_X86 = \ 57 $(VBOX_EFI_MODULES_CMN) \ 54 58 FatPkg/EnhancedFatDxe/Fat/$(VBOX_EFI_DEBUG_DIR)/Fat \ 55 59 MdeModulePkg/Application/UiApp/UiApp/$(VBOX_EFI_DEBUG_DIR)/UiApp \ … … 76 80 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe/$(VBOX_EFI_DEBUG_DIR)/AcpiTableDxe \ 77 81 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe/$(VBOX_EFI_DEBUG_DIR)/BootGraphicsResourceTableDxe \ 78 MdeModulePkg/Universal/BdsDxe/BdsDxe/$(VBOX_EFI_DEBUG_DIR)/BdsDxe \79 82 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe/$(VBOX_EFI_DEBUG_DIR)/CapsuleRuntimeDxe \ 80 83 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe/$(VBOX_EFI_DEBUG_DIR)/ConPlatformDxe \ … … 146 149 VBoxPkg/VBoxVgaMiniPortDxe/VBoxVgaMiniPortDxe/$(VBOX_EFI_DEBUG_DIR)/VBoxVgaMiniPortDxe 147 150 148 # Version of VBOX_EFI_MODULES without directories. (Using $(value ) to avoid 149 # expanding all the build target macros and then immediately discarding them.) 150 VBOX_EFI_MODULES_FLAT = $(notdir $(value VBOX_EFI_MODULES)) 151 VBOX_EFI_MODULES_ARM = \ 152 $(VBOX_EFI_MODULES_CMN) 153 154 # Version of VBOX_EFI_MODULES without directories. 155 VBOX_EFI_MODULES_FLAT_X86 = $(notdir $(VBOX_EFI_MODULES_X86)) 156 VBOX_EFI_MODULES_FLAT_ARM = $(notdir $(VBOX_EFI_MODULES_ARM)) 151 157 152 158 endif -
trunk/src/VBox/Devices/EFI/Firmware/Makefile.kmk
r99476 r100473 148 148 if1of ($(KBUILD_HOST), win) 149 149 VBoxEfiFirmwareDbg32_SOURCES = \ 150 $(foreach mod,$(VBOX_EFI_MODULES ),$(VBoxEfiFirmware_0_OUTDIR)/x86/$(VBOX_EFI_OUTPUT_SUBDIR)/IA32/$(mod).pdb)150 $(foreach mod,$(VBOX_EFI_MODULES_X86),$(VBoxEfiFirmware_0_OUTDIR)/x86/$(VBOX_EFI_OUTPUT_SUBDIR)/IA32/$(mod).pdb) 151 151 else 152 152 VBoxEfiFirmwareDbg32_SOURCES = \ 153 $(foreach mod,$(VBOX_EFI_MODULES_FLAT ),$(VBoxEfiFirmware_0_OUTDIR)/x86/$(VBOX_EFI_OUTPUT_SUBDIR)/IA32/$(mod).debug)153 $(foreach mod,$(VBOX_EFI_MODULES_FLAT_X86),$(VBoxEfiFirmware_0_OUTDIR)/x86/$(VBOX_EFI_OUTPUT_SUBDIR)/IA32/$(mod).debug) 154 154 endif 155 155 … … 159 159 if1of ($(KBUILD_HOST), win) 160 160 VBoxEfiFirmwareDbg64_SOURCES = \ 161 $(foreach mod,$(VBOX_EFI_MODULES ),$(VBoxEfiFirmware_0_OUTDIR)/amd64/$(VBOX_EFI_OUTPUT_SUBDIR)/X64/$(mod).pdb)161 $(foreach mod,$(VBOX_EFI_MODULES_X86),$(VBoxEfiFirmware_0_OUTDIR)/amd64/$(VBOX_EFI_OUTPUT_SUBDIR)/X64/$(mod).pdb) 162 162 else 163 163 VBoxEfiFirmwareDbg64_SOURCES = \ 164 $(foreach mod,$(VBOX_EFI_MODULES_FLAT ),$(VBoxEfiFirmware_0_OUTDIR)/amd64/$(VBOX_EFI_OUTPUT_SUBDIR)/X64/$(mod).debug)164 $(foreach mod,$(VBOX_EFI_MODULES_FLAT_X86),$(VBoxEfiFirmware_0_OUTDIR)/amd64/$(VBOX_EFI_OUTPUT_SUBDIR)/X64/$(mod).debug) 165 165 endif 166 166 … … 171 171 if1of ($(KBUILD_HOST), win) 172 172 VBoxEfiFirmwareDbgAarch32_SOURCES = \ 173 $(foreach mod,$(VBOX_EFI_MODULES ),$(VBoxEfiFirmware_0_OUTDIR)/aarch32/$(VBOX_EFI_OUTPUT_SUBDIR)/ARM/$(mod).pdb)173 $(foreach mod,$(VBOX_EFI_MODULES_ARM),$(VBoxEfiFirmware_0_OUTDIR)/aarch32/$(VBOX_EFI_OUTPUT_SUBDIR)/ARM/$(mod).pdb) 174 174 else 175 175 VBoxEfiFirmwareDbgAarch32_SOURCES = \ 176 $(foreach mod,$(VBOX_EFI_MODULES_FLAT ),$(VBoxEfiFirmware_0_OUTDIR)/aarch32/$(VBOX_EFI_OUTPUT_SUBDIR)/ARM/$(mod).debug)176 $(foreach mod,$(VBOX_EFI_MODULES_FLAT_ARM),$(VBoxEfiFirmware_0_OUTDIR)/aarch32/$(VBOX_EFI_OUTPUT_SUBDIR)/ARM/$(mod).debug) 177 177 endif 178 178 … … 182 182 if1of ($(KBUILD_HOST), win) 183 183 VBoxEfiFirmwareDbgAarch64_SOURCES = \ 184 $(foreach mod,$(VBOX_EFI_MODULES ),$(VBoxEfiFirmware_0_OUTDIR)/aarch64/$(VBOX_EFI_OUTPUT_SUBDIR)/AARCH64/$(mod).pdb)184 $(foreach mod,$(VBOX_EFI_MODULES_ARM),$(VBoxEfiFirmware_0_OUTDIR)/aarch64/$(VBOX_EFI_OUTPUT_SUBDIR)/AARCH64/$(mod).pdb) 185 185 else 186 186 VBoxEfiFirmwareDbgAarch64_SOURCES = \ 187 $(foreach mod,$(VBOX_EFI_MODULES_FLAT ),$(VBoxEfiFirmware_0_OUTDIR)/aarch64/$(VBOX_EFI_OUTPUT_SUBDIR)/AARCH64/$(mod).debug)187 $(foreach mod,$(VBOX_EFI_MODULES_FLAT_ARM),$(VBoxEfiFirmware_0_OUTDIR)/aarch64/$(VBOX_EFI_OUTPUT_SUBDIR)/AARCH64/$(mod).debug) 188 188 endif 189 189 endif … … 214 214 VBoxEFI64.fd 215 215 $(REDIRECT) -C "$(PATH_STAGE)/$(INST_VBOXDBG_SYMS)" -- $(TOOL_ZIP_PACK) $(TOOL_ZIP_PACKFLAGS) -9X $@ \ 216 $(foreach mod,$(VBOX_EFI_MODULES_FLAT ),amd64/$(mod)$(VBOX_EFI_DBG_SUFF)) \217 $(foreach mod,$(VBOX_EFI_MODULES_FLAT ),x86/$(mod)$(VBOX_EFI_DBG_SUFF))216 $(foreach mod,$(VBOX_EFI_MODULES_FLAT_X86),amd64/$(mod)$(VBOX_EFI_DBG_SUFF)) \ 217 $(foreach mod,$(VBOX_EFI_MODULES_FLAT_X86),x86/$(mod)$(VBOX_EFI_DBG_SUFF)) 218 218 219 219 ifdef VBOX_WITH_VIRT_ARMV8 … … 224 224 VBoxEFIAArch64.fd 225 225 $(REDIRECT) -C "$(PATH_STAGE)/$(INST_VBOXDBG_SYMS)" -- $(TOOL_ZIP_PACK) $(TOOL_ZIP_PACKFLAGS) -9X $@ \ 226 $(foreach mod,$(VBOX_EFI_MODULES_FLAT ),aarch64/$(mod)$(VBOX_EFI_DBG_SUFF)) \227 $(foreach mod,$(VBOX_EFI_MODULES_FLAT ),aarch32/$(mod)$(VBOX_EFI_DBG_SUFF))226 $(foreach mod,$(VBOX_EFI_MODULES_FLAT_ARM),aarch64/$(mod)$(VBOX_EFI_DBG_SUFF)) \ 227 $(foreach mod,$(VBOX_EFI_MODULES_FLAT_ARM),aarch32/$(mod)$(VBOX_EFI_DBG_SUFF)) 228 228 endif 229 229 … … 320 320 endif 321 321 322 #323 # @todo This is temporary and shoud be changed to use proper tools depending324 # on the build environment325 322 ifdef VBOX_WITH_VIRT_ARMV8 326 ifeq ($(KBUILD_HOST),darwin) 327 VBOX_PATH_PREFIX_GCC_AARCH64 ?= aarch64-elf- 328 VBOX_PATH_PREFIX_GCC_ARM ?= arm-none-eabi- 329 else 330 VBOX_PATH_PREFIX_GCC_AARCH64 ?= 331 VBOX_PATH_PREFIX_GCC_ARM ?= 323 if1of ($(KBUILD_HOST),darwin linux) 324 ifndef TOOL_VBoxXGccArm64Elf 325 include $(KBUILD_TOOL_PATHS)/VBoxXGccArm64Elf.kmk 326 endif 327 ifndef TOOL_VBoxXGccArmNoneEabi 328 include $(KBUILD_TOOL_PATHS)/VBoxXGccArmNoneEabi.kmk 329 endif 332 330 endif 333 else334 VBOX_PATH_PREFIX_GCC_AARCH64 ?=335 VBOX_PATH_PREFIX_GCC_ARM ?=336 331 endif 337 332 … … 351 346 -e 's,@VBOX_PATH_PREFIX_GCC32@,$(PATH_TOOL_$(VBOX_GCC_TOOL)),' \ 352 347 -e 's,@VBOX_PATH_PREFIX_GCC64@,$(PATH_TOOL_$(VBOX_GCC_TOOL)),' \ 353 -e 's,@VBOX_PATH_PREFIX_GCC_AARCH64@,$( VBOX_PATH_PREFIX_GCC_AARCH64),' \354 -e 's,@VBOX_PATH_PREFIX_GCC_ARM@,$( VBOX_PATH_PREFIX_GCC_ARM),' \348 -e 's,@VBOX_PATH_PREFIX_GCC_AARCH64@,$(PATH_TOOL_VBoxXGccArm64Elf)/$(TOOL_VBoxXGccArm64Elf_PREFIX),' \ 349 -e 's,@VBOX_PATH_PREFIX_GCC_ARM@,$(PATH_TOOL_VBoxXGccArmNoneEabi)/$(TOOL_VBoxXGccArmNoneEabi_PREFIX),' \ 355 350 \ 356 351 -e 's,@PATH_VS2010@,$(PATH_TOOL_$(VBOX_VCC_TOOL)),' \
Note:
See TracChangeset
for help on using the changeset viewer.