All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Sokolovsky <pmiscml@gmail.com>
To: Florian Boor <florian.boor@kernelconcepts.de>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: Getting Started -Makefile
Date: Wed, 21 Nov 2007 04:24:21 +0200	[thread overview]
Message-ID: <156157209.20071121042421@gmail.com> (raw)
In-Reply-To: <47436CEE.9020407@kernelconcepts.de>

Hello Florian,

Wednesday, November 21, 2007, 1:25:34 AM, you wrote:

> Hi,

> Tim Bird schrieb:
>> This is nice.  Can someone tell me why this isn't
>> the default behavior of bitbake now?  (I'm honestly
>> not trolling :-)   There must be some good reason
>> to allow bitbake to be used outside of a build
>> directory.

>> Make (which bitbake resembles
>> in some aspects), is sensitive to it's starting
>> directory.  Why not bitbake?

> that's a pretty good point. In my opinion the fact that you need to set
> environment variables in addition to your configuration files is a pain anyway.
> I would expect bitbake to search for all configuration information in
> $PWD/conf/*.conf and that's it.

  Your expectations are wrong, as instead bitbake searches only for a
single file called "conf/bitbake.conf" under list of paths specified by
envvar BBPATH. Anything else happens as directed by that file, and
that's application-level configuration, not bitbake's per se.

  And there're good reasons it does that, which become obvious when
you start to think about it. After all, bitbake.conf is *master*
config, so how are you supposed to get that in *your* $PWD? We don't
talk manual copying here, no? Because it's one thing is to set one
well-defined envvar, and quite another is to shuffle pristine files
around just to get stuff started - the latter is rather non-scalable.

  Also, do you really think such complex system as OpenEmbedded would
allow user to source master config from his location instead of the
system's own? Nope, that would amount to letting user to shoot himself
not even in leg, but straight into head.
  
> That would reduce the initial overhead and makes
> it _much_ easier for new users to get along with OE.

#1

>> TMPDIR = "/OE/tmp/${DISTRO}"
>> No need for seperate build areas.
>> [And] If you use angstrom you can even
>> switch C library ([e]glibc vs uclibc), as outlined in
>> http://www.angstrom-distribution.org/building-angstrom
>> You can even have per distro tweaks using include statements, but I'll
>> leave that as an exercise to the reader. No need for seperate build
>> areas. At all.
> 
> as soon as you are working with multiple builds in parallel or you want to
> specify versions you need multiple build directories.

#2

  So, again conflicting expectations: on the one hand, you call for it
to be easy for users, and on the other hand, you argue with core OE
maintainer, who suggests a clean approach for system setup - you
ignore that, and instead tell that you're going to do it the way you
get used to, thanks to bitbake's flexibility.

  So, what people really want - be forced to adhere to best practices
or left with the easy choice of subverting them for their own
convenience?

  IMHO, where OpenEmbedded should head to is to promoting local.conf
to "advanced" features, left for the people who are able to setup
environment variables. Mere users should be forced to use repository
configs, with the only parameters to vary are DISTRO and MACHINE.

  And yep, those params are still to be passed via environment,
because it's easier to just run:

DISTRO=angstrom MACHINE=collie bitbake x11-image

than:
1. Edit some file somewhere
2. run bitbake

  (But for people who're really not familiar with Unix process environment,
bitbake switches --distro and --machine can be added).


> Greetings

> Florian




-- 
Best regards,
 Paul                            mailto:pmiscml@gmail.com




  reply	other threads:[~2007-11-21  2:33 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-19 12:08 Getting Started -Makefile David Farning
2007-11-19 14:33 ` Koen Kooi
2007-11-19 23:51   ` Rod Whitby
2007-11-20  9:12     ` pHilipp Zabel
2007-11-20 17:57       ` Tim Bird
2007-11-20 20:00         ` Cliff Brake
2007-11-20 20:38         ` Philip Balister
2007-11-20 23:25         ` Florian Boor
2007-11-21  2:24           ` Paul Sokolovsky [this message]
2007-11-21  3:38           ` Rod Whitby
2007-11-21  2:24         ` Paul Sokolovsky
2007-11-21  5:44           ` Rod Whitby
2007-11-21 17:45             ` Paul Sokolovsky
2007-11-22  1:35             ` Michael 'Mickey' Lauer
2007-11-22  4:20               ` Lorn Potter
2007-11-22  8:14                 ` Esben Haabendal
2007-11-23  1:05                   ` Lorn Potter
2007-11-21 17:58           ` Tim Bird
2007-11-21 18:29             ` Paul Sokolovsky
2007-11-21 23:17               ` Rod Whitby
2007-11-22  0:44                 ` Tim Bird
2007-11-22 20:29                 ` Paul Sokolovsky
2007-11-21 19:32             ` Philip Balister
2007-11-21 19:32             ` Philip Balister
2007-11-20 21:16       ` Rod Whitby
2007-11-21  6:20       ` Esben Haabendal
2007-11-21 17:57         ` Paul Sokolovsky
2007-11-21 23:04           ` Rod Whitby
2007-11-22  8:40           ` Esben Haabendal
2007-11-20  9:39     ` Richard Purdie
2007-11-20 11:06       ` Rod Whitby
2007-11-20 12:30         ` Koen Kooi
2007-11-20 21:20           ` Rod Whitby
2007-11-20  9:58     ` Koen Kooi
2007-11-20 11:11       ` Rod Whitby
2007-11-20 12:27         ` Koen Kooi
2007-11-20 21:19           ` Rod Whitby
2007-11-20 14:39         ` Paul Sokolovsky
2007-11-20 23:20       ` Florian Boor
2007-11-20 11:44     ` Rod Whitby
2007-11-20 13:10       ` Koen Kooi
2007-11-20 21:11         ` Rod Whitby
2007-11-20 23:06           ` Lorn Potter
2007-11-19 14:41 ` Holger Freyther
2007-11-19 18:32   ` Tobias Pflug
2007-11-19 21:08   ` Lorn Potter
2007-11-20  9:33     ` Richard Purdie
2007-11-20 10:46       ` Marcin Juszkiewicz
2007-11-20 15:32       ` Mike (mwester)
2007-11-20 17:04         ` Marcin Juszkiewicz
2007-11-20 17:29         ` Holger Freyther
2007-11-20 17:29         ` Koen Kooi
2007-11-20 23:12         ` Lorn Potter
2007-11-22  1:32           ` Michael 'Mickey' Lauer
2007-11-22  1:28         ` The truth about OE team being afraid of 'make' (was: Getting Started -Makefile) Michael 'Mickey' Lauer
2007-11-22  3:15           ` Chris Larson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=156157209.20071121042421@gmail.com \
    --to=pmiscml@gmail.com \
    --cc=florian.boor@kernelconcepts.de \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.