Skip to content

Commit 8bb8282

Browse files
committed
ci: add ccache and nor-ubi, cleanup uboot.bin
1 parent 5c3ea36 commit 8bb8282

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
ccache libssl-dev u-boot-tools \
8787
gcc-arm-linux-gnueabihf \
8888
gcc-aarch64-linux-gnu \
89-
make python3-pyelftools
89+
make python3-pyelftools ccache
9090
9191
- name: Fetch mtk-atf branch
9292
if: matrix.atf == true
@@ -133,8 +133,8 @@ jobs:
133133
bash build.sh rename
134134
fi
135135
136-
# optional: special NAND/UBI case
137-
if [[ "$boot" == *"nand"* ]]; then
136+
# optional special NAND/UBI case
137+
if [[ "$boot" =~ nand|nor ]]; then
138138
echo "extraflags=UBI=1" >> build.conf
139139
bash build.sh build
140140
bash build.sh rename
@@ -145,6 +145,11 @@ jobs:
145145
bash build.sh rename
146146
fi
147147
fi
148+
# we do not need u-boot.bin for all devices
149+
# only one sdmmc and emmc version (chain loading)
150+
if [[ "$boot" != *"mmc"* ]]; then
151+
rm u-boot*.bin
152+
fi
148153
rm -f build.conf
149154
else
150155
bash build.sh createimg non-interactive

0 commit comments

Comments
 (0)