VirtualBox

Changeset 72800 in vbox for trunk/src/VBox/Devices/EFI


Ignore:
Timestamp:
Jul 2, 2018 4:19:11 PM (7 years ago)
Author:
vboxsync
Message:

EFI: Added make variable VBOX_BLD_PYTHON_2X for specifying a 2.x python for use with EFI.

Location:
trunk/src/VBox/Devices/EFI/Firmware
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware/Config.kmk

    r69111 r72800  
    4545# VBox Yasm command
    4646VBOX_YASMCMD   ?= $(firstword $(wildcard $(KBUILD_DEVTOOLS_HST)/bin/yasm$(HOSTSUFF_EXE)) yasm$(HOSTSUFF_EXE))
     47
     48# EFI requires python v2.x, so provide a way to select that while using 3.x for the rest of VBox.
     49ifndef VBOX_BLD_PYTHON_2X
     50 VBOX_BLD_PYTHON_2X = $(VBOX_BLD_PYTHON)
     51endif
    4752
    4853#
  • trunk/src/VBox/Devices/EFI/Firmware/Makefile.kmk

    r69111 r72800  
    6969        $(addprefix $(VBoxEfiBldPythonWrappers_0_OUTDIR)/,$(VBOX_EFI_PYTHON_WRAPPERS))
    7070endif
    71 VBoxEfiBldPythonWrappers_CLEAN = $(VBoxEfiBldPythonWrappers_SOURCES)
     71VBoxEfiBldPythonWrappers_CLEAN = $(VBoxEfiBldPythonWrappers_EXEC_SOURCES)
    7272
    7373if1of ($(KBUILD_HOST), win os2)
     
    7676        $$(APPEND) -tn "$$@" \
    7777                '@SET PYTHONPATH=$$(VBOX_PATH_EFI_FIRMWARE)/BaseTools/Source/Python' \
    78                 '@"$$(VBOX_BLD_PYTHON)" "$$(VBOX_PATH_EFI_FIRMWARE)/BaseTools/Source/Python/$(PyWrap)/$(PyWrap).py" %*'
     78                '@"$$(VBOX_BLD_PYTHON_2X)" "$$(VBOX_PATH_EFI_FIRMWARE)/BaseTools/Source/Python/$(PyWrap)/$(PyWrap).py" %*'
    7979 endef
    8080else
     
    8484                '#!$(ASH)' \
    8585                'export PYTHONPATH="$$(VBOX_PATH_EFI_FIRMWARE)/BaseTools/Source/Python"' \
    86                 'exec "$$(VBOX_BLD_PYTHON)" "$$(VBOX_PATH_EFI_FIRMWARE)/BaseTools/Source/Python/$(PyWrap)/$(PyWrap).py" "$$(DOLLAR)@"'
     86                'exec "$$(VBOX_BLD_PYTHON_2X)" "$$(VBOX_PATH_EFI_FIRMWARE)/BaseTools/Source/Python/$(PyWrap)/$(PyWrap).py" "$$(DOLLAR)@"'
    8787        $$(CHMOD) a+x "$$@"
    8888 endef
     
    223223        -E $(if-expr "$(KBUILD_VERBOSE)" != "",'EFI_QUIET=','EFI_QUIET=@') \
    224224        -C '$(VBOX_PATH_EFI_FIRMWARE)' \
    225         -- $(VBOX_BLD_PYTHON) "$(VBOX_PATH_EFI_FIRMWARE)/BaseTools/Source/Python/build/build.py" \
     225        -- $(VBOX_BLD_PYTHON_2X) "$(VBOX_PATH_EFI_FIRMWARE)/BaseTools/Source/Python/build/build.py" \
    226226        -D VBOX=1 \
    227227        -D VBOX_WITH_OVMF=1 \
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette