source: trunk/package/ar7-net/Makefile @ 6580

Last change on this file since 6580 was 6580, checked in by nbd, 9 years ago

add a default for PKG_BUILD_DIR and PKG_INSTALL_DIR (will use KERNEL_BUILD_DIR if kernel.mk is included, BUILD_DIR otherwise)

  • Property svn:copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
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
9include $(TOPDIR)/rules.mk
10include $(INCLUDE_DIR)/kernel.mk
11
12PKG_NAME:=avalanche-cpmac
13PKG_VERSION:=0.1
14PKG_RELEASE:=1
15
16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17PKG_SOURCE_URL:=http://downloads.openwrt.org/sources
18PKG_MD5SUM:=ce46849a8f1055cef09c59c6bdb7f86a
19PKG_CAT:=bzcat
20
21include $(INCLUDE_DIR)/package.mk
22
23define KernelPackage/avalanche-cpmac
24  SUBMENU:=Network Devices
25  DEPENDS:=@LINUX_2_4_AR7 +kmod-atm
26  TITLE:=AR7 Network driver (CPMAC)
27  DESCRIPTION:=AR7 Network driver (CPMAC)
28  VERSION:=$(PKG_VERSION)+$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)
29  FILES:=$(PKG_BUILD_DIR)/avalanche_cpmac.$(LINUX_KMOD_SUFFIX)
30  AUTOLOAD:=$(call AutoLoad,30,avalanche_cpmac)
31endef
32
33define Build/Compile
34        $(MAKE) -C "$(LINUX_DIR)" \
35                CROSS_COMPILE="$(TARGET_CROSS)" \
36                ARCH="$(LINUX_KARCH)" \
37                SUBDIRS="$(PKG_BUILD_DIR)" \
38                EXTRA_CFLAGS="-DCONFIG_AVALANCHE_CPMAC_AUTO -DCONFIG_MIPS_CPMAC_INIT_BUF_MALLOC -DCONFIG_MIPS_CPMAC_PORTS=1" \
39                modules
40endef
41
42
43$(eval $(call KernelPackage,avalanche-cpmac))
Note: See TracBrowser for help on using the repository browser.