Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] ALSA for build root
@ 2007-05-25 14:49 Rod Boyce
  2007-05-25 15:13 ` Daniel Laird
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Rod Boyce @ 2007-05-25 14:49 UTC (permalink / raw)
  To: buildroot

All,

I have been adding ALSA to the build root package system I am only able 
to test on a x86 platform.  Is anybody else interested in ALSA for 
build-root?  I have also been adding libogg and libvorbis would it be OK 
if I submitted a combined patch or would you prefer 2 separate patches?  
Is anybody else working on this who would like an advanced copy to test 
out and or compare against?

This would include the following packages:
alsa-lib-1.0.14rc4
alsa-utils-1.0.14rc4
libogg-1.1.3
libvorbis-1.1.2


Regards,
Rod Boyce

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

* [Buildroot] ALSA for build root
  2007-05-25 14:49 Rod Boyce
@ 2007-05-25 15:13 ` Daniel Laird
  2007-05-25 18:56 ` Peter at busybox.net
  2007-05-26 14:45 ` Rod Boyce
  2 siblings, 0 replies; 10+ messages in thread
From: Daniel Laird @ 2007-05-25 15:13 UTC (permalink / raw)
  To: buildroot


We have added alsa for use on our projects so would like to see someone get
this into mainline buildroot

Cheers
Daniel Laird


Rod Boyce-2 wrote:
> 
> All,
> 
> I have been adding ALSA to the build root package system I am only able 
> to test on a x86 platform.  Is anybody else interested in ALSA for 
> build-root?  I have also been adding libogg and libvorbis would it be OK 
> if I submitted a combined patch or would you prefer 2 separate patches?  
> Is anybody else working on this who would like an advanced copy to test 
> out and or compare against?
> 
> This would include the following packages:
> alsa-lib-1.0.14rc4
> alsa-utils-1.0.14rc4
> libogg-1.1.3
> libvorbis-1.1.2
> 
> 
> Regards,
> Rod Boyce
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
> 
> 

-- 
View this message in context: http://www.nabble.com/ALSA-for-build-root-tf3816584.html#a10805002
Sent from the BuildRoot mailing list archive at Nabble.com.

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

* [Buildroot] ALSA for build root
  2007-05-25 14:49 Rod Boyce
  2007-05-25 15:13 ` Daniel Laird
@ 2007-05-25 18:56 ` Peter at busybox.net
  2007-05-25 19:03   ` Stuart Wood
  2007-05-26 14:45 ` Rod Boyce
  2 siblings, 1 reply; 10+ messages in thread
From: Peter at busybox.net @ 2007-05-25 18:56 UTC (permalink / raw)
  To: buildroot

>>>>> "RB" == Rod Boyce <buildroot@teamboyce.co.uk> writes:

Hi,

RB> All, I have been adding ALSA to the build root package system I am
RB> only able to test on a x86 platform.  Is anybody else interested
RB> in ALSA for build-root?

Yes, please. I can test on powerpc.

RB> I have also been adding libogg and libvorbis would it be OK if I
RB> submitted a combined patch or would you prefer 2 separate patches?
RB> Is anybody else working on this who would like an advanced copy to
RB> test out and or compare against?

Seperate patches please.

Thanks!

-- 
Bye, Peter Korsgaard

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

* [Buildroot] ALSA for build root
  2007-05-25 18:56 ` Peter at busybox.net
@ 2007-05-25 19:03   ` Stuart Wood
  0 siblings, 0 replies; 10+ messages in thread
From: Stuart Wood @ 2007-05-25 19:03 UTC (permalink / raw)
  To: buildroot

I'm doing ARM with a custom audio section that still needs a driver, but
I'll try when I'm there.


-----Original Message-----
From: buildroot-bounces@uclibc.org [mailto:buildroot-bounces at uclibc.org] On
Behalf Of Peter at busybox.net
Sent: Friday, May 25, 2007 2:57 PM
To: Rod Boyce
Cc: buildroot at uclibc.org
Subject: Re: [Buildroot] ALSA for build root


>>>>> "RB" == Rod Boyce <buildroot@teamboyce.co.uk> writes:

Hi,

RB> All, I have been adding ALSA to the build root package system I am 
RB> only able to test on a x86 platform.  Is anybody else interested in 
RB> ALSA for build-root?

Yes, please. I can test on powerpc.

RB> I have also been adding libogg and libvorbis would it be OK if I 
RB> submitted a combined patch or would you prefer 2 separate patches? 
RB> Is anybody else working on this who would like an advanced copy to 
RB> test out and or compare against?

Seperate patches please.

Thanks!

-- 
Bye, Peter Korsgaard _______________________________________________
buildroot mailing list
buildroot at uclibc.org http://busybox.net/mailman/listinfo/buildroot

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

* [Buildroot] ALSA for build root
       [not found] <KRKghF7Kp6q2.1lf2WpS3@mailout.dof.se>
@ 2007-05-26 14:35 ` Rod Boyce
  0 siblings, 0 replies; 10+ messages in thread
From: Rod Boyce @ 2007-05-26 14:35 UTC (permalink / raw)
  To: buildroot

Ulf Samuelsson wrote:
>  ________________ ?rende:	[Buildroot] ALSA for build root F?rfattare:	Rod Boyce <buildroot@teamboyce.co.uk> Datum:		2007 maj 25:e 14:50 
> All,
>
> I have been adding ALSA to the build root package system I am only able 
> to test on a x86 platform.  Is anybody else interested in ALSA for 
> build-root?  I have also been adding libogg and libvorbis would it be OK 
> if I submitted a combined patch or would you prefer 2 separate patches?  
> Is anybody else working on this who would like an advanced copy to test 
> out and or compare against?
>
> This would include the following packages:
> alsa-lib-1.0.14rc4
> alsa-utils-1.0.14rc4
> libogg-1.1.3
> libvorbis-1.1.2
>
>
> Regards,
> Rod Boyce
>
>
> I know that some guys are working on moving the 
> existing AVR32 ALSA stuff
> to buildroot.
> You might want to include
> the ALSA patches found
> at avr32linux.org
>
> Best Regards
> Ulf Samuelsson
>
>
>   
Ulf & All,

My preference would be to submit what I have so others can play and 
submit their patches after testing.
I am ready to e-mail my patch now without the AVR32 changes.

Regards,
Rod Boyce

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

* [Buildroot] ALSA for build root
  2007-05-25 14:49 Rod Boyce
  2007-05-25 15:13 ` Daniel Laird
  2007-05-25 18:56 ` Peter at busybox.net
@ 2007-05-26 14:45 ` Rod Boyce
  2007-05-29  7:03   ` Hans-Christian Egtvedt
  2 siblings, 1 reply; 10+ messages in thread
From: Rod Boyce @ 2007-05-26 14:45 UTC (permalink / raw)
  To: buildroot

Rod Boyce wrote:
> All,
>
> I have been adding ALSA to the build root package system I am only able 
> to test on a x86 platform.  Is anybody else interested in ALSA for 
> build-root?  I have also been adding libogg and libvorbis would it be OK 
> if I submitted a combined patch or would you prefer 2 separate patches?  
> Is anybody else working on this who would like an advanced copy to test 
> out and or compare against?
>
> This would include the following packages:
> alsa-lib-1.0.14rc4
> alsa-utils-1.0.14rc4
> libogg-1.1.3
> libvorbis-1.1.2
>
>
> Regards,
> Rod Boyce
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
>
>   
All,

As promised attached is a patch to add ALSA packages to build root I 
have only tested on i386 but it seems to work for me.  This patch is 
against the latest SVN repository No. 18694.  I have not tested the 
alsa-tools well and in-fact because I am not using X or GTK most will 
not compile I have disabled all the the ac3dec by default.  Also I am 
assuming the latest version of ALSA and a compatible kernel.

Regards,
Rod Boyce
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alsa.patch
Type: text/x-patch
Size: 23409 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20070526/0dee6bb5/attachment.bin 

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

* [Buildroot] ALSA for build root
  2007-05-26 14:45 ` Rod Boyce
@ 2007-05-29  7:03   ` Hans-Christian Egtvedt
  2007-05-29 20:00     ` Bernhard Fischer
  2007-05-29 20:04     ` Bernhard Fischer
  0 siblings, 2 replies; 10+ messages in thread
From: Hans-Christian Egtvedt @ 2007-05-29  7:03 UTC (permalink / raw)
  To: buildroot

On Sat, 2007-05-26 at 15:45 +0100, Rod Boyce wrote:
> Rod Boyce wrote:

<cut intro about alsa patches>

> As promised attached is a patch to add ALSA packages to build root I 
> have only tested on i386 but it seems to work for me.  This patch is 
> against the latest SVN repository No. 18694.  I have not tested the 
> alsa-tools well and in-fact because I am not using X or GTK most will 
> not compile I have disabled all the the ac3dec by default.  Also I am 
> assuming the latest version of ALSA and a compatible kernel.

I am working on the exactly same package (alsa + alsa-util) for
buildroot, so far testing on an AVR32 platform.

> diff -Nu --recursive --exclude=.svn --exclude=config --exclude=libogg
> --exclude=libvorbis ../trunk/package/alsa-lib/alsa-lib.mk
> package/alsa-lib/alsa-lib.mk
> --- ../trunk/package/alsa-lib/alsa-lib.mk       1970-01-01
> 01:00:00.000000000 +0100
> +++ package/alsa-lib/alsa-lib.mk        2007-05-26 08:17:42.849975524
> +0100
> @@ -0,0 +1,135 @@
> +#############################################################
> +#
> +# ALSA library
> +#
> +#############################################################
> +
> +ALSA-LIB_VERSION=1.0.14rc4
> +ALSA-LIB_SOURCE=alsa-lib-$(ALSA-LIB_VERSION).tar.bz2
> +ALSA-LIB_SITE=ftp://ftp.alsa-project.org/pub/lib/
> +ALSA-LIB_DIR=$(BUILD_DIR)/${shell basename
> $(ALSA-LIB_SOURCE) .tar.bz2}
> +ALSA-LIB_WORKDIR=$(BUILD_DIR)/alsa-lib-$(ALSA-LIB_VERSION)
> +ALSA-LIB_CAT:=$(BZCAT)
> +ALLNKSTRGS :=
> +
> +$(DL_DIR)/$(ALSA-LIB_SOURCE):
> +       $(WGET) -P $(DL_DIR) $(ALSA-LIB_SITE)/$(ALSA-LIB_SOURCE)
> +
> +$(ALSA-LIB_DIR)/.unpacked: $(DL_DIR)/$(ALSA-LIB_SOURCE)
> +       $(ALSA-LIB_CAT) $(DL_DIR)/$(ALSA-LIB_SOURCE) | tar -C
> $(BUILD_DIR) $(TAR_OPTIONS) -
> +       touch $(ALSA-LIB_DIR)/.unpacked
> +
> +$(ALSA-LIB_DIR)/.configured: $(ALSA-LIB_DIR)/.unpacked
> +       (cd $(ALSA-LIB_DIR); rm -rf config.cache; \
> +               $(TARGET_CONFIGURE_OPTS) \
> +               ./configure \
> +               --target=$(GNU_TARGET_NAME) \
> +               --host=$(GNU_TARGET_NAME) \
> +               --build=$(GNU_HOST_NAME) \
> +               --prefix=/usr \
> +               --exec-prefix=/usr \
> +               --sysconfdir=/etc \
> +               --libdir=/lib \

Why /lib? I prefer user libraries in /usr/lib.

AFAIK specifying --prefix=/usr should be more than enough.

> +               --datarootdir=$(STAGING_DIR)/usr/share \
> +               --datadir=/usr/share \
> +               --exec-prefix=/usr/bin \
> +               --includedir=$(STAGING_DIR)/include \
> +               --disable-docs \
> +               --with-debug=yes \

Make this optional at least, I do not need debug symbols when it is
working.

> +               $(DISABLE_NLS) \
> +       );
> +       touch $(ALSA-LIB_DIR)/.configured
> +
> +$(ALSA-LIB_WORKDIR)/src/libasound.la: $(ALSA-LIB_DIR)/.configured
> +       rm -f $@
> +       $(MAKE) CFLAGS=-g CC=$(TARGET_CC) -C $(ALSA-LIB_WORKDIR)
> +
> +$(STAGING_DIR)/lib/libasound.so.2.0.0:
> $(ALSA-LIB_WORKDIR)/src/libasound.la
> +       $(MAKE) prefix=$(STAGING_DIR) \
> +           exec_prefix=$(STAGING_DIR) \
> +           bindir=$(STAGING_DIR)/bin \
> +           sbindir=$(STAGING_DIR)/sbin \
> +           libexecdir=$(STAGING_DIR)/bin \
> +           datadir=$(STAGING_DIR)/share \
> +           sysconfdir=$(STAGING_DIR)/etc \
> +           sharedstatedir=$(STAGING_DIR)/com \
> +           localstatedir=$(STAGING_DIR)/var \
> +           libdir=$(STAGING_DIR)/lib \
> +           includedir=$(STAGING_DIR)/include \
> +           oldincludedir=$(STAGING_DIR)/include \
> +           infodir=$(STAGING_DIR)/info \
> +           mandir=$(STAGING_DIR)/man \

All these dir can easily be replaced with DESTDIR=$(STAGING_DIR).

> +           -C $(ALSA-LIB_DIR) install;
> +       @touch -c $@
> +
> +$(TARGET_DIR)/lib/libasound.so.2.0.0:
> $(STAGING_DIR)/lib/libasound.so.2.0.0
> +       @mkdir -p $(TARGET_DIR)/usr/share/alsa
> +       @mkdir -p $(TARGET_DIR)/usr/lib/alsa-lib/smixer
> +       cp -dpf $(STAGING_DIR)/lib/libasound.so* $(TARGET_DIR)/lib
> +       cp -rdpf $(STAGING_DIR)/share/alsa/*
> $(TARGET_DIR)/usr/share/alsa/
> +       cp -rdpf $(STAGING_DIR)/lib/alsa-lib/*
> $(TARGET_DIR)/usr/lib/alsa-lib/
> +       -$(STRIP) --strip-unneeded $(TARGET_DIR)/lib/libasound.so*
> +       -$(STRIP) --strip-unneeded
> $(TARGET_DIR)/usr/lib/alsa-lib/smixer/smixer-*.so
> +       @touch -c $(TARGET_DIR)/lib/libasound.so.2.0.0
> +
> +$(TARGET_DIR)/dev/dsp:
> +       @(cd $(dir $@) && ln -sf dsp0 $(notdir $@))
> +ALLNKSTRGS += $(TARGET_DIR)/dev/dsp

This is handled by mdev in busybox. And when using tmpfs on /dev this is
not even visible for the filesystem. If these symlinks are needed, I
think they should added to target/ instead.

> +$(TARGET_DIR)/dev/adsp:
> +       @(cd $(dir $@) && ln -sf adsp0 $(notdir $@))
> +ALLNKSTRGS += $(TARGET_DIR)/dev/adsp

Same as above.

> +$(TARGET_DIR)/dev/sequencer2:
> +       @(cd $(dir $@) && ln -sf music $(notdir $@))
> +ALLNKSTRGS += $(TARGET_DIR)/dev/sequencer2

Same as above.

> +$(TARGET_DIR)/dev/amidi:
> +       @(cd $(dir $@) && ln -sf amidi0 $(notdir $@))
> +ALLNKSTRGS += $(TARGET_DIR)/dev/amidi

Same as above.

> +$(TARGET_DIR)/dev/audio:
> +       @(cd $(dir $@) && ln -sf audio0 $(notdir $@))
> +ALLNKSTRGS += $(TARGET_DIR)/dev/audio

Same as above.

> +$(TARGET_DIR)/dev/midi:
> +       @(cd $(dir $@) && ln -sf midi00 $(notdir $@))
> +ALLNKSTRGS += $(TARGET_DIR)/dev/midi

Same as above.

> +$(TARGET_DIR)/dev/mixer:
> +       @(cd $(dir $@) && ln -sf mixer0 $(notdir $@))
> +ALLNKSTRGS += $(TARGET_DIR)/dev/mixer

Same as above.

> +$(TARGET_DIR)/usr/lib/libasound.la:
> $(STAGING_DIR)/lib/libasound.so.2.0.0
> +       @mkdir -p $(TARGET_DIR)/usr/include/alsa/sound
> +       @mkdir -p $(TARGET_DIR)/usr/include/sys
> +       cp -rdpf $(STAGING_DIR)/include/alsa $(TARGET_DIR)/usr/include
> +       cp -dpf $(STAGING_DIR)/include/sys/asoundlib.h
> $(TARGET_DIR)/usr/include/sys/
> +       cp -dpf $(STAGING_DIR)/lib/libasound.la $(TARGET_DIR)/usr/lib/
> +       @touch -c $(TARGET_DIR)/usr/lib/libasound.la
> +
> +alsa-lib-headers: $(TARGET_DIR)/usr/lib/libasound.la
> +
> +alsa-lib: linux26 $(TARGET_DIR)/lib/libasound.so.2.0.0 $(ALLNKSTRGS)
> +
> +alsa-lib-source: $(DL_DIR)/$(ALSA-LIB_SOURCE)
> +
> +alsa-lib-clean:
> +       @if [ -d $(ALSA-LIB_WORKDIR)/Makefile ] ; then \
> +               $(MAKE) -C $(ALSA-LIB_WORKDIR) clean ; \
> +       fi;
> +
> +alsa-lib-dirclean:
> +       rm -rf $(ALSA-LIB_DIR) $(ALSA-LIB_WORKDIR)
> +#############################################################
> +#
> +# Toplevel Makefile options
> +#
> +#############################################################
> +ifeq ($(strip $(BR2_PACKAGE_ALSA-LIB)),y)
> +TARGETS+=alsa-lib
> +endif
> +
> +ifeq ($(strip $(BR2_PACKAGE_ALSA-LIB_TARGET_HEADERS)),y)
> +TARGETS+=alsa-lib-headers
> +endif
> diff -Nu --recursive --exclude=.svn --exclude=config --exclude=libogg
> --exclude=libvorbis ../trunk/package/alsa-lib/Config.in
> package/alsa-lib/Config.in
> --- ../trunk/package/alsa-lib/Config.in 1970-01-01 01:00:00.000000000
> +0100
> +++ package/alsa-lib/Config.in  2007-05-07 18:16:23.220365544 +0100
> @@ -0,0 +1,15 @@
> +config BR2_PACKAGE_ALSA-LIB
> +       bool "alsa-lib"
> +       default n
> +       help
> +         Advanced Linux Sound Architecture
> +
> +         http://www.alsa-project.org/
> +
> +config BR2_PACKAGE_ALSA-LIB_TARGET_HEADERS
> +       bool "alsa-lib headers in target"
> +       default n
> +       depends on BR2_PACKAGE_ALSA-LIB
> +       help
> +         Put headers files in the target.
> +

<cut alsa-tools Makefile and Config.in>

> diff -Nu --recursive --exclude=.svn --exclude=config --exclude=libogg
> --exclude=libvorbis ../trunk/package/alsa-utils/alsa-utils.mk
> package/alsa-utils/alsa-utils.mk
> --- ../trunk/package/alsa-utils/alsa-utils.mk   1970-01-01
> 01:00:00.000000000 +0100
> +++ package/alsa-utils/alsa-utils.mk    2007-05-13 10:25:35.339532842
> +0100
> @@ -0,0 +1,114 @@
> +#############################################################
> +#
> +# ALSA Tools

Copy-paste (-:

> +#
> +#############################################################
> +ALSA-UTILS_VERSION=1.0.14rc4
> +ALSA-UTILS_SOURCE=alsa-utils-$(ALSA-UTILS_VERSION).tar.bz2
> +ALSA-UTILS_SITE=ftp://ftp.alsa-project.org/pub/utils/
> +ALSA-UTILS_DIR=$(BUILD_DIR)/${shell basename
> $(ALSA-UTILS_SOURCE) .tar.bz2}
> +ALSA-UTILS_WORKDIR=$(BUILD_DIR)/alsa-utils-$(ALSA-UTILS_VERSION)
> +ALSA-UTILS_CAT:=$(BZCAT)
> +
> +AU_TOOLS :=
> +AU_BIN := 
> +AU_SBIN := 
> +
> +AUTOOLS += aplay/aplay
> +AUTOOLS += aplay/arecord
> +AUTOOLS += alsaconf/alsaconf
> +AUTOOLS += alsactl/alsactl
> +AUTOOLS += alsamixer/alsamixer
> +AUTOOLS += amidi/amidi
> +AUTOOLS += amixer/amixer
> +AUTOOLS += seq/aplaymidi/arecordmidi
> +AUTOOLS += seq/aseqdump/aseqdump
> +AUTOOLS += seq/aseqnet/aseqnet
> +AUTOOLS += iecset/iecset
> +AUTOOLS += speaker-test/speaker-test
> +
> +AUBIN += aconnect
> +AUBIN += alsamixer
> +AUBIN += amidi
> +AUBIN += amixer
> +AUBIN += aplay
> +AUBIN += aplaymidi
> +AUBIN += arecord
> +AUBIN += arecordmidi
> +AUBIN += aseqdump
> +AUBIN += aseqnet
> +AUBIN += iecset
> +AUBIN += speaker-test
> +
> +AUSBIN += alsaconf
> +AUSBIN += alsactl
> +
> +
> +$(DL_DIR)/$(ALSA-UTILS_SOURCE):
> +       $(WGET) -P $(DL_DIR) $(ALSA-UTILS_SITE)/$(ALSA-UTILS_SOURCE)
> +
> +$(ALSA-UTILS_DIR)/.unpacked: $(DL_DIR)/$(ALSA-UTILS_SOURCE)
> +       $(ALSA-UTILS_CAT) $(DL_DIR)/$(ALSA-UTILS_SOURCE) | tar -C
> $(BUILD_DIR) $(TAR_OPTIONS) -
> +       touch $(ALSA-UTILS_DIR)/.unpacked
> +
> +$(ALSA-UTILS_DIR)/.configured: $(ALSA-UTILS_DIR)/.unpacked
> +       (cd $(ALSA-UTILS_DIR); rm -rf config.cache; \
> +               $(TARGET_CONFIGURE_OPTS) \
> +               ./configure \
> +               --target=$(GNU_TARGET_NAME) \
> +               --host=$(GNU_TARGET_NAME) \
> +               --build=$(GNU_HOST_NAME) \
> +               --disable-docs \
> +               --prefix=/usr \
> +               --sysconfdir=/etc \
> +        --disable-alsatest \
> +               $(DISABLE_NLS) \
> +               --exec-prefix=$(STAGING_DIR)/usr/bin \
> +               --libdir=$(STAGING_DIR)/lib \
> +               --includedir=$(STAGING_DIR)/include \
> +               --datadir=$(STAGING_DIR)/usr/share \
> +       );
> +       touch $(ALSA-UTILS_DIR)/.configured
> +
> +$(addprefix $(ALSA-UTILS_WORKDIR)/,$(AUTOOLS)):
> $(ALSA-UTILS_DIR)/.configured
> +       $(MAKE) CC=$(TARGET_CC) -C $(ALSA-UTILS_WORKDIR)
> +
> +
> +$(addprefix $(STAGING_DIR)/,$(addprefix bin/,$(AUBIN)) $(addprefix
> sbin/,$(AUSBIN))): $(addprefix $(ALSA-UTILS_WORKDIR)/,$(AUTOOLS))
> +       $(MAKE) prefix=$(STAGING_DIR) exec_prefix=$(STAGING_DIR) \
> +           bindir=$(STAGING_DIR)/bin sbindir=$(STAGING_DIR)/sbin \
> +           libexecdir=$(STAGING_DIR)/bin datadir=$(STAGING_DIR)/share
> \
> +           sysconfdir=$(STAGING_DIR)/etc sharedstatedir=
> $(STAGING_DIR)/com \
> +           localstatedir=$(STAGING_DIR)/var libdir=$(STAGING_DIR)/lib
> \
> +           includedir=$(STAGING_DIR)/include oldincludedir=
> $(STAGING_DIR)/include \
> +           infodir=$(STAGING_DIR)/info mandir=$(STAGING_DIR)/man \
> +           -C $(ALSA-UTILS_DIR) install;

Use DESTDIR=$(STAGING_DIR) instead.

> +       touch -c $@
> +
> +$(addprefix $(TARGET_DIR)/,$(addprefix usr/bin/,$(AUBIN)) $(addprefix
> usr/sbin/,$(AUSBIN))): $(addprefix $(STAGING_DIR)/,$(addprefix bin/,
> $(AUBIN)) $(addprefix sbin/,$(AUSBIN)))
> +       @mkdir -p $(TARGET_DIR)/usr/bin
> +       @mkdir -p $(TARGET_DIR)/usr/sbin
> +       cp -dpf $(filter $(STAGING_DIR)/bin/%, $^)
> $(TARGET_DIR)/usr/bin/
> +       cp -dpf $(filter $(STAGING_DIR)/sbin/%, $^)
> $(TARGET_DIR)/usr/sbin/
> +       -$(STRIP) --strip-unneeded $@ > /dev/null 2>&1
> +       touch -c $@
> +
> +
> +alsa-utils: uclibc alsa-lib $(addprefix $(TARGET_DIR)/,$(addprefix
> usr/bin/,$(AUBIN)) $(addprefix usr/sbin/,$(AUSBIN)))
> +
> +alsa-utils-clean:
> +       @if [ -d $(ALSA-UTILS_WORKDIR)/Makefile ] ; then \
> +               $(MAKE) -C $(ALSA-UTILS_WORKDIR) clean ; \
> +       fi;
> +
> +alsa-utils-dirclean:
> +       rm -rf $(ALSA-UTILS_DIR) $(ALSA-UTILS_WORKDIR)
> +
> +#############################################################
> +#
> +# Toplevel Makefile options
> +#
> +#############################################################
> +ifeq ($(strip $(BR2_PACKAGE_ALSA-UTILS)),y)
> +TARGETS+=alsa-utils
> +endif
> diff -Nu --recursive --exclude=.svn --exclude=config --exclude=libogg
> --exclude=libvorbis ../trunk/package/alsa-utils/Config.in
> package/alsa-utils/Config.in
> --- ../trunk/package/alsa-utils/Config.in       1970-01-01
> 01:00:00.000000000 +0100
> +++ package/alsa-utils/Config.in        2007-05-07 22:13:02.134609691
> +0100
> @@ -0,0 +1,8 @@
> +config BR2_PACKAGE_ALSA-UTILS
> +       bool "alsa-utils"
> +       default n
> +       help
> +         Utilities from Advanced Linux Sound Architecture
> +
> +         http://www.alsa-project.org/
> +
> diff -Nu --recursive --exclude=.svn --exclude=config --exclude=libogg
> --exclude=libvorbis ../trunk/package/Config.in package/Config.in
> --- ../trunk/package/Config.in  2007-05-25 17:08:32.583594165 +0100
> +++ package/Config.in   2007-05-25 15:22:03.475398547 +0100
> @@ -239,12 +239,15 @@
>           Support for audio libraries and applications
>  
>  if BR2_AUDIO_SUPPORT
> +source "package/alsa-lib/Config.in"
> +source "package/alsa-tools/Config.in"
> +source "package/alsa-utils/Config.in"
>  source "package/asterisk/Config.in"
>  source "package/libid3tag/Config.in"
>  source "package/libmad/Config.in"
>  source "package/libsndfile/Config.in"
>  source "package/madplay/Config.in"
>  source "package/mpg123/Config.in"
>  endif
>  
>  menuconfig BR2_GRAPHIC_SUPPORT

-- 
With kind regards,

Hans-Christian Egtvedt, siv.ing. (M.Sc.)
Applications Engineer - AVR32 System Solutions - Atmel Norway
-- 
Mvh
Hans-Christian Egtvedt

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

* [Buildroot] ALSA for build root
  2007-05-29  7:03   ` Hans-Christian Egtvedt
