xref: /netbsd-src/sys/arch/arm/xscale/ixp425-fw.mk (revision 2b3d1ee8a773e028429b331332895d44f445d720)
1#	$NetBSD: ixp425-fw.mk,v 1.2 2010/03/26 15:55:33 jakllsch Exp $
2
3#
4# For IXP425 NE support, this file must be included by the board-specific
5# Makefile stub.
6#
7
8#
9# See ixp425-fw.README for instructions on how to download and generate
10# a suitable microcode image for IXP425 Ethernet support.
11#
12
13.if exists($S/arch/arm/xscale/IxNpeMicrocode.dat)
14MD_OBJS+=	ixp425_fw.o
15CPPFLAGS+=	-DIXP425_NPE_MICROCODE
16
17ixp425_fw.o:	$S/arch/arm/xscale/IxNpeMicrocode.dat
18	-rm -f ${.OBJDIR}/IxNpeMicrocode.dat
19	-ln -s $S/arch/arm/xscale/IxNpeMicrocode.dat ${.OBJDIR}
20	${OBJCOPY} -I binary -O default -B arm IxNpeMicrocode.dat ${.TARGET}
21.endif
22