From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael S. Zick Date: Thu, 1 Dec 2011 14:36:22 -0600 Subject: [Buildroot] [PATCH 1/1] igh-ethercat: new package In-Reply-To: <001401ccb062$f6768db0$0400a8c0@dspcgrnzks9p98> References: <8994d83580fbd41c89016f1cc35e10ecce46025b.1322691543.git.thomas.petazzoni@free-electrons.com> <001401ccb062$f6768db0$0400a8c0@dspcgrnzks9p98> Message-ID: <201112011436.25141.minimod@morethan.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On Thu December 1 2011, Jeff Krasky wrote: > I tried taking the results of the patch and putting them in the .mk file > that I was using with buildroot-2011.11 (I really don't want to have to find > out why 2011.11 has that filesystem problem, so can someone please help with > this makefile?). > > I do not see the application get built, nor do I see the kernel modules get > built. I notice that the new .mk file that Thomas make doesn't have the > $eval. Perhaps I need that back in? If so, can someone tell me the right > one (gentargets versus autotargets). > This is what his patch looked like: http://lists.busybox.net/pipermail/buildroot/2011-November/047920.html Note that there is an "eval" at the end of it. Note that it isn't in git (yet) but when it gets there (no pun intended): http://git.buildroot.net/buildroot/ You should be able to pull a plain text file from that web interface without e-mail mangling. Mike > Please help. > > Here is the .mk file: > > ############################################################# > # > # 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_AUTORECONF = YES > ETHERCAT_DEPENDENCIES = linux > ETHERCAT_INSTALL_STAGING = YES > > #ETHERCAT_INSTALL_TARGET = YES > #ETHERCAT_CONF_OPT = --enable-generic > ETHERCAT_CONF_OPT = \ > --with-linux-dir=$(LINUX_DIR) > > ETHERCAT_CONF_OPT += $(if > $(BR2_PACKAGE_ETHERCAT_8139TOO),--enable-8139too,--disable-8139too) > ETHERCAT_CONF_OPT += $(if > $(BR2_PACKAGE_ETHERCAT_E100),--enable-e100,--disable-e100) > ETHERCAT_CONF_OPT += $(if > $(BR2_PACKAGE_ETHERCAT_E1000),--enable-e1000,--disable-e1000) > ETHERCAT_CONF_OPT += $(if > $(BR2_PACKAGE_ETHERCAT_R8169),--enable-r8169,--disable-r8169) > > define ETHERCAT_CREATE_CHANGELOG > touch $(@D)/ChangeLog > endef > > ETHERCAT_POST_PATCH_HOOKS += ETHERCAT_CREATE_CHANGELOG > > define ETHERCAT_BUILD_MODULES > $(MAKE) -C $(@D) $(LINUX_MAKE_FLAGS) modules > endef > > ETHERCAT_POST_BUILD_HOOKS += ETHERCAT_BUILD_MODULES > > define ETHERCAT_INSTALL_MODULES > $(MAKE) -C $(@D) $(LINUX_MAKE_FLAGS) modules_install > endef > > ETHERCAT_POST_INSTALL_TARGET_HOOKS += ETHERCAT_INSTALL_MODULES > > > ###These next two lines were a part of building the kernel module. > #ETHERCAT_DEPENDENCIES = linux > #ETHERCAT_INSTALL_MOD_DIR = ethercat > > # From here to the GENTARGETS line is part of building the kernel module. > #define ETHERCAT_BUILD_CMDS > # $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) M=$(@D) modules > #endef > # > #define ETHERCAT_INSTALL_TARGET_CMDS > # $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) M=$(@D) \ > # INSTALL_MOD_STRIP=1 \ > # INSTALL_MOD_DIR=$(ETHERCAT_INSTALL_MOD_DIR) \ > # modules_install > #endef > # > #define ETHERCAT_UNINSTALL_TARGET_CMDS > # rm -rf > $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION_PROBED)/$(ETHERCAT_INSTALL_MOD_D > IR) > #endef > > # $(eval $(call GENTARGETS,package,ethercat)) > > # This is the $eval that was used when making the application. It didn't > appear to work when used > # with the above $eval (the above one is for making the kernel module). > # $(eval $(call AUTOTARGETS,package,ethercat)) > > _______________________________________________ > buildroot mailing list > buildroot at busybox.net > http://lists.busybox.net/mailman/listinfo/buildroot > >