@ 2007-05-29 20:00     ` Bernhard Fischer
  2007-05-29 20:04     ` Bernhard Fischer
  1 sibling, 0 replies; 10+ messages in thread
From: Bernhard Fischer @ 2007-05-29 20:00 UTC (permalink / raw)
  To: buildroot

On Tue, May 29, 2007 at 09:03:12AM +0200, Hans-Christian Egtvedt wrote:
>On Sat, 2007-05-26 at 15:45 +0100, Rod Boyce wrote:
>> Rod Boyce wrote:

Rod, care t osend an updated patch taking Hans-Christian's comments
(thanks for those!) into account?

TIA,

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

* [Buildroot] ALSA for build root
  2007-05-29  7:03   ` Hans-Christian Egtvedt
  2007-05-29 20:00     ` Bernhard Fischer
@ 2007-05-29 20:04     ` Bernhard Fischer
  2007-05-29 23:01       ` Rod Boyce
  1 sibling, 1 reply; 10+ messages in thread
From: Bernhard Fischer @ 2007-05-29 20:04 UTC (permalink / raw)
  To: buildroot

On Tue, May 29, 2007 at 09:03:12AM +0200, Hans-Christian Egtvedt wrote:
>On Sat, 2007-05-26 at 15:45 +0100, Rod Boyce wrote:
>> Rod Boyce wrote:
>
><cut intro about alsa patches>
>
>> As promised attached is a patch to add ALSA packages to build root I 
>> have only tested on i386 but it seems to work for me.  This patch is 
>> against the latest SVN repository No. 18694.  I have not tested the 
>> alsa-tools well and in-fact because I am not using X or GTK most will 
>> not compile I have disabled all the the ac3dec by default.  Also I am 
>> assuming the latest version of ALSA and a compatible kernel.
>
>I am working on the exactly same package (alsa + alsa-util) for
>buildroot, so far testing on an AVR32 platform.
>
>> diff -Nu --recursive --exclude=.svn --exclude=config --exclude=libogg
>> --exclude=libvorbis ../trunk/package/alsa-lib/alsa-lib.mk
>> package/alsa-lib/alsa-lib.mk
>> --- ../trunk/package/alsa-lib/alsa-lib.mk       1970-01-01
>> 01:00:00.000000000 +0100
>> +++ package/alsa-lib/alsa-lib.mk        2007-05-26 08:17:42.849975524
>> +0100
>> @@ -0,0 +1,135 @@
>> +#############################################################
>> +#
>> +# ALSA library
>> +#
>> +#############################################################
>> +
>> +ALSA-LIB_VERSION=1.0.14rc4
>> +ALSA-LIB_SOURCE=alsa-lib-$(ALSA-LIB_VERSION).tar.bz2
>> +ALSA-LIB_SITE=ftp://ftp.alsa-project.org/pub/lib/
>> +ALSA-LIB_DIR=$(BUILD_DIR)/${shell basename
>> $(ALSA-LIB_SOURCE) .tar.bz2}

