Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conf: Refactor template conf files #12

Open
wants to merge 1 commit into
base: krogoth
Choose a base branch
from
Open

conf: Refactor template conf files #12

wants to merge 1 commit into from

Conversation

lzala
Copy link

@lzala lzala commented Nov 10, 2016

Renamed templates files to be aligned with TEMPLATECONF.
This change will simplify oe-init-build-env initialization.

e.g.
TEMPLATECONF=meta-bbb/conf . ./oe-init-build-env ../build_bbb/

Signed-off-by: Lucian Zala [email protected]

Renamed templates files to be aligned with TEMPLATECONF.
This change will simplify oe-init-build-env initialization.

e.g.
TEMPLATECONF=meta-bbb/conf . ./oe-init-build-env ../build_bbb/

Signed-off-by: Lucian Zala <[email protected]>
@lzala
Copy link
Author

lzala commented Nov 10, 2016

Hi,

If you consider this change you may update also the tutorial webpage.
TEMPLATECONF=meta-bbb/conf . ./oe-init-build-env ../build_bbb/

Thanks!

@scottellis
Copy link

Can you elaborate on what problem this is solving?

Your proposal

$ cd poky-krogoth
$ TEMPLATECONF=meta-bbb/conf . ./oe-init-build-env ../build_bbb/

versus the way it is now

$ . ~/poky-krogoth/oe-init-build-env ~/bbb/build

"LucianZala" [email protected] said:

Renamed templates files to be aligned with TEMPLATECONF.
This change will simplify oe-init-build-env initialization.

e.g.
TEMPLATECONF=meta-bbb/conf . ./oe-init-build-env ../build_bbb/

Signed-off-by: Lucian Zala [email protected]
You can view, comment on, or merge this pull request online at:

#12

-- Commit Summary --

  • conf: Refactor template conf files

-- File Changes --

D conf/bblayers.conf-sample (16)
A conf/bblayers.conf.sample (16)
A conf/conf-notes.txt (8)
R conf/local.conf-x11.sample (0)
R conf/local.conf.sample (0)

-- Patch Links --

https://github.com/jumpnow/meta-bbb/pull/12.patch
https://github.com/jumpnow/meta-bbb/pull/12.diff

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#12

@lzala
Copy link
Author

lzala commented Nov 10, 2016

It automatically parse and copy .sample bblayers.conf and local.conf to build/conf and prints the available targets. Take a look at poky-krogoth/scripts/oe-setup-builddir script.

##OEROOT##/meta-bbb in bblayers is working only if meta-bbb is cloned in poky-krogoth (I think all the layers should be cloned in poky root directory).

lucianz@LinuxMachine:~/work/yocto/poky-krogoth$ TEMPLATECONF=meta-bbb/conf . ./oe-init-build-env ../build_bbb/
You had no conf/local.conf file. This configuration file has therefore been
created for you with some default values. You may wish to edit it to, for
example, select a different MACHINE (target hardware). See conf/local.conf
for more information as common configuration options are commented.

You had no conf/bblayers.conf file. This configuration file has therefore been
created for you with some default values. To add additional metadata layers
into your configuration please add entries to conf/bblayers.conf.

The Yocto Project has extensive documentation about OE including a reference
manual which can be found at:
http://yoctoproject.org/documentation

For more information about OpenEmbedded see their website:
http://www.openembedded.org/

Shell environment set up for builds.

You can now run 'bitbake '

Common targets are:
console-image
can-console-image
installer-image
qt5-image
qt5-x11-image
x11-image

lucianz@LinuxMachine:~/work/yocto/build_bbb$ bitbake console-image

@scottellis
Copy link

Hi Lucian,

So basically you want these two files renamed so the oe-setup-builddir
finds them

meta-bbb/conf/bblayer.conf-sample -> meta-bbb/conf/bblayer.conf
meta-bbb/conf/local.conf-sample -> meta-bbb/conf/local.conf

And a new file added

meta-bbb/conf/conf-notes.txt

Though I think it would likely be something more like this for meta-bbb

scott@fractal:~/bbg/meta-bbb/conf$ cat conf-notes.txt
Some custom targets are:

    console-image
    installer-image
    qt5-image

The other recipes in the meta-bbb/images directory are really just me
messing around and I wouldn't trust them to necessarily work.

##OEROOT##/meta-bbb in bblayers is working only if meta-bbb is cloned in
poky-krogoth (I think all the layers should be cloned in poky folder structure).

I don't agree with this.

I have dozens of different boards/projects using the same poky-
repo and I would rather not pollute the poky- directories with
these customer repos.

But this just the way I prefer to work and you can choose differently.

Thanks for taking the time to send this.

Probably this weekend I will make the changes at the top of this email.

I have to fix a bunch of posts on my site as well, so I'll have to wait until
I have time to synchronize this.

Best regards,
Scott

"LucianZala" [email protected] said:

It automatically parse and copy .sample bblayers.conf and local.conf to build/conf
and prints the available targets. Take a look to TEMPLATECONF=meta-bbb/conf .
./oe-init-build-env ../build_bbb/ script.

##OEROOT##/meta-bbb in bblayers is working only if meta-bbb is cloned in
poky-krogoth (I think all the layers should be cloned in poky folder structure).

lucianz@LinuxMachine:~/work/yocto/poky-krogoth$ TEMPLATECONF=meta-bbb/conf .
./oe-init-build-env ../build_bbb/
You had no conf/local.conf file. This configuration file has therefore been
created for you with some default values. You may wish to edit it to, for
example, select a different MACHINE (target hardware). See conf/local.conf
for more information as common configuration options are commented.

You had no conf/bblayers.conf file. This configuration file has therefore been
created for you with some default values. To add additional metadata layers
into your configuration please add entries to conf/bblayers.conf.

The Yocto Project has extensive documentation about OE including a reference
manual which can be found at:
http://yoctoproject.org/documentation

For more information about OpenEmbedded see their website:
http://www.openembedded.org/

Shell environment set up for builds.

You can now run 'bitbake '

Common targets are:
console-image
can-console-image
installer-image
qt5-image
qt5-x11-image
x11-image

lucianz@LinuxMachine:~/work/yocto/build_bbb$ bitbake console-image

You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#12 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants