- if [ "%{DISTRO_ARCH}" = "x86_64" ]; then
- pushd tools/power/cpupower/debug/x86_64
- make %{MAKETUNING} centrino-decode powernow-k8-decode
- popd
- elif [ "%{DISTRO_ARCH}" = "i686" ]; then
- pushd tools/power/cpupower/debug/i386
- make %{MAKETUNING} centrino-decode powernow-k8-decode
- popd
- fi
-
- # Should be built for all x86 architectures
- if [ "%{DISTRO_ARCH}" = "x86_64" ]; then
- # Won't compile on i686
- # x86_energy_perf_policy.c: In function ‘validate_cpuid’:
- # x86_energy_perf_policy.c:154:2: error: PIC register clobbered by ‘ebx’ in ‘asm’
- # asm("cpuid" : "=a" (fms), "=c" (ecx), "=d" (edx) : "a" (1) : "ebx");
- # ^
- pushd tools/power/x86/x86_energy_perf_policy
- make
- popd
-
- # Same as above
- pushd tools/power/x86/turbostat
- make
- popd
- fi
-