All of lore.kernel.org
 help / color / mirror / Atom feed
From: Esben Haabendal <eha@doredevelopment.dk>
To: openembedded-devel@openembedded.org
Subject: Re: Getting Started -Makefile
Date: Wed, 21 Nov 2007 07:20:57 +0100	[thread overview]
Message-ID: <1195626057.11679.7.camel@localhost> (raw)
In-Reply-To: <74d0deb30711200112x17ad31fej4b25840a74e05abb@mail.gmail.com>


On Tue, 2007-11-20 at 10:12 +0100, pHilipp Zabel wrote:
> On Nov 20, 2007 12:51 AM, Rod Whitby <rod@whitby.id.au> wrote:
> > Koen Kooi wrote:
> So why not provide a simple shell wrapper instead of setup-env and the
> Makefile's build-package-% part? That way, at least people would learn
> the correct bitbake syntax from the beginning.
> 
> $ cat ~/bin/bitbake
> #!/bin/sh
> export OEDIR=${OEDIR:-$PWD}
> export BBPATH=${BBPATH:-$OEDIR/build:$OEDIR/openembedded}
> /usr/local/bin/bitbake $*
> 
> > If we can fix the underlying problem (needing to type more than one
> > command to build an image with bitbake), then I will fully support a
> > move to get rid of all bitbake wrappers from all the Makefiles that I
> > manage.
> 
> The question is how to fix this problem correctly.
> One possibility would be that bitbake, if BBPATH is unset, issues a
> warning and scans the file system (starting from the $PWD) for a
> certain file (local.conf) in which BBPATH would be specified.

Something like that would be nice. When bitbake finds BBPATH unset, it
traverses from $PWD to / to find a .bbenv (or some other filename, but
local.conf is probably not a good one), which can setup BBPATH,
PYTHONPATH, OEDIR or whatever env virables is used in the
conf/local.conf file. To guard against bad bitbake versions (as BBPATH
is unset, bitbake can be expected to be picked up from a generic PATH)
it might be smart to introduce a variable in local.conf stating specific
or minimum version requirements for bitbake.

Would there by any problems in extending bitbake calling convention in
this way?

/Esben

-- 
Esben Haabendal
Embedded Software Consultant, Dore Development ApS
Phone: +45 5192 5393  Email: eha@doredevelopment.dk




  parent reply	other threads:[~2007-11-21  6:23 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
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 [this message]
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=1195626057.11679.7.camel@localhost \
    --to=eha@doredevelopment.dk \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=openembedded-devel@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.