Message ID | 069B5A25F9844945B625ADE7258AC94C061FF823@4rf-nz-orion.local.4rf.com |
---|---|
State | Superseded |
Headers | show |
Dear Reuben Dowle,
On Wed, 6 Mar 2013 20:05:49 +0000, Reuben Dowle wrote:
> In your patch, you should probably replace the place-holder "...some environment variables..." with setting some actual environment variables.
Yes, indeed, but John was saying that the build of his package doesn't
even start, which I understood as "I run make", but nothing happens.
Oh, John, remember to do a 'make dhcpcd-dirclean' every time you want
to retry the build of your package. Once a package has been built in
output/build/<somepkg>-<someversion>/, Buildroot doesn't rebuild it.
Best regards,
Thomas
On Wed, 2013-03-06 at 21:08 +0100, Thomas Petazzoni wrote: > Dear Reuben Dowle, > > On Wed, 6 Mar 2013 20:05:49 +0000, Reuben Dowle wrote: > > > In your patch, you should probably replace the place-holder "...some environment variables..." with setting some actual environment variables. > > Yes, indeed, but John was saying that the build of his package doesn't > even start, which I understood as "I run make", but nothing happens. > > Oh, John, remember to do a 'make dhcpcd-dirclean' every time you want > to retry the build of your package. Once a package has been built in > output/build/<somepkg>-<someversion>/, Buildroot doesn't rebuild it. > > Best regards, > > Thomas Yes, the place holder is bad, so I took it out. I ran: make dhcpcd-dirclean My buildroot-2011.11/.config holds BR2_PACKAGE_DHCPCD=y BR2_INET_IPV6=y BR2_TOOLCHAIN_BUILDROOT_INET_IPV6=y I cleaned up using: rm -rf \ ./dl/dhcpcd-3.2.3.tar.bz2 \ ./output/build/dhcpcd-3.2.3 \ ./output/build/buildroot-config/br2/package/dhcpcd.h \ ./output/target/etc/init.d/dhcpcd.sh \ ./output/target/usr/bin/dhcpcd But make still does not do anything for dhcpcd.
Dear John Stile, On Wed, 06 Mar 2013 12:41:20 -0800, John Stile wrote: > Yes, the place holder is bad, so I took it out. > I ran: make dhcpcd-dirclean > > My buildroot-2011.11/.config holds > BR2_PACKAGE_DHCPCD=y > BR2_INET_IPV6=y > BR2_TOOLCHAIN_BUILDROOT_INET_IPV6=y > > I cleaned up using: > rm -rf \ > ./dl/dhcpcd-3.2.3.tar.bz2 \ > ./output/build/dhcpcd-3.2.3 \ > ./output/build/buildroot-config/br2/package/dhcpcd.h \ > ./output/target/etc/init.d/dhcpcd.sh \ > ./output/target/usr/bin/dhcpcd > > But make still does not do anything for dhcpcd. If you have dl/dhcpcd-3.2.3.tar.bz2 in your dl/ directory, then it means that the package build process was started. Can you do: make dhcpcd-dirclean make 2>&1 | tee logfile Put the contents of logfile on http://code.bulix.org, and post the URL? Thanks, Thomas
Hello Thomas, On Wed, 2013-03-06 at 21:54 +0100, Thomas Petazzoni wrote: > Dear John Stile, > > On Wed, 06 Mar 2013 12:41:20 -0800, John Stile wrote: > > > Yes, the place holder is bad, so I took it out. > > I ran: make dhcpcd-dirclean > > > > My buildroot-2011.11/.config holds > > BR2_PACKAGE_DHCPCD=y > > BR2_INET_IPV6=y > > BR2_TOOLCHAIN_BUILDROOT_INET_IPV6=y > > > > I cleaned up using: > > rm -rf \ > > ./dl/dhcpcd-3.2.3.tar.bz2 \ > > ./output/build/dhcpcd-3.2.3 \ > > ./output/build/buildroot-config/br2/package/dhcpcd.h \ > > ./output/target/etc/init.d/dhcpcd.sh \ > > ./output/target/usr/bin/dhcpcd > > > > But make still does not do anything for dhcpcd. > > If you have dl/dhcpcd-3.2.3.tar.bz2 in your dl/ directory, then it > means that the package build process was started. > > Can you do: > > make dhcpcd-dirclean > make 2>&1 | tee logfile > > Put the contents of logfile on http://code.bulix.org, and post the URL? > > Thanks, > > Thomas http://code.bulix.org/j63bd0-83103
Dear John Stile, On Wed, 06 Mar 2013 13:02:36 -0800, John Stile wrote: > > Put the contents of logfile on http://code.bulix.org, and post the URL? > > > > Thanks, > > http://code.bulix.org/j63bd0-83103 Nothing besides that? Really weird, it all works fine from here. I'm out of ideas for now, sorry. But again, if the dhcpcd tarball was downloaded to dl/, then for sure at least at some point your package .mk file got used. Best regards, Thomas
Dear Thomas Petazzoni, On Wed, 2013-03-06 at 22:14 +0100, Thomas Petazzoni wrote: > Dear John Stile, > > On Wed, 06 Mar 2013 13:02:36 -0800, John Stile wrote: > > > > Put the contents of logfile on http://code.bulix.org, and post the URL? > > > > > > Thanks, > > > > http://code.bulix.org/j63bd0-83103 > > Nothing besides that? Really weird, it all works fine from here. I'm > out of ideas for now, sorry. But again, if the dhcpcd tarball was > downloaded to dl/, then for sure at least at some point your > package .mk file got used. > > Best regards, > > Thomas The version that was downloaded was from the make file that you said wasn't very good, so I tried to make a new makefile but it just doesn't work. Could it be a problem that I am using buildroot-2011.11? My project can't really upgrade right now, but I wonder if that could be the cause.
Dear John Stile, On Wed, 06 Mar 2013 13:20:28 -0800, John Stile wrote: > The version that was downloaded was from the make file that you said > wasn't very good, so I tried to make a new makefile but it just doesn't > work. > > Could it be a problem that I am using buildroot-2011.11? > My project can't really upgrade right now, but I wonder if that could be > the cause. Aaaah, you're using 2011.11! So, yes indeed that explains it all. Change the last line from: $(eval $(generic-package)) to: $(eval $(call GENTARGETS)) Best regards, Thomas
--- a/buildroot-2011.11/package/Config.in 2013-03-06 11:40:52.000000000 -0800 +++ b/buildroot-2011.11/package/Config.in 2013-02-28 14:59:32.000000000 -0800 @@ -409,6 +409,7 @@ if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS source "package/dhcp/Config.in" endif source "package/dhcpdump/Config.in" +source "package/dhcpcd/Config.in" source "package/dnsmasq/Config.in" source "package/dropbear/Config.in" source "package/ebtables/Config.in" --- a/buildroot-2011.11/package/dhcpcd/Config.in 2013-03-06 11:44:03.000000000 -0800 +++ b/buildroot-2011.11/package/dhcpcd/Config.in 2013-03-06 07:55:53.000000000 -0800 @@ -0,0 +1,5 @@ +config BR2_PACKAGE_DHCPCD + bool "dhcpcd" + depends on BR2_INET_IPV6 + help + an RFC2131 compliant DHCP client --- a/buildroot-2011.11/package/dhcpcd/dhcpcd.mk 2013-03-06 11:44:03.000000000 -0800 +++ b/buildroot-2011.11/package/dhcpcd/dhcpcd.mk 2013-03-06 11:38:17.000000000 -0800 @@ -0,0 +1,43 @@ +############################################################# +# +# dhcpcd +# +############################################################# + +DHCPCD_VERSION = 5.6.7 +DHCPCD_SOURCE = dhcpcd-$(DHCPCD_VERSION).tar.bz2 +DHCPCD_SITE = http://roy.marples.name/downloads/dhcpcd/ +DHCPCD_LICENSE = BSD-2c +DHCPCD_INSTALL_STAGING = NO + +CONFIG_ARGS = $(BR2_GCC_TARGET_ARCH) + +ifeq ($(BR2_USE_MMU),n) + CONFIG_ARGS =: --disable-fork +endif + +define DHCPD_CONFIGURE_CMDS + (cd $(@D); + ...some environment variables... + ./configure \ + $(CONFIG_ARGS) ) +endef + +define DHCPCD_BUILD_CMDS + $(MAKE) -C $(@D) all +endef + +define DHCPCD_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/dhcpcd $(TARGET_DIR)/usr/bin/dhcpcd + $(INSTALL) -D -m 0644 $(@D)/dhcpcd.conf $(TARGET_DIR)/etc/dhcpcd.conf +endef + +define DHCPCD_DEVICES + #/dev/foo c 666 0 0 42 0 - - - +endef + +define DHCPCD_PERMISSIONS + /usr/bin/dhcpcd f 4755 0 0 - - - - - +endef + +$(eval $(generic-package))