[Buildroot] LIBFOO_SITE in .mk file

Jeff Krasky jeff.krasky at dspcg.com
Wed Nov 30 16:20:41 UTC 2011


> > Since this is what needs to be done, can someone mention how to do it in
> > Buildroot?  Maybe I need the Makefile for Generic Packages, not the
> > autotools-based packages makefile?
>
> You'll need to pass the INSTALL_MOD_PATH environment variable, but also
> the ARCH= and CROSS_COMPILE variable. The easiest way is probably to use
> $(LINUX_MAKE_FLAGS) variable defined in linux/linux.mk.

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?

#############################################################
#
# 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-

$(eval $(call AUTOTARGETS,package,ethercat))




More information about the buildroot mailing list