Author: emaste
Date: Tue Oct 17 19:11:29 2017
New Revision: 324703
URL: https://svnweb.freebsd.org/changeset/base/324703

Log:
  loader.mk: clean md.o even if MD_IMAGE_SIZE not defined
  
  We don't normally provide special handling for optionally-included src
  files, but md.o depends on both md.c and the value of ${MD_IMAGE_SIZE}.
  Previously if one built with MD_IMAGE_SIZE, executed "make clean", and
  then built with a different MD_IMAGE_SIZE md.o would not be rebuilt.
  
  Reported by:  Zakary Nafziger
  Sponsored by: The FreeBSD Foundation

Modified:
  head/sys/boot/loader.mk

Modified: head/sys/boot/loader.mk
==============================================================================
--- head/sys/boot/loader.mk     Tue Oct 17 19:11:19 2017        (r324702)
+++ head/sys/boot/loader.mk     Tue Oct 17 19:11:29 2017        (r324703)
@@ -43,6 +43,8 @@ SRCS+=  bcache.c
 .if defined(MD_IMAGE_SIZE)
 CFLAGS+= -DMD_IMAGE_SIZE=${MD_IMAGE_SIZE}
 SRCS+= md.c
+.else
+CLEANFILES+=   md.o
 .endif
 
 # Machine-independant ISA PnP
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to