summaryrefslogtreecommitdiff
path: root/package/ixp4xx-microcode/Makefile
blob: 782b6d7470da4810d4dfd0217efc7ee703802946 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${ADK_TOPDIR}/rules.mk

PKG_NAME:=		ixp4xx-microcode
PKG_VERSION:=		2.4
PKG_RELEASE:=		1
PKG_HASH:=		1b1170d0657847248589d946048c0aeaa9cd671966fc5bec5933283309485eaa
PKG_DESCR:=		firmware for ixp4xx ethernet controller
PKG_SECTION:=		sys/firmware
PKG_SITES:=		http://distfiles.openadk.org/

PKG_SYSTEM_DEPENDS:=    linksys-nslu2

DISTFILES:=		IPL_ixp400NpeLibraryWithCrypto-2_4.zip
WRKDIST=		${WRKDIR}/ixp400_xscale_sw

include ${ADK_TOPDIR}/mk/package.mk

$(eval $(call PKG_template,IXP4XX_MICROCODE,ixp4xx-microcode,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIG_STYLE:=          manual
BUILD_STYLE:=           manual
INSTALL_STYLE:=         manual

do-build:
	$(CP) $(WRKSRC)/src/npeDl/IxNpeMicrocode.c $(WRKBUILD)
	(cd $(WRKBUILD); \
		$(HOST_CC) IxNpeMicrocode.c -o IxNpeMicrocode; \
		./IxNpeMicrocode -be; \
	);
	
do-install:
	$(INSTALL_DIR) $(IDIR_IXP4XX_MICROCODE)/lib/firmware
	$(INSTALL_BIN) $(WRKBUILD)/NPE-* \
		$(IDIR_IXP4XX_MICROCODE)/lib/firmware

include ${ADK_TOPDIR}/mk/pkg-bottom.mk