Pull request for branch libaio-conversion
The following changes since commit 6cdcc4d7d8134f4b60f0eb9039090f9ad4c38366:
Peter Korsgaard (1):
gcc: hide shared libgcc option if BR2_PREFER_STATIC_LIB is enabled
are available in the git repository at:
git://git.busybox.net/~tpetazzoni/git/buildroot libaio-conversion
Thomas Petazzoni (1):
libaio: convert to the GENTARGETS infrastructure
package/libaio/libaio.mk | 52 +++++++++++---------------------------------- 1 files changed, 13 insertions(+), 39 deletions(-)
Thanks,
Signature · 1 line
Thomas Petazzoni
PATCH 1/1 libaio: convert to the GENTARGETS infrastructure
--- package/libaio/libaio.mk | 52 +++++++++++---------------------------------- 1 files changed, 13 insertions(+), 39 deletions(-)
package/libaio/libaio.mk +13 -39
@@ -3,48 +3,22 @@ # libaio # ############################################################# -LIBAIO_VERSION=0.3.106-avr32 +LIBAIO_VERSION=0.3.109 LIBAIO_SOURCE=libaio-$(LIBAIO_VERSION).tar.bz2 -LIBAIO_SITE=http://avr32linux.org/twiki/pub/Main/LibAio/ -LIBAIO_DIR=$(BUILD_DIR)/libaio-$(LIBAIO_VERSION) -LIBAIO_SOVER=1.0.1 +LIBAIO_SITE=ftp://ftp.kernel.org/pub/linux/libs/aio/ +LIBAIO_INSTALL_STAGING=YES -LIBAIO_ARCH:=$(ARCH) -LIBAIO_MAKEOPTS:= $(TARGET_CONFIGURE_OPTS) CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS) -nostdlib -nostartfiles -I. -fPIC" LDFLAGS="$(TARGET_LDFLAGS)" +define LIBAIO_BUILD_CMDS + $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) +endef -$(DL_DIR)/$(LIBAIO_SOURCE): - $(call DOWNLOAD,$(LIBAIO_SITE),$(LIBAIO_SOURCE)) +define LIBAIO_INSTALL_STAGING_CMDS + $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install +endef -$(LIBAIO_DIR)/.unpacked: $(DL_DIR)/$(LIBAIO_SOURCE) - $(BZCAT) $(DL_DIR)/$(LIBAIO_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - - toolchain/patch-kernel.sh $(LIBAIO_DIR) package/libaio libaio\*.patch - touch $@ +define LIBAIO_INSTALL_TARGET_CMDS + $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install +endef -$(LIBAIO_DIR)/src/libaio.so.$(LIBAIO_SOVER): $(LIBAIO_DIR)/.unpacked - $(MAKE) -C $(LIBAIO_DIR) $(LIBAIO_MAKEOPTS) +$(eval $(call GENTARGETS,package,libaio)) -$(STAGING_DIR)/usr/lib/libaio.so: $(LIBAIO_DIR)/src/libaio.so.$(LIBAIO_SOVER) - $(MAKE) -C $(LIBAIO_DIR) $(LIBAIO_MAKEOPTS) prefix=$(STAGING_DIR)/usr install - -$(TARGET_DIR)/usr/lib/libaio.so: $(STAGING_DIR)/usr/lib/libaio.so - cp -dpf $(STAGING_DIR)/usr/lib/libaio.so* $(TARGET_DIR)/usr/lib/ - -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libaio.so - -libaio: $(TARGET_DIR)/usr/lib/libaio.so - -libaio-source: $(DL_DIR)/$(LIBAIO_SOURCE) - -libaio-clean: - -$(MAKE) -C $(LIBAIO_DIR) $(LIBAIO_MAKEOPTS) clean - -libaio-dirclean: - rm -rf $(LIBAIO_DIR) - -############################################################# -# -# Toplevel Makefile options -# -############################################################# -ifeq ($(BR2_PACKAGE_LIBAIO),y) -TARGETS+=libaio -endif
Signature · 1 line
1.6.3.3
PATCH 1/1 libaio: convert to the GENTARGETS infrastructure
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Thomas> Signed-off-by: Thomas Petazzoni <[email protected]> Thomas> ---
Thomas> package/libaio/libaio.mk | 52 +++++++++++----------------------------------
Thomas> 1 files changed, 13 insertions(+), 39 deletions(-)
Thomas> diff --git a/package/libaio/libaio.mk b/package/libaio/libaio.mk Thomas> index f1bb603..58cdf6c 100644
Thomas> --- a/package/libaio/libaio.mk
Thomas> +++ b/package/libaio/libaio.mk
Thomas> @@ -3,48 +3,22 @@
Thomas> # libaio Thomas> # Thomas> #############################################################
Thomas> -LIBAIO_VERSION=0.3.106-avr32
Thomas> +LIBAIO_VERSION=0.3.109
Thomas> LIBAIO_SOURCE=libaio-$(LIBAIO_VERSION).tar.bz2 Thomas> -LIBAIO_SITE=http://avr32linux.org/twiki/pub/Main/LibAio/ Thomas> -LIBAIO_DIR=$(BUILD_DIR)/libaio-$(LIBAIO_VERSION) Thomas> -LIBAIO_SOVER=1.0.1
Thomas> +LIBAIO_SITE=ftp://ftp.kernel.org/pub/linux/libs/aio/
We have BR2_KERNEL_MIRROR, might be good to use.
Thomas> +define LIBAIO_INSTALL_STAGING_CMDS
Thomas> + $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install Thomas> +endef
Are you missing a patch? I don't see any DESTDIR handling in the libaio build system, and I get:
make[1]: Entering directory /tmp/br/build/libaio-0.3.109' make[2]: Entering directory /tmp/br/build/libaio-0.3.109/src' install -D -m 644 libaio.h /usr/include/libaio.h
install: cannot create regular file `/usr/include/libaio.h': Permission denied make[2]: *** [install] Error 1
make[2]: Leaving directory `/tmp/br/build/libaio-0.3.109/src' make[1]: *** [install] Error 2
make[1]: Leaving directory `/tmp/br/build/libaio-0.3.109'
make: *** [/tmp/br/build/libaio-0.3.109/.stamp_staging_installed] Error 2
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 libaio: convert to the GENTARGETS infrastructure
Quoted 1 line · On Mon, 05 Apr 2010 23:44:39 +0200 Peter Korsgaard <[email protected]> wrote:
We have
BR2_KERNEL_MIRROR, might be good to use.
Right.
Quoted 2 lines
Are you missing a patch? I don't see any DESTDIR handling in the libaio build system, and I get:
Damn, forgot to git add the two patches I borrowed from OpenEmbedded.
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com