[Buildroot] LIBFOO_SITE in .mk file

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Nov 28 15:54:22 UTC 2011


Le Mon, 28 Nov 2011 09:19:29 -0600,
"Jeff Krasky" <jeff.krasky at dspcg.com> a écrit :

> My understanding from the tutorial at
> http://buildroot.uclibc.org/buildroot.html#add_packages was that
> 
> ETHERCAT_SITE = file:///home/user1/Desktop/EtherCAT4Atmel
> 
> specifies the path (whether it is http or filesystem)
> 
> and
> 
> ETHERCAT_SOURCE = etherlabmaster.tar.bz2
> 
> specifies the file name.
> 
> Then I thought Buildroot would put ETHERCAT_SITE + ETHERCAT_SOURCE to come
> up with the location of the file.  This is not correct?

Woops, you're right, my bad. The manual is obvisouly correct.

You should use :

ETHERCAT_VERSION = 3.3
ETHERCAT_SITE = http://foobar.com/somewhere/
ETHERCAT_SOURCE = ethercat-$(ETHERCAT_VERSION).tar.bz2

> ETHERCAT_SITE = file:///home/user1/Desktop/EtherCAT4Atmel/
> etherlabmaster.tar.bz2

Why are you using a local directory ? You *really* should be using a
tarball available from http or ftp so that you can later contribute
your package to Buildroot.

Thanks,

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