File tree Expand file tree Collapse file tree 2 files changed +25
-6
lines changed Expand file tree Collapse file tree 2 files changed +25
-6
lines changed Original file line number Diff line number Diff line change 71
71
libelf-dev \
72
72
libncurses5-dev \
73
73
libssl-dev \
74
+ u-boot-tools \
74
75
make
75
76
76
77
- name : Download toolchain
@@ -146,16 +147,15 @@ jobs:
146
147
;;
147
148
esac
148
149
150
+ make -j $(nproc) uImage
151
+
149
152
if [[ "${{ matrix.targets.cpu }}" =~ ^(hs5x|hs6x) ]]; then
150
- image_name="loader"
151
- image_path=${{ github.workspace }}/arch/arc/boot/loader
153
+ cp ${{ github.workspace }}/arch/arc/boot/loader vmlinux-${{ matrix.targets.cpu }}
152
154
else
153
- image_name="vmlinux"
154
- image_path="${{ github.workspace }}/vmlinux"
155
+ cp ${{ github.workspace }}/vmlinux vmlinux-${{ matrix.targets.cpu }}
155
156
fi
156
157
157
- make -j $(nproc) ${image_name}
158
- cp $image_path vmlinux-${{ matrix.targets.cpu }}
158
+ cp ${{ github.workspace }}/arch/arc/boot/uImage uImage-${{ matrix.targets.cpu }}
159
159
shell : bash
160
160
161
161
- name : Upload ${{ matrix.targets.cpu }} vmlinux
@@ -165,6 +165,13 @@ jobs:
165
165
path : vmlinux-${{ matrix.targets.cpu }}
166
166
retention-days : 5
167
167
168
+ - name : Upload ${{ matrix.targets.cpu }} uImage
169
+ uses : actions/upload-artifact@v3
170
+ with :
171
+ name : uImage-${{ matrix.targets.cpu }}
172
+ path : uImage-${{ matrix.targets.cpu }}
173
+ retention-days : 5
174
+
168
175
test :
169
176
needs : [build]
170
177
runs-on : nsim
Original file line number Diff line number Diff line change @@ -35,13 +35,25 @@ $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
35
35
$(obj ) /vmlinux.bin.lzma : $(obj ) /vmlinux.bin FORCE
36
36
$(call if_changed,lzma)
37
37
38
+ ifeq ($(CONFIG_ISA_ARCV3 ) ,y)
39
+ $(obj ) /uImage.bin : $(obj ) /vmlinux.bin $(obj ) /loader FORCE
40
+ else
38
41
$(obj ) /uImage.bin : $(obj ) /vmlinux.bin FORCE
42
+ endif
39
43
$(call if_changed,uimage,none)
40
44
45
+ ifeq ($(CONFIG_ISA_ARCV3 ) ,y)
46
+ $(obj ) /uImage.gz : $(obj ) /vmlinux.bin.gz $(obj ) /loader FORCE
47
+ else
41
48
$(obj ) /uImage.gz : $(obj ) /vmlinux.bin.gz FORCE
49
+ endif
42
50
$(call if_changed,uimage,gzip)
43
51
52
+ ifeq ($(CONFIG_ISA_ARCV3 ) ,y)
53
+ $(obj ) /uImage.lzma : $(obj ) /vmlinux.bin.lzma $(obj ) /loader FORCE
54
+ else
44
55
$(obj ) /uImage.lzma : $(obj ) /vmlinux.bin.lzma FORCE
56
+ endif
45
57
$(call if_changed,uimage,lzma)
46
58
47
59
$(obj ) /loader.o : $(src ) /loader.S $(obj ) /vmlinux.bin
You can’t perform that action at this time.
0 commit comments