forked from FieryFlames/Lumia630Pkg
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (39 loc) · 1.61 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: build (DEBUG)
on:
push:
branches: [ "530" ]
pull_request:
branches: [ "530" ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Update APT
run: sudo apt update
- name: Install Dependencies
run: sudo apt install build-essential crossbuild-essential-armhf uuid-dev iasl git nasm python3-distutils
- name: Create EDK2 workspace
run: mkdir /home/runner/work/EDK2WorkDir
- name: Clone sources
run: |
cd /home/runner/work/EDK2WorkDir/
git clone https://github.com/Tianocore/edk2.git -b stable/202011 --depth=1 --recursive
git clone https://github.com/vicenteicc2008/Lumia530Pkg --depth=1 edk2/Lumia530Pkg
- name: Build BaseTools
run: |
cd /home/runner/work/EDK2WorkDir/edk2
make -C BaseTools/
- name: Build EDK2
run: |
cd /home/runner/work/EDK2WorkDir/edk2
. /home/runner/work/EDK2WorkDir/edk2/edksetup.sh
GCC5_ARM_PREFIX=arm-linux-gnueabihf- build -a ARM -p Lumia530Pkg/Lumia530.dsc -t GCC5 -j$(nproc) -s -n 0
- name: Create ELF binary
run: |
cd /home/runner/work/EDK2WorkDir/edk2/Build/Lumia530-ARM/DEBUG_GCC5/FV
arm-linux-gnueabihf-objcopy -I binary -O elf32-littlearm --binary-architecture arm MSM8612_EFI.fd MSM8612_EFI.fd.elf && arm-linux-gnueabihf-ld MSM8612_EFI.fd.elf -T ../../../../Lumia530Pkg/FvWrapper.ld -o ../../../../../emmc_appsboot.mbn
- uses: actions/upload-artifact@v4
with:
name: Lumia 530
path: /home/runner/work/EDK2WorkDir/emmc_appsboot.mbn