[oe] how to know why bitbake will pick a wrong .bb file after providing PREFERRED_PROVIDER value

srinredplano SP srinredplano at gmail.com
Sat Jan 29 00:30:09 UTC 2011


Hi ,
I am using DISTRO=arago  and MACHINE= omap3axon(same as that of
omap3evm ) to compile linux-2.6.22  kernel .

when I try to execute the following   command
tbake finds my .bb file and uses

$> MACHINE=omap3axon  bitbake virtual/kernel

wrong bb file is getting picked up . How to know why a wrong .bb file
is picked up(it always picks
linux-nokia900-2.6.28.10+gitr0+e93534addfc33a2fefbca13cb86a8f787e4b650c-r92.bb
file  ) and which  variable i have to override so that only my .bb
file gets executed .
Is there any thing else which I am missing . thanks  in advance

The following  the local.conf ,   omap3axon.conf

local.conf  file :
### local.conf #########

SCRATCH ?= "${OEBASE}"

DL_DIR = "${SCRATCH}/downloads"

TMPDIR = "${SCRATCH}/arago-tmp"

MACHINE = "omap3axon"

DISTRO = "arago"

ENABLE_BINARY_LOCALE_GENERATION = "0"

IMAGE_FSTYPES = "jffs2 tar.gz ext2.gz"

BBDEBUG = "yes"

PARALLEL_MAKE = "-j 8"
BB_NUMBER_THREADS = "4"

BBINCLUDELOGS = "yes"

TOOLCHAIN_TYPE = "external"
TOOLCHAIN_BRAND = "csl"
DEFAULT_PREFERENCE = "1"

####### END local.conf ####


MACHINE : omap3axon.conf
## MACHINE  CONF omap3axon.conf  ##

#@DESCRIPTION: Machine configuration for the TI OMAP3 EVM
TARGET_ARCH = "arm"

PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
XSERVER = "xserver-xorg \
           xf86-input-evdev \
           xf86-input-mouse \
           xf86-input-tslib \
           xf86-video-omapfb \
           xf86-input-keyboard"

GUI_MACHINE_CLASS = "smallscreen"

require conf/machine/include/omap3.inc

IMAGE_FSTYPES ?= "jffs2 tar.bz2"
EXTRA_IMAGECMD_jffs2 = "-lnp -e 0x20000 -s 2048"

SERIAL_CONSOLE = "115200 ttyS0"

PREFERRED_PROVIDER_virtual/kernel = "linux-omap3axon-2.6.22-pspaxon"

UBOOT_ARCH = "arm"

MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen touchscreen"

KVER= "2.6.22"

MKUBIFS_ARGS = "-m 2048 -e 129024 -c 1996"

UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512"

##END -- MACHINE  CONF omap3axon.conf  ##





linux-omap3axon-2.6.22-pspaxon.bb file :
#####linux-omap3axon-2.6.22-pspaxon.bb ##

SRC_URI = "file://linux-2.6.22.tar.gz \
           file://defconfig"

COMPATIBLE_MACHINE = "omap3axon"

require linux-omap3.inc

SECTION = "kernel"

KVER = "2.6.22"

DEFAULT_PREFERENCE = "1"
DEFAULT_PREFERENCE_omap3axon = "1"
#SRC_URI := "${@oe_filter_out('file://defconfig',
bb.data.getVar('SRC_URI', d, 1), d)}"


DEFAULT_PREFERENCE = "1"

do_setup_defconfig() {
        :
}

do_configure() {
        make omap3evm_defconfig
}


SRCREV = "753"
PREFERRED_PROVIDER_omap3axon = "1"
MACHINE_KERNEL_PR_append = "+svnr${SRCREV}"

SRC_URI = "file://linux-2.6.22.tar.gz \
           file://defconfig"

addtask quiltfixup before do_patch after do_unpack

do_quiltfixup() {
          :
}

S = "${WORKDIR}/kernel/linux-2.6.22"


do_install_append() {
            install -d ${D}/boot
}

PACKAGES =+ "omap-dss-doc"
FILES_omap-dss-doc = "/boot/DSS"


####END----linux-omap3axon-2.6.22-pspaxon.bb ####




More information about the Openembedded-devel mailing list