#!/bin/bash # -*- coding: utf-8 -*- # # nacl_build.sh -- NaCl library build script # # Copyright (C) 2011 Daniel Borkmann # Copyright (C) 2009-2011 Emmanuel Roullit # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. cc="gcc" nacl_dir="/tmp" nacl_version="nacl-20110221" nacl_suffix="tar.bz2" nacl_base_url="http://hyperelliptic.org/nacl" nacl_path="$nacl_dir/$nacl_version.$nacl_suffix" nacl_build_dir="$1" if test -z "$nacl_build_dir"; then echo "Please input the path where NaCl should be build" exit 1 fi if ! test -d "$nacl_build_dir"; then mkdir "$nacl_build_dir" fi wget -O "$nacl_path" "$nacl_base_url/$nacl_version.$nacl_suffix" tar xjf "$nacl_path" -C "$nacl_build_dir" $cc -Wall -O2 ./abiname.c -o ./abiname arch="`./abiname`" shorthostname=$(hostname | sed 's/\..*//' | tr -cd '[a-z][A-Z][0-9]') echo "Building NaCl for arch $arch on host $shorthostname (grab a coffee, this takes a while) ..." cd "$nacl_build_dir"/"$nacl_version" ./do cd - > /dev/null nacl_lib_path="$nacl_build_dir/$nacl_version/build/$shorthostname/lib/$arch" nacl_include_path="$nacl_build_dir/$nacl_version/build/$shorthostname/include/$arch" echo "NaCl lib path $nacl_lib_path" echo "NaCl include path $nacl_include_path" ./nacl_path.sh "$nacl_include_path" "$nacl_lib_path" echo "Done!" ht'>Tobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Eremin <dmitry.eremin@intel.com>2016-09-18 16:38:36 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-19 10:03:40 +0200
commit6ffc4b3b35acf1a860c703fc0c665b2719f5a44b (patch)
treef7c8cbcf9495173572933124430d9fa5a675bf40
parent7715c63692efd92db4dd3bd7748a92edca902276 (diff)
staging: lustre: osc: change cl_extent_tax and *grants to unsigned
Change the type accordant usage and remove warnings. Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5577 Reviewed-on: http://review.whamcloud.com/12386 Reviewed-by: James Simmons <uja.ornl@gmail.com> Reviewed-by: John L. Hammond <john.hammond@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com> Signed-off-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>