Skip to content

Commit ca27fd6

Browse files
liuguo09xiaoxiang781216
authored andcommitted
Add prebuilt gperf needed in kconfig-frontends configure
Apache jenkins slave may not have gperf installed, so make gperf prebuilt which needed in kconfig-frontends configure. Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
1 parent b2588d3 commit ca27fd6

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

cibuild.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ apps=$WD/../apps
2424
tools=$WD/../tools
2525
prebuilt=$WD/../prebuilt
2626

27-
install="gen-romfs kconfig-frontends arm-gcc-toolchain mips-gcc-toolchain riscv-gcc-toolchain c-cache"
27+
install="gen-romfs gperf kconfig-frontends arm-gcc-toolchain mips-gcc-toolchain riscv-gcc-toolchain c-cache"
2828

2929
function add_path {
3030
PATH=$1:$PATH
@@ -46,6 +46,20 @@ function gen-romfs {
4646
fi
4747
}
4848

49+
function gperf {
50+
add_path $prebuilt/gperf/bin
51+
52+
if [ ! -f "$prebuilt/gperf/bin/gperf" ]; then
53+
cd $prebuilt
54+
wget http://ftp.gnu.org/pub/gnu/gperf/gperf-3.1.tar.gz
55+
tar zxf gperf-3.1.tar.gz
56+
cd $prebuilt/gperf-3.1
57+
./configure --prefix=$prebuilt/gperf; make; make install
58+
cd $prebuilt
59+
rm -rf gperf-3.1; rm gperf-3.1.tar.gz
60+
fi
61+
}
62+
4963
function kconfig-frontends {
5064
add_path $prebuilt/kconfig-frontends/bin
5165

0 commit comments

Comments
 (0)