Skip to content

Commit

Permalink
Utilities: Add Windows binaries for BaseTools
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed May 18, 2020
1 parent 33cc24e commit 1e5e9fb
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 26 deletions.
37 changes: 19 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,6 @@ env:

matrix:
include:
- os: osx
name: "Run Scripts"

script:
- HOMEBREW_NO_INSTALL_CLEANUP=1 brew install shellcheck
- find . \( -name "*.tool" -o -name "*.command" -o -name "*.sh" \) -exec sh -c 'for TargetFile; do shellcheck --severity=info "${TargetFile}" || exit 1; done' sh {} +
- pip2 install pyyaml
- cd AppleModels || exit 1
- python2 ./update_generated.py || exit 1
- if [ "$(git status --porcelain)" != "" ]; then echo "DataBase desync"; exit 1 ; fi

- os: osx
name: "Build macOS XCODE5"
Expand Down Expand Up @@ -88,6 +78,25 @@ matrix:
- cd Doxy/latex || abort
- make pdf &> log.txt || abort

- os: windows
name: "Build Windows VS2017"

script:
- BUILD_UTILITIES=0
- choco install microsoft-build-tools visualcpp-build-tools nasm python zip
- "./build_oc.tool"

- os: osx
name: "Analyze Scripts"

script:
- HOMEBREW_NO_INSTALL_CLEANUP=1 brew install shellcheck
- find . \( -name "*.tool" -o -name "*.command" -o -name "*.sh" \) -exec sh -c 'for TargetFile; do shellcheck --severity=info "${TargetFile}" || exit 1; done' sh {} +
- pip2 install pyyaml
- cd AppleModels || exit 1
- python2 ./update_generated.py || exit 1
- if [ "$(git status --porcelain)" != "" ]; then echo "DataBase desync"; exit 1 ; fi

- os: osx
name: "Analyze Coverity"
osx_image: xcode11.3
Expand All @@ -113,11 +122,3 @@ matrix:
build_command_prepend: "./build_oc.tool --skip-build --skip-package && cd UDK ; src=$(curl -Lfs https://raw.githubusercontent.com/acidanthera/Lilu/master/Lilu/Scripts/covstrap.sh) && eval \"$src\" || exit 1"
build_command: "../build_oc.tool --skip-tests --skip-package RELEASE"
branch_pattern: master

- os: windows
name: "Build Windows VS2017"

script:
- BUILD_UTILITIES=0
- choco install microsoft-build-tools visualcpp-build-tools nasm python zip
- "./build_oc.tool"
2 changes: 1 addition & 1 deletion Platform/OpenCore/OpenCoreKernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ OcKernelLoadKextsAndReserve (
);
}

DEBUG ((DEBUG_INFO, "Kext reservation size %u\n", ReserveSize));
DEBUG ((DEBUG_INFO, "OC: Kext reservation size %u\n", ReserveSize));

return ReserveSize;
}
Expand Down
10 changes: 4 additions & 6 deletions Utilities/BaseTools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@ CC ?= gcc
CFLAGS ?= -O3 -s
MKDIR ?= mkdir
RM ?= /bin/rm
DIST ?= $(shell uname)

ifneq ($(OS),Windows_NT)
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
CFLAGS+=-mmacosx-version-min=10.6
endif
ifeq ($(DIST),Darwin)
CFLAGS+=-mmacosx-version-min=10.6
endif

BINDIR=bin.$(shell uname)
BINDIR=bin.$(DIST)
PRODUCTS=$(BINDIR)/GenPage $(BINDIR)/EfiLdrImage

all: $(PRODUCTS)
Expand Down
Binary file not shown.
Binary file added Utilities/BaseTools/bin.Windows/GenPage.exe
Binary file not shown.
6 changes: 5 additions & 1 deletion build_duet.tool
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ package() {
cd "$(dirname "$0")" || exit 1

BOOTSECTORS="$(pwd)/Legacy/BootSector/bin"
FV_TOOLS="$(pwd)/Utilities/BaseTools/bin.$(uname)"
UNAME="$(uname)"
if [ "$(echo "${UNAME}" | grep MINGW)" != "" ] || [ "$(echo "${UNAME}" | grep MSYS)" != "" ]; then
UNAME="Windows"
fi
FV_TOOLS="$(pwd)/Utilities/BaseTools/bin.${UNAME}"

if [ ! -d "${FV_TOOLS}" ]; then
echo "ERROR: You need to compile BaseTools for your platform!"
Expand Down

0 comments on commit 1e5e9fb

Please sign in to comment.