svn commit: r362038 - head/sys/modules/ice_ddp

Mark Johnston markj at FreeBSD.org
Thu Jun 11 00:36:36 UTC 2020


Author: markj
Date: Thu Jun 11 00:36:35 2020
New Revision: 362038
URL: https://svnweb.freebsd.org/changeset/base/362038

Log:
  Hard-code the ice_ddp firmware version.
  
  Like every other firmware image in the tree, the makefile will need to
  be updated to point to the newest import.
  
  Reviewed by:	erj, imp (previous version)
  Differential Revision:	https://reviews.freebsd.org/D25222

Modified:
  head/sys/modules/ice_ddp/Makefile

Modified: head/sys/modules/ice_ddp/Makefile
==============================================================================
--- head/sys/modules/ice_ddp/Makefile	Wed Jun 10 23:52:50 2020	(r362037)
+++ head/sys/modules/ice_ddp/Makefile	Thu Jun 11 00:36:35 2020	(r362038)
@@ -1,24 +1,6 @@
 # $FreeBSD$
 
-# Find the highest version DDP package file and build a .ko for it
-PKG_FILE != find ${SRCTOP}/sys/contrib/dev/ice -name 'ice-*.pkg' | sort -V | tail -1
+KMOD=	ice_ddp
+FIRMWS=	${SRCTOP}/sys/contrib/dev/ice/ice-1.3.9.0.pkg:ice_ddp:0x01030900
 
-.if empty(PKG_FILE)
-.error Unable to locate the DDP package binary file
-.endif
-
-.info Found ${PKG_FILE}
-
-PKG_NAME != basename ${PKG_FILE}
-PKG_VER_STR != basename -s .pkg ${PKG_NAME}
-PKG_VER_STR := ${PKG_VER_STR:S/^ice-//}
-PKG_VER_STR := ${PKG_VER_STR:S/-signed$//}
-PKG_VER_MAJ != echo ${PKG_VER_STR} | cut -d. -f1
-PKG_VER_MIN != echo ${PKG_VER_STR} | cut -d. -f2
-PKG_VER_UPD != echo ${PKG_VER_STR} | cut -d. -f3
-PKG_VER_DFT != echo ${PKG_VER_STR} | cut -d. -f4
-PKG_VERSION != printf "0x%02x%02x%02x%02x" "${PKG_VER_MAJ}" "${PKG_VER_MIN}" "${PKG_VER_UPD}" "${PKG_VER_DFT}"
-
-KMOD := ice_ddp
-FIRMWS := ${PKG_FILE}:ice_ddp:${PKG_VERSION}
 .include <bsd.kmod.mk>


More information about the svn-src-all mailing list