Skip to contentSkip to conversation

DISTRO 'poky' not found

DISCUSSION Darren Hart 3 participants 6 messages Mar 14, 2011 – Mar 16, 2011

lore
Share & tools
lore
#0 lore raw

I've run into this error several times during development of various things. It will be in a build tree that I have been working with for a while, then when I come back to it, I get the following. Any idea what triggers this? I suspect something in my workflow, but I can't imagine what it would be. I'd really like to not have to delete my build tree.

$ cd poky.git
$ source poky-init-build-env build-qemux86/

### Shell environment set up for Poky builds. ###

You can now run 'bitbake <target>'

Common targets are:
poky-image-minimal
poky-image-sato
meta-toolchain
meta-toolchain-sdk

You can also run generated qemu images with a command like 'poky-qemu qemux86'

$ bitbake linux-yocto
ERROR:  Poky's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

Please set TARGET_OS directly, or choose a MACHINE or DISTRO that does so.
DISTRO 'poky' not found. Please set a valid DISTRO in your local.conf

Signature · 3 lines
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
#1 lore raw
Quoted 17 lines · Darren Hart

I've run into this error several times during development of various things. It will be in a build tree that I have been working with for a while, then when I come back to it, I get the following. Any idea what triggers this? I suspect something in my workflow, but I can't imagine what it would be. I'd really like to not have to delete my build tree.

$ cd poky.git
$ source poky-init-build-env build-qemux86/

### Shell environment set up for Poky builds. ###

You can now run 'bitbake<target>'

Common targets are:
poky-image-minimal
poky-image-sato
meta-toolchain
meta-toolchain-sdk

You can also run generated qemu images with a command like 'poky-qemu qemux86'

Quoted 7 lines
$ bitbake linux-yocto
ERROR:  Poky's config sanity checker detected a potential misconfiguration.
     Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
     Following is the list of potential problems / advisories:

Please set TARGET_OS directly, or choose a MACHINE or DISTRO that does so.
DISTRO 'poky' not found. Please set a valid DISTRO in your local.conf

Thanks to Beth and Mark who pointed me in the right direction. This appears to be a problem with master, if I cherry-pick my changes on top of the bernard branch, the build continues as expected.

Signature · 3 lines
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
#2 lore raw
Quoted 24 lines · Darren Hart
Quoted 22 lines · Darren Hart

I've run into this error several times during development of various things. It will be in a build tree that I have been working with for a while, then when I come back to it, I get the following. Any idea what triggers this? I suspect something in my workflow, but I can't imagine what it would be. I'd really like to not have to delete my build tree.

$ cd poky.git
$ source poky-init-build-env build-qemux86/

### Shell environment set up for Poky builds. ###

You can now run 'bitbake<target>'

Common targets are:
poky-image-minimal
poky-image-sato
meta-toolchain
meta-toolchain-sdk

You can also run generated qemu images with a command like 'poky-qemu qemux86'

$ bitbake linux-yocto
ERROR:  Poky's config sanity checker detected a potential misconfiguration.
     Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
     Following is the list of potential problems / advisories:
Quoted 8 lines
Quoted 2 lines

Please set TARGET_OS directly, or choose a MACHINE or DISTRO that does so.
DISTRO 'poky' not found. Please set a valid DISTRO in your local.conf

Thanks to Beth and Mark who pointed me in the right direction. This appears to be a problem with master, if I cherry-pick my changes on top of the bernard branch, the build continues as expected.

Ah, our layers.conf.sample doesn't include the new meta-yocto layer. So I'm guessing this is a clean build dir?

We need a patch like the attached.

Cheers,
Joshua

Signature · 3 lines
Joshua Lock
        Yocto Build System Monkey
        Intel Open Source Technology Centre
meta-yocto/conf/bblayers.conf.sample +1 -0
index b2f37c0..ee85a98 100644
@@ -5,4 +5,5 @@ LCONF_VERSION = "4"
 BBFILES ?= ""
 BBLAYERS = " \
   ##POKYBASE##/meta \
+  ##POKYBASE##/meta-yocto \
   "
#3 lore raw
Quoted 29 lines · Joshua Lock
Quoted 28 lines · Darren Hart
Quoted 24 lines · Darren Hart

I've run into this error several times during development of various things. It will be in a build tree that I have been working with for a while, then when I come back to it, I get the following. Any idea what triggers this? I suspect something in my workflow, but I can't imagine what it would be. I'd really like to not have to delete my build tree.

