blob: 112cdaa08fffd41a4fd67ace4ec54d588eb57005 [file] [log] [blame]
subrata_modakadc21b62007-12-13 10:11:34 +00001################################################################################
2## ##
3## Copyright (c) International Business Machines Corp., 2007 ##
4## ##
5## This program is free software; you can redistribute it and#or modify ##
6## it under the terms of the GNU General Public License as published by ##
7## the Free Software Foundation; either version 2 of the License, or ##
8## (at your option) any later version. ##
9## ##
10## This program is distributed in the hope that it will be useful, but ##
11## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
12## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
13## for more details. ##
14## ##
15## You should have received a copy of the GNU General Public License ##
16## along with this program; if not, write to the Free Software ##
Wanlong Gao4548c6c2012-10-19 18:03:36 +080017## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
subrata_modakadc21b62007-12-13 10:11:34 +000018## ##
19################################################################################
subrata_modakf2f433e2008-11-03 06:57:28 +000020#
subrata_modakadc21b62007-12-13 10:11:34 +000021# Author Pradeep Kumar Surisetty, pradeepkumars@in.ibm.com
subrata_modakf2f433e2008-11-03 06:57:28 +000022#
subrata_modakadc21b62007-12-13 10:11:34 +000023# History Nov 27 2007 -created- pradeep kumar surisetty
24#! /bin/sh
25#
26# File : test.sh
27
28
29#!/bin/sh
30x=0
31chk_ifexist()
32{
33if [ ! -d /sys/devices/system/node ]
34then
35x=0
subrata_modakadc21b62007-12-13 10:11:34 +000036else
subrata_modak883f8342008-01-31 10:56:26 +000037x=$(ls /sys/devices/system/node | wc -l)
subrata_modakadc21b62007-12-13 10:11:34 +000038fi
39if [ $x -gt 1 ]
40then
subrata_modakf560bd22008-03-18 06:57:18 +000041 if [ ! -f /usr/include/numa.h ]
subrata_modak883f8342008-01-31 10:56:26 +000042 then
subrata_modakf560bd22008-03-18 06:57:18 +000043 echo no;
44 else
45 echo yes;
subrata_modakf2f433e2008-11-03 06:57:28 +000046 fi
subrata_modakadc21b62007-12-13 10:11:34 +000047else
48 echo no; #numa is not present
49
50fi
51}
Garrett Cooperf73e1482010-06-20 04:56:40 -070052if [ "$CROSS_COMPILER" = "" ] then
subrata_modakf2f433e2008-11-03 06:57:28 +000053 chk_ifexist
54else
55 echo no;
56fi
subrata_modakadc21b62007-12-13 10:11:34 +000057