From: Brad M. <bmi...@xm...> - 2005-04-16 07:09:45
|
Hi I want to add alsa-lib to the buildroot since it's required for the bluetooth-alsa stuff... something is not right though. During the build it can't find wordexp.h but it's there in toolchain_build_arm/uClibc-0.9.27/include/wordexp.h Am I missing something in the configuration part of the .mk? (I'm not yet svn-savvy so I'll throw the .mk out here) Brad ############################################################# # # alsa-lib (provides alsa libraries) # ############################################################# # Copyright (C) 2001-2003 by Erik Andersen <and...@co...> # Copyright (C) 2002 by Tim Riker <Tim@Rikers.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Library General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA ALSA-LIB_SITE:=ftp://ftp.alsa-project.org/pub/lib/ ALSA-LIB_SOURCE:=alsa-lib-1.0.9rc2.tar.bz2 ALSA-LIB_DIR:=$(BUILD_DIR)/alsa-lib-1.0.9rc2 $(DL_DIR)/$(ALSA-LIB_SOURCE): $(WGET) -P $(DL_DIR) $(ALSA-LIB_SITE)/$(ALSA-LIB_SOURCE) alsa-lib-source: $(DL_DIR)/$(ALSA-LIB_SOURCE) $(ALSA-LIB_DIR)/.unpacked: $(DL_DIR)/$(ALSA-LIB_SOURCE) bzcat $(DL_DIR)/$(ALSA-LIB_SOURCE) | tar -C $(BUILD_DIR) -xf - touch $(ALSA-LIB_DIR)/.unpacked $(ALSA-LIB_DIR)/.configured: $(ALSA-LIB_DIR)/.unpacked (cd $(ALSA-LIB_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ --build=$(GNU_HOST_NAME) \ --prefix=/usr \ --exec-prefix=/usr \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --libexecdir=/usr/lib \ --sysconfdir=/etc \ --datadir=/usr/share \ --localstatedir=/tmp \ --mandir=/usr/man \ --infodir=/usr/info \ $(DISABLE_NLS) \ --disable-timesync \ ); touch $(ALSA-LIB_DIR)/.configured $(ALSA-LIB_DIR)/src/.libs: $(ALSA-LIB_DIR)/.configured $(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" prefix="$(TARGET_DIR)" -C $(ALSA-LIB_DIR) $(TARGET_DIR)/usr/lib/libasound.so.2.0.0: $(ALSA-LIB_DIR)/src/.libs cp $(ALSA-LIB_DIR)/.libs/libasound.so.2.0.0 $(TARGET_DIR)/usr/lib/libasound.so.2.0.0 alsa-lib: uclibc $(TARGET_DIR)/usr/lib/libasound.so.2.0.0 alsa-lib-clean: rm -f $(TARGET_DIR)/usr/lib/libasound.so.2.0.0 -$(MAKE) -C $(ALSA-LIB_DIR) clean alsa-lib-dirclean: rm -rf $(ALSA-LIB_DIR) |