From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v5] package: add opencv
Date: Wed, 26 Oct 2011 23:21:57 +0200 [thread overview]
Message-ID: <201110262321.57932.arnout@mind.be> (raw)
In-Reply-To: <878voazf4r.fsf@macbook.be.48ers.dk>
On Monday, October 24, 2011 15:35:32 Peter Korsgaard wrote:
[snip]
> Samuel> +# Build type
> Samuel> +OPENCV_CONF_OPT += -DCMAKE_BUILD_TYPE=$(if
> $(BR2_ENABLE_DEBUG),Debug,Release)
>
> While this works it looks quite different than other packages - We
> normally do:
>
> OPENCV_CONF_OPT += \
> blah=.. \
> blih=.. \
> bloh=..
>
> ifeq ($(BR2_PACKAGE_BLAH))
> OPENCV_CONF_OPT += BLAH=on
> OPENCV_DEPENDENCIES += blah
> else
> OPENCV_CONF_OPT += BLAH=OFF
> endif
>
> ..
>
> I've rewritten it to use that form.
Actually, for that particular one you haven't :-)
Also I think it's important to use
ifeq ($(BR2_PACKAGE_BLAH),y)
so you can easily disable it on the command line with
make BR2_PACKAGE_BLAH=n
(Of course, 'make BR2_PACKAGE_BLAH=' would still work, but it's less
intuitive.)
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 31BB CF53 8660 6F88 345D 54CC A836 5879 20D7 CF43
next prev parent reply other threads:[~2011-10-26 21:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-23 18:58 [Buildroot] [PATCH v5] package: add opencv Samuel Martin
2011-10-24 13:35 ` Peter Korsgaard
2011-10-26 21:21 ` Arnout Vandecappelle [this message]
2011-10-27 11:41 ` Samuel Martin
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=201110262321.57932.arnout@mind.be \
--to=arnout@mind.be \
--cc=buildroot@busybox.net \
/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.