Genode build system

Martin Stein martin.stein at genode-labs.com
Mon Mar 18 11:29:27 CET 2019


Hi Valery,

There's a good example of pretty exactly what you're trying to do in the
Genode world repository:

https://github.com/genodelabs/genode-world/blob/master/src/app/ltris/target.mk

As you can see in lines 17, you can make your map file depend on
$(TARGET), which includes all binaries and libraries that are needed for
the target declared in line 1. Then you can declare a rule how your map
file gets generated like done here in lines 18/19.

I hope this helped?

Cheers,
Martin

El 18/3/19 a las 0:17, Valery V. Sedletski via users escribió:
> Hi all.
> 
> Does Genode build system only allow to build a binary or library
> with each "target.mk" makefile? Is it possible to have non-binary
> targets in these makefiles, or have more than one target?
> 
> Specifically, I need to generate a "map" file with some functions
> addresses. So, I use "nm" on a just built binary to generate a map file
> with lines like
> 
> <Function_name> <Function_address>
> 
> The map file should be a dependency of the binary itself, but
> I was not able to figure out, how to trigger a map file generation
> after the binary is built. I tried to add a rule like this:
> 
> all: map
> 
> to target.mk. So, the map file should be a dependency of "all" target,
> but this does not work, because "map" then is built before the binary
> specified as
> 
> TARGET = <binary_name>
> 
> Does someone have any ideas, how it's possible to accomplish this?
> 
> WBR,
> valery
> 
> 
> 
> _______________________________________________
> Genode users mailing list
> users at lists.genode.org
> https://lists.genode.org/listinfo/users



More information about the users mailing list