summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2006-12-07 00:49:33 +0000
committersam <sam@FreeBSD.org>2006-12-07 00:49:33 +0000
commitfee97a223b0108c506445d5d1ce4234ea9e82f10 (patch)
tree4c91f690f2e576a66a1b7412533b2dadb707d9fc /sys
parentae543684d058c95020933a38e6f021d595c6421a (diff)
downloadFreeBSD-src-fee97a223b0108c506445d5d1ce4234ea9e82f10.zip
FreeBSD-src-fee97a223b0108c506445d5d1ce4234ea9e82f10.tar.gz
Handle a missing NPE firmware file better; if it's missing print a
(somewhat) meaningful message and terminate the build. It'd be nice to print a proper URL from which to fetch the file but that seems problematic. Leave a suggested starting point in this file (TBD: add it to the man page). Submitted by: ru
Diffstat (limited to 'sys')
-rw-r--r--sys/arm/xscale/ixp425/files.ixp42515
1 files changed, 12 insertions, 3 deletions
diff --git a/sys/arm/xscale/ixp425/files.ixp425 b/sys/arm/xscale/ixp425/files.ixp425
index 9304b7c..14fb5e6 100644
--- a/sys/arm/xscale/ixp425/files.ixp425
+++ b/sys/arm/xscale/ixp425/files.ixp425
@@ -18,6 +18,10 @@ dev/uart/uart_dev_ns8250.c optional uart
#
# NPE-based Ethernet support (requires qmgr also). Note the
# firmware images must be downloaded from the Intel web site.
+# The URL seems to change frequently; try this as a starting
+# place:
+#
+# http://www.intel.com/design/network/products/npfamily/download_ixp400.htm
#
arm/xscale/ixp425/if_npe.c optional npe
arm/xscale/ixp425/ixp425_npe.c optional npe
@@ -31,10 +35,15 @@ ixp425_npe_fw.c optional npe_fw \
# get known values for reference in the _fw.c file.
#
IxNpeMicrocode.fwo optional npe_fw \
- dependency "$S/arm/xscale/ixp425/IxNpeMicrocode.dat" \
- compile-with "ln -sf $S/arm/xscale/ixp425/IxNpeMicrocode.dat ${.OBJDIR}; ${LD} -b binary -d -warn-common -r -d -o ${.TARGET} IxNpeMicrocode.dat" \
+ dependency "IxNpeMicrocode.dat" \
+ compile-with "${LD} -b binary -d -warn-common -r -d -o ${.TARGET} IxNpeMicrocode.dat" \
no-implicit-rule \
- clean "IxNpeMicrocode.dat IxNpeMicrocode.fwo"
+ clean "IxNpeMicrocode.fwo"
+IxNpeMicrocode.dat optional npe_fw \
+ dependency ".PHONY" \
+ compile-with "if [ -e $S/arm/xscale/ixp425/IxNpeMicrocode.dat ]; then ln -sf $S/arm/xscale/ixp425/IxNpeMicrocode.dat .; else echo 'WARNING, no IxNpeMicrocode.dat file; you must obtain this from the Intel web site'; false; fi" \
+ no-obj no-implicit-rule \
+ clean "IxNpeMicrocode.dat"
#
# Q-Manager support
#
OpenPOWER on IntegriCloud