efi-demo-apps/.woodpecker.yaml

31 lines
1.1 KiB
YAML
Raw Normal View History

2024-03-29 11:38:58 +01:00
steps:
- name: build
image: fedora
commands:
2024-03-29 11:54:15 +01:00
- echo "Preparing environment"
2024-03-29 11:56:36 +01:00
- sudo dnf -y install git
2024-03-29 12:01:29 +01:00
- sudo dnf -y install make
2024-03-29 12:05:26 +01:00
- sudo dnf -y install gcc-g++
2024-03-29 12:01:29 +01:00
- sudo dnf -y install libuuid-devel
2024-03-29 11:54:15 +01:00
2024-03-29 11:38:58 +01:00
- echo "Cloning toolchain repositories"
- git clone https://github.com/tianocore/edk2.git
- cd edk2 && git submodule update --init && cd ..
- git clone https://github.com/tianocore/edk2-platforms.git
- cd edk2-platforms && git submodule update --init && cd ..
- git clone https://github.com/tianocore/edk2-non-osi.git
- echo "Configuring toolchain"
- export EDK_TOOLS_PATH="$PWD/edk2/BaseTools"
- export PACKAGES_PATH="$PWD/edk2:$PWD/edk2-platforms:$PWD/edk2-non-osi"
- . edk2/edksetup.sh
- make -C edk2/BaseTools
- echo "Copying application files"
- mkdir edk2/EfiClock
2024-03-29 12:11:21 +01:00
- cp EfiClock.inf edk2/EfiClock/.
- cp UefiMain.c edk2/EfiClock/.
2024-03-29 11:38:58 +01:00
- sed '/[Components]/a EfiClock/EfiClock.inf' file
- echo "Building application"
- build -a X64 -t GCC5 -p edk2/MdeModulePkg/MdeModulePkg.dsc