All of lore.kernel.org
 help / color / mirror / Atom feed
* how to know why bitbake will pick a wrong .bb file after providing PREFERRED_PROVIDER value
@ 2011-01-29  0:30 srinredplano SP
  0 siblings, 0 replies; 3+ messages in thread
From: srinredplano SP @ 2011-01-29  0:30 UTC (permalink / raw)
  To: openembedded-devel

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 ####



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to know why bitbake will pick a wrong .bb file after providing PREFERRED_PROVIDER value
  2011-01-28 21:37 srinredplano SP
@ 2011-01-29  5:53 ` Khem Raj
  0 siblings, 0 replies; 3+ messages in thread
From: Khem Raj @ 2011-01-29  5:53 UTC (permalink / raw)
  To: openembedded-devel

On Fri, Jan 28, 2011 at 1:37 PM, srinredplano SP <srinredplano@gmail.com> wrote:
>
> *linux-omap3axon-2.6.22-pspaxon.bb* file :
> #####linux-omap3axon-2.6.22-pspaxon.bb ##
>

This would make PN of your recipe to be linux-omap3axon-2.6.22-pspaxon
you probably dont want that you should name it something like
linux-omap3axon-pspaxon_2.6.22.bb

then in your <machine.conf> add
PREFERRED_PROVIDER_virtual/kernel = "linux-omap3axon-pspaxon"

in linux-omap3axon-pspaxon_2.6.22.bb you can add
DEFAULT_PREFERENCE_<yourmachine> = "1"

-khem



^ permalink raw reply	[flat|nested] 3+ messages in thread

* how to know why bitbake will pick a wrong .bb file after providing PREFERRED_PROVIDER value
@ 2011-01-28 21:37 srinredplano SP
  2011-01-29  5:53 ` Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: srinredplano SP @ 2011-01-28 21:37 UTC (permalink / raw)
  To: openembedded-devel

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"

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<http://end----linux-omap3axon-2.6.22-pspaxon.bb/>####


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-01-29  5:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-29  0:30 how to know why bitbake will pick a wrong .bb file after providing PREFERRED_PROVIDER value srinredplano SP
  -- strict thread matches above, loose matches on Subject: below --
2011-01-28 21:37 srinredplano SP
2011-01-29  5:53 ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.