And please don't forget to strip this basename nonsense off.

thanks,

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

* [Buildroot] ALSA for build root
  2007-05-29 20:04     ` Bernhard Fischer
@ 2007-05-29 23:01       ` Rod Boyce
  0 siblings, 0 replies; 10+ messages in thread
From: Rod Boyce @ 2007-05-29 23:01 UTC (permalink / raw)
  To: buildroot

Bernhard Fischer wrote:
> On Tue, May 29, 2007 at 09:03:12AM +0200, Hans-Christian Egtvedt wrote:
>   
>> On Sat, 2007-05-26 at 15:45 +0100, Rod Boyce wrote:
>>     
>>> Rod Boyce wrote:
>>>       
>> <cut intro about alsa patches>
>>
>>     
>>> As promised attached is a patch to add ALSA packages to build root I 
>>> have only tested on i386 but it seems to work for me.  This patch is 
>>> against the latest SVN repository No. 18694.  I have not tested the 
>>> alsa-tools well and in-fact because I am not using X or GTK most will 
>>> not compile I have disabled all the the ac3dec by default.  Also I am 
>>> assuming the latest version of ALSA and a compatible kernel.
>>>       
>> I am working on the exactly same package (alsa + alsa-util) for
>> buildroot, so far testing on an AVR32 platform.
>>
>>     
>>> diff -Nu --recursive --exclude=.svn --exclude=config --exclude=libogg
>>> --exclude=libvorbis ../trunk/package/alsa-lib/alsa-lib.mk
>>> package/alsa-lib/alsa-lib.mk
>>> --- ../trunk/package/alsa-lib/alsa-lib.mk       1970-01-01
>>> 01:00:00.000000000 +0100
>>> +++ package/alsa-lib/alsa-lib.mk        2007-05-26 08:17:42.849975524
>>> +0100
>>> @@ -0,0 +1,135 @@
>>> +#############################################################
>>> +#
>>> +# ALSA library
>>> +#
>>> +#############################################################
>>> +
>>> +ALSA-LIB_VERSION=1.0.14rc4
>>> +ALSA-LIB_SOURCE=alsa-lib-$(ALSA-LIB_VERSION).tar.bz2
>>> +ALSA-LIB_SITE=ftp://ftp.alsa-project.org/pub/lib/
>>> +ALSA-LIB_DIR=$(BUILD_DIR)/${shell basename
>>> $(ALSA-LIB_SOURCE) .tar.bz2}
>>>       
>
> And please don't forget to strip this basename nonsense off.
>
> thanks,
>
>   

