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)
commit6aa69043d9f3f4adc5b3817ccfcac1fddfe10ded
treec01eb7b0f1f82c3867e46e4a0e0e5e394ab44c8a
parent88893cf787d3062c631cc20b875068eb11756e03
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