source: packages/net/et131x/Makefile @ 23266

Last change on this file since 23266 was 23266, checked in by jow, 6 years ago

[packages] replace @LINUX_2_6 with @!LINUX_2_4, fixes fallout after r23246

File size: 1.3 KB
Line 
1include $(TOPDIR)/rules.mk
2include $(INCLUDE_DIR)/kernel.mk
3
4PKG_NAME:=et131x
5ifdef CONFIG_LINUX_2_6_25
6  PKG_VERSION:=1.2.3-3
7  PKG_RELEASE:=1
8
9  PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
10  PKG_SOURCE_URL:=@SF/et131x
11  PKG_MD5SUM:=9496422c7d218f27bae1be42a04d122e
12endif
13
14include $(INCLUDE_DIR)/package.mk
15
16ifdef CONFIG_LINUX_2_6_25
17  MODULE:=$(PKG_BUILD_DIR)/et131x.$(LINUX_KMOD_SUFFIX)
18  KMOD_BUILD_DIR=$(PKG_BUILD_DIR)
19else
20  MODULE:=$(LINUX_DIR)/drivers/staging/et131x/et131x.$(LINUX_KMOD_SUFFIX)
21  KMOD_BUILD_DIR=$(LINUX_DIR)/drivers/staging/et131x
22endif
23
24define KernelPackage/et131x
25  SUBMENU:=Network Devices
26  TITLE:=Agere ET131x Gigabit Ethernet driver
27  URL:=http://sourceforge.net/projects/et131x
28  FILES:=$(MODULE)
29  KCONFIG:= \
30        CONFIG_ET131X=m \
31        CONFIG_ET131X_DEBUG=n
32  DEPENDS:=@!LINUX_2_4 @PCI_SUPPORT
33  AUTOLOAD:=$(call AutoLoad,70,et131x)
34endef
35
36define KernelPackage/et131x/description
37  This package contains the et131x kernel module.
38endef
39
40ifndef CONFIG_LINUX_2_6_25
41  define Build/Prepare
42    # nothing to do
43  endef
44  define Build/Configure
45    # nothing to do
46  endef
47endif
48
49define Build/Compile
50        $(MAKE) -C "$(LINUX_DIR)" \
51                ARCH="$(LINUX_KARCH)" \
52                CROSS_COMPILE="$(TARGET_CROSS)" \
53                SUBDIRS="$(KMOD_BUILD_DIR)" \
54                CONFIG_ET131X=m
55endef
56
57$(eval $(call KernelPackage,et131x))
58
Note: See TracBrowser for help on using the repository browser.