Skip to contentSkip to conversation

What determines the build location "OE_DIR/tmp/work/*" ?

DISCUSSION Ulf Samuelsson 2 participants 2 messages Jan 18, 2013

lore
Share & tools
lore
#0 lore raw

I am building a driver which will load firmware at runtime. For development purposes, I have defined two machines, which will be used to build two different versions of the driver.

Have a separate recipe for the firmware.
Each machine defines FW_VERSION which is used to select
a subtree containing the firmware, so the same recipe is used for both machines.

The driver gets built in "$OE_DIR/tmp/work/<machine>-angstrom-linux/gnueabi" but the firmware gets built in "$OE_DIR/tmp/work/armv7a-none-linux-gnueabi". This means that the same tree is used for both machines,
which of course does not work.

Is there a way to define that the recipe should be built in "$OE_DIR/tmp/work/<machine>-angstrom-linux/gnueabi"?

Otherwise, I guess I have to use two different recipes.

BR
Ulf Samuelsson

#1 lore raw
Quoted 14 lines · Ulf Samuelsson

I am building a driver which will load firmware at runtime. For development purposes, I have defined two machines, which will be used to build two different versions of the driver.

Have a separate recipe for the firmware.
Each machine defines FW_VERSION which is used to select
a subtree containing the firmware, so the same recipe is used for both machines.

The driver gets built in "$OE_DIR/tmp/work/<machine>-angstrom-linux/gnueabi" but the firmware gets built in "$OE_DIR/tmp/work/armv7a-none-linux-gnueabi". This means that the same tree is used for both machines,
which of course does not work.

Quoted 4 lines

Is there a way to define that the recipe should be built in "$OE_DIR/tmp/work/<machine>-angstrom-linux/gnueabi"?

Otherwise, I guess I have to use two different recipes.

PACKAGE_ARCH = "${MACHINE_ARCH}"

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]