All of lore.kernel.org
 help / color / mirror / Atom feed
* get OE git hash tag in executable
@ 2012-01-28 12:42 Frans Meulenbroeks
  2012-01-28 14:18 ` Paul Eggleton
  0 siblings, 1 reply; 4+ messages in thread
From: Frans Meulenbroeks @ 2012-01-28 12:42 UTC (permalink / raw)
  To: openembedded-devel

Hi,

In order to allow backtracking of the sources for a binary build with OE, I
would like to (automatically) add the hash of the top level commit (and
maybe also the branch) of the oe git tree my recipe lives in).
E.g. in main.c I would like to have a var say:
const char * const buildfrom = "oe branch 2011.03-maintence hash
1234567890"; or something like that.

What would be the best way to get that info into my program?
(my best guess at the moment is to use a macro and compile with
-DOE_IDENT="....." or so and say  char *buildfrom = OE_IDENT; but not
really sure what the best way is to fill OE_IDENT and pass it to the
recipe.)

(and of course I'm open to alternate solutions; as long as I can trace back
the git hash)

Thanks in advance for any suggestions!
Frans


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-28 18:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-28 12:42 get OE git hash tag in executable Frans Meulenbroeks
2012-01-28 14:18 ` Paul Eggleton
2012-01-28 17:57   ` Khem Raj
2012-01-28 18:11   ` Frans Meulenbroeks

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.