icecc: Support shell evaluation of KERNEL_CC
authorTobias Henkel <tobias.henkel@bmw-carit.de>
Tue, 12 Nov 2013 08:34:01 +0000 (09:34 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 12 Nov 2013 16:00:29 +0000 (16:00 +0000)
commit4b6dbcbcb9bf509e5b2afe93ae2752c486ac098d
treee330bb7862d3a1dcc9e0c607c5af322156bff093
parent35217ec91f86a9e2f512a7011078efe2b8e8a7c0
icecc: Support shell evaluation of KERNEL_CC

In the current implementation a KERNEL_CC variable containing shell
evaluation breaks the build process. Shell expansion is not happening
before general expansion in get_cross_kernel_cc which results in a
syntax error and an aborted parse process.

Before expanding the KERNEL_CC variable get_cross_kernel_cc now checks
for backticks or '$(' in the KERNEL_CC variable and performs a shell
evaluation using a call to echo if it finds one.

(From OE-Core rev: b28bae30fc5d8d1d7cc675ddb4159c39fb9bc3fd)

Signed-off-by: Tobias Henkel <tobias.henkel@bmw-carit.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/icecc.bbclass