[oe] Need some help with conditional assignment

Pelle Svensson pelle2004 at hotmail.com
Sun Jun 24 13:10:25 UTC 2007


I need to assign a variable by condition and I can't get it right
Have tried these without any luck. I'm inside a bbclass...

# KERNEL_MAKE_OPTIONS += "${@base_conditional( 'KERNEL_BUILD_DIR', '', '', 
'-O '+bb.data.getVar('',d,1), d )}"
# KERNEL_MAKE_OPTIONS += "${@base_conditional( 'KERNEL_BUILD_DIR', '', '', 
'-O ${KERNEL_BUILD_DIR}', d )}"
KERNEL_MAKE_OPTIONS += "${@['-O ${KERNEL_BUILD_DIR}', 
''][bb.data.getVar('KERNEL_BUILD_DIR', d, 1) != '']}"

do_compile() {
	oe_runmake ${KERNEL_MAKE_OPTIONS} zImage
}

_________________________________________________________________
Kolla in coola trailern till Die Hard 4 
http://specials.se.msn.com/diehard4/default.aspx





More information about the Openembedded-devel mailing list