nuttx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gn...@apache.org
Subject [incubator-nuttx-testing] 03/41: Add prebuilt gperf needed in kconfig-frontends configure
Date Fri, 01 May 2020 20:50:24 GMT
This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-testing.git

commit ca27fd6136a7d69a1e5530e3cc45e4efbce94277
Author: liuhaitao <liuhaitao@xiaomi.com>
AuthorDate: Tue Feb 4 17:22:45 2020 +0800

    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>
---
 cibuild.sh | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/cibuild.sh b/cibuild.sh
index 1fa5676..953854b 100755
--- a/cibuild.sh
+++ b/cibuild.sh
@@ -24,7 +24,7 @@ apps=$WD/../apps
 tools=$WD/../tools
 prebuilt=$WD/../prebuilt
 
-install="gen-romfs kconfig-frontends arm-gcc-toolchain mips-gcc-toolchain riscv-gcc-toolchain
c-cache"
+install="gen-romfs gperf kconfig-frontends arm-gcc-toolchain mips-gcc-toolchain riscv-gcc-toolchain
c-cache"
 
 function add_path {
   PATH=$1:$PATH
@@ -46,6 +46,20 @@ function gen-romfs {
   fi
 }
 
+function gperf {
+  add_path $prebuilt/gperf/bin
+
+  if [ ! -f "$prebuilt/gperf/bin/gperf" ]; then
+    cd $prebuilt
+    wget http://ftp.gnu.org/pub/gnu/gperf/gperf-3.1.tar.gz
+    tar zxf gperf-3.1.tar.gz
+    cd $prebuilt/gperf-3.1
+    ./configure --prefix=$prebuilt/gperf; make; make install
+    cd $prebuilt
+    rm -rf gperf-3.1; rm gperf-3.1.tar.gz
+  fi
+}
+
 function kconfig-frontends {
   add_path $prebuilt/kconfig-frontends/bin
 


Mime
View raw message