Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] How to create the package from software using "bootstrap" to configure?
@ 2013-12-21 13:15 Wojciech Zabolotny
  2013-12-21 13:46 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Wojciech Zabolotny @ 2013-12-21 13:15 UTC (permalink / raw)
  To: buildroot

Hi,

I want to add the avrdude (extended with the linuxspi programmer) to
the buildroot.
The sources generally seem to be autotools-package compatible, but unfortunately
it is necessary to run the "bootstrap" script, before the ./configure.

I tried to create the avrdude.mk file as:

AVRDUDE_VERSION = eabe067c4527bc2eedc5db9288ef5cf1818ec720
AVRDUDE_SITE = http://github.com/kcuzner/avrdude/tarball/$(AVRDUDE_VERSION)
AVRDUDE_LICENSE = GPLv2
AVRDUDE_INSTALL_TARGET = YES
AVRDUDE_AURORECONF = YES


define AVRDUDE_CONFIGURE_CMDS
        (cd $(@D)/avrdude; \
                ./bootstrap --prefix=$(TARGET_DIR)/usr
--parallel=$(PARALLEL_JOBS) ;\
                ./configure --prefix=$(TARGET_DIR)/usr \
        )
endef

define AVRDUDE_BUILD_CMDS
        $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/avrdude
endef

define AVRDUDE_INSTALL_TARGET_CMDS
        $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/avrdude install
endef

$(eval $(generic-package))

but it leads to compilation of binaries for my host CPU, not for the target.
What is the proper way to port such packages to  the buildroot.

-- 
Wojciech M. Zabo?otny
My GPG/PGP keys:
standard: B191 ACF0 7909 83FA 3F9B  450C 407E 3C4B 4569 D119
confidential: 2BF3 F90F 6EA8 7D35 59FD  5080 78ED 33DE 1312 D8F8

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-12-21 18:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-21 13:15 [Buildroot] How to create the package from software using "bootstrap" to configure? Wojciech Zabolotny
2013-12-21 13:46 ` Thomas Petazzoni
2013-12-21 17:54   ` Wojciech Zabolotny
2013-12-21 18:01     ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox