[Buildroot] [PATCH 1/1] pkg-cmake.mk: Set CMAKE_SYSTEM_PROCESSOR.
s.martin49 at gmail.com
Sat Nov 15 18:20:49 UTC 2014
On Sat, Nov 15, 2014 at 6:52 PM, Romain Naour <romain.naour at openwide.fr> wrote:
> Hi Volker,
> Le 15/11/2014 18:26, Samuel Martin a écrit :
>> Hi Volker,
>> On Sat, Nov 15, 2014 at 5:00 PM, Volker Krause <volker.krause at kdab.com> wrote:
>>> This is rarely needed by packages, but convenient to have when it is.
> There is only one package (openpowerlink) that set this variable in buildroot
> and the expected value is "x86" or "x86_64".
Hmm... this is in the openpowerlink source?
I think it'd better do (to be more robust):
string(REGEX REPLACE "i*86" "x86" CMAKE_SYSTEM_PROCESSOR
But that's another story ;-)
> Are you sure that the BR2_ARCH can be used by other packages that need
> CMAKE_SYSTEM_PROCESSOR ?
According to CMake doc , CMAKE_SYSTEM_PROCESSOR is set to the
output of the command "uname -p" (in fact it is the output of "uname
This is only true for native compilation.
In the case of cross-compilation, the CMake code does not set anything
, it just expects the CMAKE_SYSTEM_* variables to be set in the
> If so, I can send a patch for openpowerlink to fix that.
> Best regards,
> Romain Naour
More information about the buildroot