summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaresh Kamboju <naresh.kamboju@linaro.org>2016-09-30 03:11:14 +0530
committerNaresh Kamboju <naresh.kamboju@linaro.org>2016-09-30 03:11:14 +0530
commit81869dc3fd36396caae48e8b4429ada65e4e8109 (patch)
tree63819b6402fbabc4ea44155b415e6376f258f71c
parentcd39cab0334fd4c23db5af3e8dad827cb386a83b (diff)
ltp: packages for CentOS
Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
-rwxr-xr-xautomated/linux/ltp/ltp.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/automated/linux/ltp/ltp.sh b/automated/linux/ltp/ltp.sh
index 70ba7bb..f0a255f 100755
--- a/automated/linux/ltp/ltp.sh
+++ b/automated/linux/ltp/ltp.sh
@@ -101,7 +101,17 @@ info_msg "Output directory: ${OUTPUT}"
if [ "${SKIP_INSTALL}" = "True" ] || [ "${SKIP_INSTALL}" = "true" ]; then
info_msg "install_ltp skipped"
else
- pkgs="xz-utils flex bison build-essential wget curl"
+ dist_name
+ case "${dist}" in
+ Debian|Ubuntu)
+ pkgs="xz-utils flex bison build-essential wget curl"
+ ;;
+ CentOS|Fedora)
+ pkgs="xz flex bison make automake gcc gcc-c++ kernel-devel wget curl"
+ ;;
+ *)
+ error_msg "Unsupported distribution!"
+ esac
install_deps "${pkgs}" "${SKIP_INSTALL}"
info_msg "Run install_ltp"
install_ltp