ar71xx: refresh 2.6.30 patches
[openwrt.git] / package / ixp4xx-microcode / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ixp4xx-microcode
11 PKG_VERSION:=2.4
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=IPL_ixp400NpeLibraryWithCrypto-2_4.zip
15 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources
16 PKG_MD5SUM:=dd5f6482e625ecb334469958bcd54b37
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/ixp4xx-microcode
21 SECTION:=net
22 CATEGORY:=Network
23 TITLE:=Microcode for the IXP4xx network engines
24 DEPENDS:=@TARGET_ixp4xx
25 endef
26
27 define Package/ixp4xx-microcode/description
28 This package contains the microcode needed to use the network engines in IXP4xx CPUs
29 endef
30
31 define Build/Prepare
32 rm -rf $(PKG_BUILD_DIR)
33 mkdir -p $(PKG_BUILD_DIR)
34 unzip -d $(PKG_BUILD_DIR)/ $(DL_DIR)/$(PKG_SOURCE)
35 mv $(PKG_BUILD_DIR)/ixp400_xscale_sw/src/npeDl/IxNpeMicrocode.c $(PKG_BUILD_DIR)/
36 rm -rf $(PKG_BUILD_DIR)/ixp400_xscale_sw
37 $(CP) ./src/* $(PKG_BUILD_DIR)/
38 endef
39
40 define Build/Compile
41 (cd $(PKG_BUILD_DIR); \
42 $(HOSTCC) -Wall -I$(STAGING_DIR_HOST)/include IxNpeMicrocode.c -o IxNpeMicrocode; \
43 ./IxNpeMicrocode -be \
44 )
45 endef
46
47 define Package/ixp4xx-microcode/install
48 $(INSTALL_DIR) $(1)/lib/firmware
49 $(INSTALL_DIR) $(1)/usr/share/doc
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/NPE-A $(1)/lib/firmware/
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/NPE-B $(1)/lib/firmware/
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/NPE-C $(1)/lib/firmware/
53 $(INSTALL_DATA) $(PKG_BUILD_DIR)/LICENSE.IPL $(1)/usr/share/doc/
54 endef
55
56 $(eval $(call BuildPackage,ixp4xx-microcode))
This page took 0.044034 seconds and 5 git commands to generate.