$ cd poky.git
$ source poky-init-build-env build-qemux86/

### Shell environment set up for Poky builds. ###

You can now run 'bitbake<target>'

Common targets are:
poky-image-minimal
poky-image-sato
meta-toolchain
meta-toolchain-sdk

You can also run generated qemu images with a command like 'poky-qemu qemux86'

$ bitbake linux-yocto
ERROR:  Poky's config sanity checker detected a potential misconfiguration.
      Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
      Following is the list of potential problems / advisories:

Please set TARGET_OS directly, or choose a MACHINE or DISTRO that does so.
DISTRO 'poky' not found. Please set a valid DISTRO in your local.conf

Quoted 7 lines
Quoted 4 lines

Thanks to Beth and Mark who pointed me in the right direction. This appears to be a problem with master, if I cherry-pick my changes on top of the bernard branch, the build continues as expected.

Ah, our layers.conf.sample doesn't include the new meta-yocto layer. So I'm guessing this is a clean build dir?

I believe I've seen it on both - but probably only when switching branches back and forth between master and bernard.

Signature · 3 lines
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
#4 lore raw
Quoted 36 lines · Darren Hart
Quoted 34 lines · Joshua Lock
Quoted 32 lines · Darren Hart
Quoted 17 lines · Darren Hart

I've run into this error several times during development of various things. It will be in a build tree that I have been working with for a while, then when I come back to it, I get the following. Any idea what triggers this? I suspect something in my workflow, but I can't imagine what it would be. I'd really like to not have to delete my build tree.

$ cd poky.git
$ source poky-init-build-env build-qemux86/

### Shell environment set up for Poky builds. ###

You can now run 'bitbake<target>'

Common targets are:
poky-image-minimal
poky-image-sato
meta-toolchain
meta-toolchain-sdk

You can also run generated qemu images with a command like 'poky-qemu qemux86'

Quoted 7 lines
$ bitbake linux-yocto
ERROR:  Poky's config sanity checker detected a potential misconfiguration.
      Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
      Following is the list of potential problems / advisories:

Please set TARGET_OS directly, or choose a MACHINE or DISTRO that does so.
DISTRO 'poky' not found. Please set a valid DISTRO in your local.conf

Thanks to Beth and Mark who pointed me in the right direction. This appears to be a problem with master, if I cherry-pick my changes on top of the bernard branch, the build continues as expected.

Quoted 5 lines
Quoted 2 lines

Ah, our layers.conf.sample doesn't include the new meta-yocto layer. So I'm guessing this is a clean build dir?

I believe I've seen it on both - but probably only when switching branches back and forth between master and bernard.

There should be a fix in master for this now though?

Cheers,

Richard

#5 lore raw
Quoted 37 lines · Richard Purdie
Quoted 36 lines · Darren Hart
Quoted 34 lines · Joshua Lock
Quoted 32 lines · Darren Hart
Quoted 17 lines · Darren Hart

I've run into this error several times during development of various things. It will be in a build tree that I have been working with for a while, then when I come back to it, I get the following. Any idea what triggers this? I suspect something in my workflow, but I can't imagine what it would be. I'd really like to not have to delete my build tree.

$ cd poky.git
$ source poky-init-build-env build-qemux86/

### Shell environment set up for Poky builds. ###

You can now run 'bitbake<target>'

Common targets are:
poky-image-minimal
poky-image-sato
meta-toolchain
meta-toolchain-sdk

You can also run generated qemu images with a command like 'poky-qemu qemux86'

Quoted 7 lines
$ bitbake linux-yocto
ERROR:  Poky's config sanity checker detected a potential misconfiguration.
       Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
       Following is the list of potential problems / advisories:

Please set TARGET_OS directly, or choose a MACHINE or DISTRO that does so.
DISTRO 'poky' not found. Please set a valid DISTRO in your local.conf

Thanks to Beth and Mark who pointed me in the right direction. This appears to be a problem with master, if I cherry-pick my changes on top of the bernard branch, the build continues as expected.

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Ah, our layers.conf.sample doesn't include the new meta-yocto layer. So I'm guessing this is a clean build dir?

I believe I've seen it on both - but probably only when switching branches back and forth between master and bernard.

There should be a fix in master for this now though?

I believe so yes, the meta-yocto thing from Josh. I'll holler if I hit it again with that in place.

Signature · 3 lines
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel