avoid eval leaks
[openwrt.git] / package / ar7-net / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id:$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=avalanche-cpmac
13 PKG_VERSION:=0.1
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources
18 PKG_MD5SUM:=ce46849a8f1055cef09c59c6bdb7f86a
19 PKG_CAT:=bzcat
20
21 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define KernelPackage/avalanche-cpmac
26 SUBMENU:=Network Devices
27 DEPENDS:=@LINUX_2_4_AR7 +kmod-atm
28 TITLE:=AR7 Network driver (CPMAC)
29 DESCRIPTION:=AR7 Network driver (CPMAC)
30 VERSION:=$(PKG_VERSION)+$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)
31 FILES:=$(PKG_BUILD_DIR)/avalanche_cpmac.$(LINUX_KMOD_SUFFIX)
32 AUTOLOAD:=$(call AutoLoad,30,avalanche_cpmac)
33 endef
34
35 define Build/Compile
36 $(MAKE) -C "$(LINUX_DIR)" \
37 CROSS_COMPILE="$(TARGET_CROSS)" \
38 ARCH="$(LINUX_KARCH)" \
39 SUBDIRS="$(PKG_BUILD_DIR)" \
40 EXTRA_CFLAGS="-DCONFIG_AVALANCHE_CPMAC_AUTO -DCONFIG_MIPS_CPMAC_INIT_BUF_MALLOC -DCONFIG_MIPS_CPMAC_PORTS=1" \
41 modules
42 endef
43
44
45 $(eval $(call KernelPackage,avalanche-cpmac))
This page took 0.037737 seconds and 5 git commands to generate.