All,

As usually happens when sending this stuff out I did not tidy it as much 
as I would have liked.  I will be happy to make some of the changes.  
But firstly I started out using usr/lib for the libraries but noticed 
that some libraries had been flattened to just /lib so this is what I 
did for the ALSA stuff in the staging dir.

Also a comment about basename nonsense might make sense if you have been 
working with build-root for many months and know every part inside out.  
But I have been using build root at home in my spare time which consists 
of about the last 6-weekends so please explain what you mean by 
basename?  I am happy to comply with a more modern standard if I know 
what it is.  I think I might have used zlib as my starting point when I 
firstly started compiled to get the ALSA lib library integrated into 
build root.  This might explain some of the interesting coding in the patch.

Regards,
Rod Boyce

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

end of thread, other threads:[~2007-05-29 23:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <KRKghF7Kp6q2.1lf2WpS3@mailout.dof.se>
2007-05-26 14:35 ` [Buildroot] ALSA for build root Rod Boyce
2007-05-25 14:49 Rod Boyce
2007-05-25 15:13 ` Daniel Laird
2007-05-25 18:56 ` Peter at busybox.net
2007-05-25 19:03   ` Stuart Wood
2007-05-26 14:45 ` Rod Boyce
2007-05-29  7:03   ` Hans-Christian Egtvedt
2007-05-29 20:00     ` Bernhard Fischer
2007-05-29 20:04     ` Bernhard Fischer
2007-05-29 23:01       ` Rod Boyce

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