Code Monkey home page Code Monkey logo

ovmfdarwinpkg's Introduction

Build

OvmfDarwinPkg

OVMF clone that provides macOS guests support with no third-party bootloaders

Build notes

Check EDK II documentation to prepare the environment (iasl, nasm required). All the OVMF manuals are compatible with this package. Build tested on edk2-stable202105 version.

Run this script to perform everything in one command:

# Build defaults - DEBUG,X64,XCODE5(macOS)/GCC5(Linux)
$ ./builduefi.sh 

Or use Docker container as build environment:

# Just a 'builduefi.sh' wrapper
$ ./dockerbuild.sh 

More examples:

# Show help
$ ./builduefi.sh -help

# Switch target to RELEASE
$ ./builduefi.sh -buildRelease

# How to pass other build arguments 
$ ./builduefi.sh -D DEBUG_ON_SERIAL_PORT

Binaries will be placed in Build/ directory. The script is a wrapper for EDK build:

# Simplified './builduefi.sh'
# PWD - ../../OvmfDarwinPkg

# Setup EDK II
git clone https://github.com/tianocore/edk2.git edk2
cd edk2
git checkout edk2-stable202008
git submodule update --init
make -C BaseTools
cd -

# Create symbolic links to packages
ln -s $PWD edk2/OvmfDarwinPkg
ln -s $PWD/LegacyPackages/IntelFrameworkPkg edk2/IntelFrameworkPkg
ln -s $PWD/LegacyPackages/IntelFrameworkModulePkg edk2/IntelFrameworkModulePkg

# Build
cd edk2
source edksetup.sh

# macOS
build -a X64 -t XCODE5 -p OvmfDarwinPkg/OvmfDarwinPkgX64.dsc -b DEBUG

# Linux
build -a X64 -t GCC5 -p OvmfDarwinPkg/OvmfDarwinPkgX64.dsc -b DEBUG

Added components

ovmfdarwinpkg's People

Contributors

shchuko avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

codecubby

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.