From: Michael S. Zick <minimod@morethan.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] igh-ethercat: new package
Date: Thu, 1 Dec 2011 14:36:22 -0600 [thread overview]
Message-ID: <201112011436.25141.minimod@morethan.org> (raw)
In-Reply-To: <001401ccb062$f6768db0$0400a8c0@dspcgrnzks9p98>
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
>
>
next prev parent reply other threads:[~2011-12-01 20:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-30 22:19 [Buildroot] [pull request] Pull request for branch ethercat Thomas Petazzoni
2011-11-30 22:19 ` [Buildroot] [PATCH 1/1] igh-ethercat: new package Thomas Petazzoni
2011-12-01 8:33 ` Thomas De Schampheleire
2011-12-01 19:53 ` Jeff Krasky
2011-12-01 20:36 ` Michael S. Zick [this message]
2011-12-01 22:05 ` Jeff Krasky
-- strict thread matches above, loose matches on Subject: below --
2011-12-24 10:28 [Buildroot] [pull request] Pull request for branch for-2012.02/ethercat Thomas Petazzoni
2011-12-24 10:28 ` [Buildroot] [PATCH 1/1] igh-ethercat: new package Thomas Petazzoni
2012-01-02 13:21 ` Thomas De Schampheleire
2012-01-02 19:15 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201112011436.25141.minimod@morethan.org \
--to=minimod@morethan.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox