5f1a4a8a12
Meson is detecting the path /proc/sys/vm/nr_hugepages in the call to cat in app/test/meson.build and then adding it as a build dependency. This causes build loop if the timestamp of this file keeps changing. It is fixed by hiding hugepage check in a shell script. Fixes: 77784ef0fba8 ("test: allow no-huge mode for fast-tests") Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Tested-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> Reviewed-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> Acked-by: Aaron Conole <aconole@redhat.com> Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
12 lines
273 B
Bash
Executable File
12 lines
273 B
Bash
Executable File
#! /bin/sh
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright 2020 Mellanox Technologies, Ltd
|
|
|
|
if [ "$(uname)" = "Linux" ] ; then
|
|
cat /proc/sys/vm/nr_hugepages || echo 0
|
|
elif [ "$(uname)" = "FreeBSD" ] ; then
|
|
echo 1 # assume FreeBSD always has hugepages
|
|
else
|
|
echo 0
|
|
fi
|