]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/intel_pstate: Fix build rule for x86
authorDaniel Díaz <daniel.diaz@linaro.org>
Wed, 21 Feb 2018 18:07:57 +0000 (12:07 -0600)
committerShuah Khan <shuahkh@osg.samsung.com>
Mon, 2 Apr 2018 17:55:47 +0000 (11:55 -0600)
commit04bef1d20685d6e669a559bdec54856efec4af5d
treec01eb7b0f1f82c3867e46e4a0e0e5e394ab44c8a
parent24d631f860ed8ecacb3c21f5b4c365e98b4cc5d6
selftests/intel_pstate: Fix build rule for x86

Ensure that ARCH is defined and that this only builds for
x86 architectures.

It is possible to build from the root of the Linux tree, which
will define ARCH, or to run make from the selftests/ directory
itself, which has no provision for defining ARCH, so this
change is to use the current definition (if any), or to check
uname -m if undefined.

Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/intel_pstate/Makefile