|
1 | | -name: SOPHGO SG204x |
| 1 | +name: SOPHGO SG2044 |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
5 | 5 | paths: |
6 | | - - '.github/workflows/sophgo-sg204x.yml' |
| 6 | + - '.github/workflows/sophgo-sg2044.yml' |
7 | 7 | - '.github/workflows/.sophgo-sg204x.*' |
8 | | - - 'sophgo-sg204x/**' |
| 8 | + - 'sophgo/sg2044/**' |
9 | 9 |
|
10 | 10 | jobs: |
11 | 11 |
|
12 | | - build-zsbl-sg2042: |
13 | | - name: Build ZSBL for SG2042 |
14 | | - uses: ./.github/workflows/.sophgo-sg204x.zsbl-build.yml |
15 | | - with: |
16 | | - target_name: sophgo-sg2042 |
17 | | - zsbl_repo: revyos/zsbl |
18 | | - # Branch sg204x as of 20260227 |
19 | | - zsbl_ref: 45054e711d81fbfa1c2167829402d26795199ae7 |
20 | | - zsbl_defconfig: sg2042_defconfig |
21 | 12 | build-zsbl-sg2044: |
22 | 13 | name: Build ZSBL for SG2044 |
23 | 14 | uses: ./.github/workflows/.sophgo-sg204x.zsbl-build.yml |
|
28 | 19 | zsbl_ref: 45054e711d81fbfa1c2167829402d26795199ae7 |
29 | 20 | zsbl_defconfig: sg2044_defconfig |
30 | 21 |
|
31 | | - build-opensbi-sg2042: |
32 | | - name: Build OpenSBI for SG2042 |
33 | | - uses: ./.github/workflows/.sophgo-sg204x.opensbi-build.yml |
34 | | - with: |
35 | | - target_name: sophgo-sg2042 |
36 | | - opensbi_repo: sophgo/opensbi |
37 | | - # Branch sg2042-dev as of 20260225 |
38 | | - opensbi_ref: adc7ba17f3726aee599bc6fc879fbc569fbbba71 |
39 | 22 | build-opensbi-sg2044: |
40 | 23 | name: Build OpenSBI for SG2044 |
41 | 24 | uses: ./.github/workflows/.sophgo-sg204x.opensbi-build.yml |
|
62 | 45 | # Branch sg204x-v0.15 as of 20260225 |
63 | 46 | u_root_ref: 69595b5c67cb59b0afb9744d13625b9df6869a64 |
64 | 47 |
|
65 | | - build-kernel-sg2042: |
66 | | - name: Build Kernel for SG2042 |
67 | | - uses: ./.github/workflows/.sophgo-sg204x.kernel-build.yml |
68 | | - with: |
69 | | - target_name: sophgo-sg2042 |
70 | | - kernel_repo: sophgo/linux-riscv |
71 | | - # Branch sg2042-dev-6.6 as of 20260226 |
72 | | - kernel_ref: 15143c39ba8d2ebd6c47e7eabcbf2a3b19960532 |
73 | | - kernel_defconfig: sophgo_mango_normal_defconfig |
74 | | - |
75 | 48 | build-kernel-sg2044: |
76 | 49 | name: Build Kernel for SG2044 |
77 | 50 | uses: ./.github/workflows/.sophgo-sg204x.kernel-build.yml |
|
82 | 55 | kernel_ref: a7aa9547d2b946aee64e68ff46ad0f61196fe798 |
83 | 56 | kernel_defconfig: kexec_defconfig |
84 | 57 |
|
85 | | - prepare-firmware-content-sg2042: |
86 | | - name: Prepare Firmware Contents for SG2042 |
87 | | - needs: |
88 | | - - build-zsbl-sg2042 |
89 | | - - build-opensbi-sg2042 |
90 | | - - build-u-root |
91 | | - - build-kernel-sg2042 |
92 | | - runs-on: ubuntu-latest |
93 | | - strategy: |
94 | | - matrix: |
95 | | - include: |
96 | | - - firmware_target_name: linuxboot-sophgo-sg2042 |
97 | | - zsbl_target_name: sophgo-sg2042 |
98 | | - opensbi_target_name: sophgo-sg2042 |
99 | | - u_root_target_name: sophgo-sg204x |
100 | | - kernel_target_name: sophgo-sg2042 |
101 | | - steps: |
102 | | - - name: Checkout This Repo |
103 | | - uses: actions/checkout@v5 |
104 | | - with: |
105 | | - fetch-depth: 1 |
106 | | - path: u-boot-build |
107 | | - - name: Setup Work Dirs |
108 | | - run: | |
109 | | - mkdir -p dist/riscv64 |
110 | | - - name: Fetch Pre-built ZSBL |
111 | | - uses: actions/download-artifact@v5 |
112 | | - with: |
113 | | - name: "zsbl-${{ matrix.zsbl_target_name }}" |
114 | | - path: dist |
115 | | - merge-multiple: true |
116 | | - - name: Copy fip.bin |
117 | | - run: | |
118 | | - cp u-boot-build/sophgo-sg204x/blobs/sg2042/fip.bin dist |
119 | | - - name: Fetch Pre-built OpenSBI |
120 | | - uses: actions/download-artifact@v5 |
121 | | - with: |
122 | | - name: "opensbi-${{ matrix.opensbi_target_name }}" |
123 | | - path: dist/riscv64 |
124 | | - merge-multiple: true |
125 | | - - name: Fetch Pre-built u-root |
126 | | - uses: actions/download-artifact@v5 |
127 | | - with: |
128 | | - name: "u-root-${{ matrix.u_root_target_name }}" |
129 | | - path: dist/riscv64 |
130 | | - merge-multiple: true |
131 | | - - name: Fetch Pre-built Kernel |
132 | | - uses: actions/download-artifact@v5 |
133 | | - with: |
134 | | - name: "kernel-${{ matrix.kernel_target_name }}" |
135 | | - path: dist/riscv64 |
136 | | - merge-multiple: true |
137 | | - - name: Install dtc |
138 | | - run: | |
139 | | - sudo apt-get update |
140 | | - sudo apt-get install -y device-tree-compiler |
141 | | - - name: Fixup dtb name |
142 | | - run: | |
143 | | - dtc dist/riscv64/mango-milkv-pioneer.dtb | sed 's/console=tty1 //' | dtc > dist/riscv64/sg2042-milkv-pioneer.dtb |
144 | | - - name: Upload Artifacts |
145 | | - uses: actions/upload-artifact@v4 |
146 | | - with: |
147 | | - name: "collected-${{ matrix.firmware_target_name }}" |
148 | | - path: dist |
149 | | - |
150 | 58 | prepare-firmware-content-sg2044-rva23: |
151 | 59 | name: Prepare Firmware Contents for SG2044 with RVA23 Emu |
152 | 60 | needs: |
@@ -205,13 +113,6 @@ jobs: |
205 | 113 | name: "collected-${{ matrix.firmware_target_name }}" |
206 | 114 | path: dist |
207 | 115 |
|
208 | | - pack-sd-boot-firmware-sg2042: |
209 | | - name: Pack SD Card Boot Image for SG2042 |
210 | | - needs: prepare-firmware-content-sg2042 |
211 | | - uses: ./.github/workflows/.sophgo-sg204x.pack-sdimg.yml |
212 | | - with: |
213 | | - firmware_target_name: linuxboot-sophgo-sg2042 |
214 | | - |
215 | 116 | pack-sd-boot-firmware-sg2044-rva23: |
216 | 117 | name: Pack SD Card Boot Image for SG2044 with RVA23 Emu |
217 | 118 | needs: prepare-firmware-content-sg2044-rva23 |
|
0 commit comments