From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] Graphing package dependencies
Date: Thu, 06 May 2010 11:46:15 +0200 [thread overview]
Message-ID: <87r5lp9xco.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <20100506101437.5e35c795@surf> (Thomas Petazzoni's message of "Thu, 6 May 2010 10:14:37 +0200")
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Thomas> Hello,
Thomas> Following the question asked by Will yesterday, I just went ahead and
Thomas> implement a small tool that generates a graph of dependencies for a
Thomas> given package.
Thomas> The result of this tool for the libgtk2 package can be seen at
Thomas> http://free-electrons.com/~thomas/libgtk2-package-dependencies.pdf
Thomas> This is the kind of funny things we can do with a generic package
Thomas> infrastructure :-)
Nice!
Thomas> * package: optimize the implementation of UPPERCASE
Thomas> http://git.buildroot.net/~tpetazzoni/git/buildroot/commit/?h=graph-dependencies&id=b6a46aaed9e497503b66789d1b212473d7c78b58
My eyes! ;)
We could instead do something like gmsl does (http://gmsl.sf.net):
az := a b c d e f g h i j k l m n o p q r s t u v w x y z . -
AZ := A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _ _
UPPERCASE = $(eval __tmp := $1) \
$(foreach c, $(join $(addsuffix :,$(az)),$(AZ)), \
$(eval __tmp := \
$(subst $(word 1,$(subst :, ,$c)),$(word 2,$(subst :, ,$c)),\
$(__tmp)))) \
$(__tmp)
It loops through a character list of the form a:A b:B .., and
substitutes the 1st charact for the second.
This is written as a generic tr function, we could ofcourse merge az and
A-Z if we only ever want to do uppercase.
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2010-05-06 9:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-06 8:14 [Buildroot] Graphing package dependencies Thomas Petazzoni
2010-05-06 9:46 ` Peter Korsgaard [this message]
2010-05-13 18:21 ` Thomas Petazzoni
2010-05-14 10:40 ` Lionel Landwerlin
2010-05-17 6:46 ` Peter Korsgaard
2010-05-17 7:03 ` Thomas Petazzoni
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=87r5lp9xco.fsf@macbook.be.48ers.dk \
--to=jacmet@uclibc.org \
--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.