[Buildroot] LIBFOO_SITE in .mk file

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Nov 30 16:33:27 UTC 2011


Le Wed, 30 Nov 2011 10:20:41 -0600,
"Jeff Krasky" <jeff.krasky at dspcg.com> a écrit :

> Thank you so much for the reply.  I just checked and I don't see
> "LINUX_MAKE_FLAGS" in buildroot-2011.05/linux/linux.mk.  Maybe that's in the
> 2011.11 version?  But, are you saying that I could still use the
> autotools-based makefile and just add INSTALL_MOD_PATH, ARCH, and
> CROSS_COMPILE?  I have it running now, but the build takes a while, so if
> this is wrong can you tell me?

It is wrong.

> #############################################################
> #
> # EtherCAT
> #
> #############################################################
> ETHERCAT_VERSION = 1.0
> ETHERCAT_SOURCE = etherlabmaster-1.0.tar.bz2
> ###ETHERCAT_SITE = file:///home/user1/Desktop/EtherCAT4Atmel/
> ETHERCAT_SITE = http://127.0.0.1/home/user1/Desktop/EtherCAT4Atmel/
> ETHERCAT_INSTALL_STAGING = YES
> ETHERCAT_INSTALL_TARGET = YES
> ETHERCAT_CONF_OPT = --enable-generic
> #####LIBFOO_DEPENDENCIES = libglib2 host-pkg-config
> #####ETHERCAT_MAKE_OPT = INSTALL_MOD_DIR="ethercat" modules_install
> ETHERCAT_INSTALL_MOD_PATH = /lib/modules/2.6.33/ethercat
> ETHERCAT_ARCH = arm
> ETHERCAT_CROSS_COMPILE = arm-unknown-linux-uclibcgnueabi-

Those are not Buildroot variables, but Kbuild variables, that you must
pass when running the modules_install. The fact that EtherCAT contains
kernel modules makes it not completely straightforward to package.

Do you need it right now ? I might be interested in helping package
EtherCAT, but I don't have much time at the moment.

Best regards,

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