[Buildroot] [PATCH 1/3] gpsd: proper usage of prefix and DESTDIR

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Jul 25 08:22:42 UTC 2012


Le Wed, 25 Jul 2012 08:53:54 +0100,
Simon Dawson <spdawson at gmail.com> a écrit :

> Hi Thomas. The build is now falling over for me:

This is the Python support of gpsd, correct? Was it building before my
patches?

Because if you look closely:

> /opt/tfx/arch/arm/usr/bin/ccache /usr/lib/ccache/gcc -pthread -o

It is building with the native compiler gcc and not the cross-compiler,
so obviously it cannot work. 

> > @@ -223,10 +224,9 @@ endef
> >  define GPSD_INSTALL_STAGING_CMDS
> >         (cd $(@D); \
> >                 $(GPSD_SCONS_ENV) \
> > +               DESTDIR=$(TARGET_DIR) \
> >                 $(SCONS) \
> >                 $(GPSD_SCONS_OPTS) \
> > -               destdir=$(STAGING_DIR) \
> > -               includedir="$(STAGING_DIR)/usr/include" \
> >                 install)
> >  endef
> 
> Should DESTDIR be set to $(STAGING_DIR), rather than $(TARGET_DIR), here?

Good point, will fix.

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the buildroot mailing list