2007-08-27 23:10:35 +03:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id: Makefile 6501 2007-03-04 04:41:46Z pavlov $
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
|
|
|
PKG_NAME:=fonera-mp3-driver
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_BUILD_DIR := $(KERNEL_BUILD_DIR)/$(PKG_NAME)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define KernelPackage/fonera-mp3-driver
|
|
|
|
SUBMENU:=Other modules
|
2007-09-08 22:55:42 +03:00
|
|
|
DEPENDS:=@TARGET_atheros
|
2007-08-27 23:10:35 +03:00
|
|
|
TITLE:=Fonera-MP3 driver (VS1011X)
|
|
|
|
FILES:=$(PKG_BUILD_DIR)/mp3_drv.$(LINUX_KMOD_SUFFIX)
|
2007-09-10 23:59:38 +03:00
|
|
|
AUTOLOAD:=$(call AutoLoad,25,mp3_drv)
|
2007-08-27 23:10:35 +03:00
|
|
|
endef
|
|
|
|
|
2007-09-07 11:34:51 +03:00
|
|
|
define KernelPackage/fonera-mp3-driver/description
|
|
|
|
This package a kernel driver for a vs1011X attached to a fonera.
|
|
|
|
endef
|
|
|
|
|
2007-08-27 23:10:35 +03:00
|
|
|
define Build/Prepare
|
|
|
|
$(call Build/Prepare/Default)
|
2007-12-05 20:45:35 +02:00
|
|
|
$(CP) src/* $(PKG_BUILD_DIR)/
|
2007-08-27 23:10:35 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C "$(LINUX_DIR)" \
|
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
|
|
ARCH="$(LINUX_KARCH)" V="$(V)" \
|
|
|
|
SUBDIRS="$(PKG_BUILD_DIR)" \
|
|
|
|
KERNELVERSION="$(KERNEL)" \
|
|
|
|
KERNEL_SOURCES="$(LINUX_DIR)" \
|
|
|
|
KDIR="$(LINUX_DIR)"
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,fonera-mp3-driver))
|