Changeset 4811


Ignore:
Timestamp:
2006-09-23T15:24:00+02:00 (10 years ago)
Author:
nico
Message:

standardize Makefile, only use includes and optimizations on 2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/buildroot-ng/openwrt/package/alsa/Makefile

    r4801 r4811  
    1313PKG_VERSION:=1.0.11 
    1414PKG_RELEASE:=1 
    15 PKG_MD5SUM:=57534e4297cd683371402220e3753885 
    1615 
    1716PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
     17PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
    1818PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/driver/ 
    19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
     19PKG_MD5SUM:=57534e4297cd683371402220e3753885 
    2020PKG_CAT:=bzcat 
    2121 
    2222include $(INCLUDE_DIR)/package.mk 
    2323 
    24 ifeq ($(LINUX_KARCH),i386) 
    25 KERNEL_C_INCS:= -I$(LINUX_DIR)/include/asm-i386/mach-generic -I$(LINUX_DIR)/include/asm-i386/mach-default 
    26 KERNEL_C_OPTS:= -Os -mpreferred-stack-boundary=2 -march=i486 -fno-unit-at-a-time 
     24define Package/kmod-alsa 
     25  SECTION:=kernel 
     26  CATEGORY:=Kernel drivers 
     27  DEPENDS:=@USB_SUPPORT 
     28  TITLE:=Advanced Linux Sound Architecture 
     29  URL:=http://alsa-project.org/ 
     30  VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE) 
     31endef 
     32 
     33ifeq ($(KERNEL),2.4) 
     34  ifeq ($(LINUX_KARCH),i386) 
     35    KERNEL_C_INCS:= -I$(LINUX_DIR)/include/asm-i386/mach-generic -I$(LINUX_DIR)/include/asm-i386/mach-default 
     36    KERNEL_C_OPTS:= -Os -mpreferred-stack-boundary=2 -march=i486 -fno-unit-at-a-time 
     37  endif 
     38  ifeq ($(LINUX_KARCH),mips) 
     39    KERNEL_C_INCS:= -I$(LINUX_DIR)/include/asm-mips/mach-generic 
     40    KERNEL_C_OPTS:= -Os -G 0 -mno-abicalls -fno-pic -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap 
     41  endif 
    2742endif 
    28 ifeq ($(LINUX_KARCH),mips) 
    29 KERNEL_C_INCS:= -I$(LINUX_DIR)/include/asm-mips/mach-generic 
    30 KERNEL_C_OPTS:= -Os -G 0 -mno-abicalls -fno-pic -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap 
    31 endif 
    32  
    33 define Package/kmod-alsa 
    34 SECTION:=drivers 
    35 CATEGORY:=Drivers 
    36 DEPENDS:=@USB_SUPPORT 
    37 TITLE:=Advanced Linux Sound Architecture 
    38 DESCRIPTION:=Advanced Linux Sound Architecture 
    39 URL:=http://alsa-project.org/ 
    40 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE) 
    41 endef 
    4243 
    4344define Build/Configure 
     
    4546                CFLAGS="$(KERNEL_C_INCS)" \ 
    4647                ./configure \ 
    47                 --with-build=$(LINUX_DIR) \ 
    48                 --with-kernel=$(LINUX_DIR) \ 
    49                 --with-cross=$(KERNEL_CROSS) \ 
    50                 --with-redhat=no \ 
    51                 --with-suse=no \ 
    52                 --with-oss=yes \ 
    53                 --with-isapnp=no \ 
    54                 --with-sequencer=no \ 
    55                 --with-cards=usb-audio \ 
     48                        --with-build="$(LINUX_DIR)" \ 
     49                        --with-kernel="$(LINUX_DIR)" \ 
     50                        --with-cross="$(KERNEL_CROSS)" \ 
     51                        --with-redhat=no \ 
     52                        --with-suse=no \ 
     53                        --with-oss=yes \ 
     54                        --with-isapnp=no \ 
     55                        --with-sequencer=no \ 
     56                        --with-cards=usb-audio \ 
    5657        ); 
    5758endef 
Note: See TracChangeset for help on using the changeset viewer.