pkg-cmake.mk: Set CMAKE_SYSTEM_PROCESSOR.
authorVolker Krause <volker.krause@kdab.com>
Mon, 17 Nov 2014 20:02:41 +0000 (21:02 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 9 Dec 2014 22:00:12 +0000 (23:00 +0100)
commitc1e41153e662c7d49d7e0d1bf5e7a953d784f849
treee40286b5ca90e8df3ef829a647f732cfd4900780
parent315d29e15994d086a500c72180608b3e65ebcdbf
pkg-cmake.mk: Set CMAKE_SYSTEM_PROCESSOR.

This is rarely needed by packages, but convenient to have when it is.

[Thomas:
  - don't define ARM_VARIANT as this name is too global, use
    CMAKE_SYSTEM_PROCESSOR_ARM_VARIANT instead.
  - don't use ifndef, but a more traditional else clause, for the
    non-ARM cases.]

Signed-off-by: Volker Krause <volker.krause@kdab.com>
Reviewed-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Reviewed-by: Romain Naour <romain.naour@openwide.fr>
Acked-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/pkg-cmake.mk
support/misc/toolchainfile.cmake.in