Skip to contentSkip to conversation

while trying to update u-boot

DISCUSSION Radu Moisan 2 participants 4 messages Aug 3, 2012

lore
Share & tools
lore
#0 lore raw

I found the following code in u-boot.inc

if not d.getVar("UBOOT_MACHINE", True):
PN = d.getVar("PN", True)
FILE = os.path.basename(d.getVar("FILE", True)) bb.debug(1, "To build %s, see %s for instructions on \
setting up your machine config" % (PN, FILE))
raise bb.parse.SkipPackage("because UBOOT_MACHINE is not set")

and while I don't have UBOOT_MACHINE set, u-boot still follows with no problems through do_fetch, do_configure, do_compile and so on, and finishes without any problem/error. I would have expected to be skipped as the above code snipped would imply, but I cannot find that log message anywhere (nor any error to indicate failure). Can somebody point me in the right direction with this?

Radu

#1 lore raw
Quoted 9 lines · Radu Moisan

I found the following code in u-boot.inc

if not d.getVar("UBOOT_MACHINE", True):
PN = d.getVar("PN", True)
FILE = os.path.basename(d.getVar("FILE", True)) bb.debug(1, "To build %s, see %s for instructions on \
setting up your machine config" % (PN, FILE))
raise bb.parse.SkipPackage("because UBOOT_MACHINE is not set")

Quoted 8 lines

and while I don't have UBOOT_MACHINE set, u-boot still follows with no problems through do_fetch, do_configure, do_compile and so on, and finishes without any problem/error. I would have expected to be skipped as the above code snipped would imply, but I cannot find that log message anywhere (nor any error to indicate failure). Can somebody point me in the right direction with this?

Are you sure that variable is not set somewhere? Gave it a try on a machine with no u-boot defined:

ERROR: Nothing PROVIDES 'u-boot'
ERROR: u-boot was skipped: because UBOOT_MACHINE is not set
ERROR: u-boot was skipped: because UBOOT_MACHINE is not set
ERROR: u-boot was skipped: because UBOOT_MACHINE is not set

ag

#2 lore raw

Sorry, my bad, I was trying to build u-boot-fw-utils and assumed wrongly that the recipe requires u-boot.inc

Radu

Quoted 32 lines · Andrei Gherzan

On Fri, Aug 3, 2012 at 11:43 AM, Radu Moisan <[email protected] <mailto:[email protected]>> wrote:

I found the following code in u-boot.inc

if not d.getVar("UBOOT_MACHINE", True):
PN = d.getVar("PN", True)
FILE = os.path.basename(d.getVar("FILE", True)) bb.debug(1, "To build %s, see %s for instructions on \
setting up your machine config" % (PN, FILE))
raise bb.parse.SkipPackage("because UBOOT_MACHINE is not set")

and while I don't have UBOOT_MACHINE set, u-boot still follows with no problems through do_fetch, do_configure, do_compile and so on, and finishes without any problem/error. I would have expected to be skipped as the above code snipped would imply, but I cannot find that log message anywhere (nor any error to indicate failure). Can somebody point me in the right direction with this?

Are you sure that variable is not set somewhere? Gave it a try on a machine with no u-boot defined:

ERROR: Nothing PROVIDES 'u-boot'
ERROR: u-boot was skipped: because UBOOT_MACHINE is not set
ERROR: u-boot was skipped: because UBOOT_MACHINE is not set
ERROR: u-boot was skipped: because UBOOT_MACHINE is not set

ag

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

#3 lore raw
Quoted 4 lines · Radu Moisan

Sorry, my bad, I was trying to build u-boot-fw-utils and assumed wrongly
that the recipe requires u-boot.inc

It happens. No problem.

ag