[Buildroot] [PATCHv2 0/5] Add apache thrift

Ryan Barnett rjbarnet at rockwellcollins.com
Wed Oct 30 15:34:36 UTC 2013


Gustavo,

Gustavo Zacarias <gustavo at zacarias.com.ar> wrote on 10/30/2013 09:39:24 
AM:

> On 10/29/2013 09:51 PM, rjbarnet at rockwellcollins.com wrote:

> FOO_DEPENDENCIES = thrift
> You'll need the runtime libs which implement all the networking stack
> besides the host tool to compile.
> A thrift definition file assembles into target source code with the tool
> with the chosen language. This could ostensibly be done outside
> buildroot, but very few distributions ship the thrift tool.
> Coarsely speaking it would fit in a build process like bison or flex.

Ok, thanks for the insight and yes of course I forgot about the target 
version.
 
> > define FOO_BUILD_CMDS
> >         # This assumes that the package's Makefile uses THRIFT for the
> > compiler
> >         $(TARGET_MAKE_ENV) $(MAKE) THRIFT=$(HOST_DIR)/usr/bin/thrift 
-C
> > $(@D)
> > endif
> 
> Not really, for a package/project with a proper Makefile you'd just
> point THRIFT=$(HOST_DIR)/usr/bin/thrift to it and be handled internally
> as part of the overall build process.
> 
> > Granted there is more each of the packages but this covers the thrift
> > specific parts. Please correct me if I have made incorrect assumptions
> > with how you envisioned utilizing THRIFT.
> 
> We can always define $(THRIFT) to make it handy for developers like it's
> done for QT_QMAKE for example - but being generally used with specific
> parameters (target language mostly) it would just point to the binary
> since it's pretty much self-contained.

Thank for you clarifying this for me. I will try to get around to testing 
out your patches here by the end of the week.

Thanks,
-Ryan 



More information about the buildroot mailing list