Skip to contentSkip to conversation

bitbake ignores DEFAULT_PREFERENCE

DISCUSSION Dmitry Vinokurov 3 participants 4 messages Aug 20, 2009 – Aug 21, 2009

lore
Share & tools
lore
#0 lore raw

Hello,

I want to port OE to LPC3250 board and now I'm trying to build helloworld-image.

I've created lpc3250.conf in conf/machine:
TARGET_ARCH = "arm"
PACKAGE_EXTRA_ARCHS = "armv5te"
TARGET_CC_ARCH = "-fsigned-char -mfpu=vfp -mfloat-abi=softfp"

Then I've added DEFAULT_PREFERENCE_lpc3250 = "1" to 'recipes/linux/linux_2.6.27.bb', but 'bitbake -v helloworld-image' downloads 2.6.23 kernel all the same. Re-reading all recipes database make no sense.

Could anybody advise, how this can be solved? I need to use exactly 2.6.27 kernel as I know that it definitely works.

Thanks in advance.

Signature · 1 line
Best Regards, Dmitry Vinokurov <[email protected]>
#1 lore raw
Quoted 10 lines · Dmitry Vinokurov

Hello,

I want to port OE to LPC3250 board and now I'm trying to build helloworld-image.

I've created lpc3250.conf in conf/machine:
TARGET_ARCH = "arm"
PACKAGE_EXTRA_ARCHS = "armv5te"
TARGET_CC_ARCH = "-fsigned-char -mfpu=vfp -mfloat-abi=softfp"

Quoted 7 lines

Then I've added DEFAULT_PREFERENCE_lpc3250 = "1" to 'recipes/linux/linux_2.6.27.bb', but 'bitbake -v helloworld-image' downloads 2.6.23 kernel all the same. Re-reading all recipes database make no sense.

Could anybody advise, how this can be solved? I need to use exactly 2.6.27 kernel as I know that it definitely works.

Are you sure it downloads 2.6.23 to build your kernel and not the linux-libc-headers? Check the dependencies and what it's going to build by executing "bitbake <target> -g" and then poking into depends.dot...

Otherwise you can try setting PREFERRED_VERSION_virtual/kernel = "2.6.23" to override DEFAULT_PREFERENCE...

Signature · 1 line
Denys
#2 lore raw
Quoted 11 lines · Denys Dmytriyenko
Quoted 10 lines · Dmitry Vinokurov

Hello,

I want to port OE to LPC3250 board and now I'm trying to build helloworld-image.

I've created lpc3250.conf in conf/machine:
TARGET_ARCH = "arm"
PACKAGE_EXTRA_ARCHS = "armv5te"
TARGET_CC_ARCH = "-fsigned-char -mfpu=vfp -mfloat-abi=softfp"

Quoted 4 lines
Quoted 4 lines

Then I've added DEFAULT_PREFERENCE_lpc3250 = "1" to 'recipes/linux/linux_2.6.27.bb', but 'bitbake -v helloworld-image' downloads 2.6.23 kernel all the same. Re-reading all recipes database make no sense.

It could be downloading it for linux-libc-headers package too. bitbake -g can help you here.

Quoted 19 lines
Quoted 3 lines

Could anybody advise, how this can be solved? I need to use exactly 2.6.27 kernel as I know that it definitely works.

Are you sure it downloads 2.6.23 to build your kernel and not the linux-libc-headers? Check the dependencies and what it's going to build by executing "bitbake <target> -g" and then poking into depends.dot...

Otherwise you can try setting PREFERRED_VERSION_virtual/kernel = "2.6.23" to override DEFAULT_PREFERENCE...

--
Denys

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#3 lore raw
Quoted 14 lines · Khem Raj
Quoted 12 lines · Denys Dmytriyenko
Quoted 10 lines · Dmitry Vinokurov

Hello,

I want to port OE to LPC3250 board and now I'm trying to build helloworld-image.

I've created lpc3250.conf in conf/machine:
TARGET_ARCH = "arm"
PACKAGE_EXTRA_ARCHS = "armv5te"
TARGET_CC_ARCH = "-fsigned-char -mfpu=vfp -mfloat-abi=softfp"

Quoted 23 lines
Quoted 5 lines
Quoted 5 lines

Then I've added DEFAULT_PREFERENCE_lpc3250 = "1" to 'recipes/linux/linux_2.6.27.bb', but 'bitbake -v helloworld-image' downloads 2.6.23 kernel all the same. Re-reading all recipes database make no sense.

It could be downloading it for linux-libc-headers package too. bitbake -g can help you here.

Quoted 13 lines
Quoted 3 lines

Could anybody advise, how this can be solved? I need to use exactly 2.6.27 kernel as I know that it definitely works.

Are you sure it downloads 2.6.23 to build your kernel and not the linux-libc-headers? Check the dependencies and what it's going to build by executing "bitbake <target> -g" and then poking into depends.dot...

Otherwise you can try setting PREFERRED_VERSION_virtual/kernel = "2.6.23" to override DEFAULT_PREFERENCE...

--
Denys

Yes, you're right, it was for linux-libc-headers package. I'm not so easily work with OE yet.

--
Best Regards, Dmitry Vinokurov <[email protected]>