pkg-cmake.mk: refactor the toolchainfile.cmake generation
authorSamuel Martin <s.martin49@gmail.com>
Sun, 1 Jun 2014 09:24:23 +0000 (11:24 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 1 Jun 2014 20:11:38 +0000 (22:11 +0200)
commit85fea5d9538e8ea1d1f83c7aa517ffebff7a4f1f
tree40320b97fbda68ea4b4a598648ce6d600cc91931
parent3d997bf7bc5acc89b2de60efe69fbcb7c66a2a11
pkg-cmake.mk: refactor the toolchainfile.cmake generation

This patch introduces a toolchainfile.cmake.in template which is filled
by Buildroot.

Using a toolchainfile.cmake.in template file allows to avoid overloading
quoting and/or escaping and it becomes much more similar to the
resulting file.

This patch also cleans up the quoting style.

[Peter: drop stdin redirect as suggested by Thomas]
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Cc: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/pkg-cmake.mk
support/misc/toolchainfile.cmake.in [new file with mode: 0644]