mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-12 12:55:49 +00:00
21 lines
717 B
Bash
21 lines
717 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||
|
|
||
|
# This script will always run on its own basepath, no matter where you call it from.
|
||
|
pushd ${SCRIPT_DIR}
|
||
|
|
||
|
# Download the UEFI tool and library sources:
|
||
|
git clone --depth=1 https://github.com/tianocore/edk2 || exit
|
||
|
# This script only supports building the tools on 64-bit hosts:
|
||
|
export ARCH=X64
|
||
|
# Build common sources required by the GenFw tool:
|
||
|
make -C edk2/BaseTools/Source/C/Common || exit
|
||
|
# Build the GenFw tool that is used to generate UEFI binaries:
|
||
|
make -C edk2/BaseTools/Source/C/GenFw || exit
|
||
|
# Create a makefile that indicates to the Contiki build system that UEFI support
|
||
|
# should be built:
|
||
|
echo "EN_UEFI = 1" > Makefile.uefi
|
||
|
|
||
|
popd
|