Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Dec 2017 17:15:13 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r326431 - stable/11/sys/boot/common
Message-ID:  <201712011715.vB1HFDSf061517@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Fri Dec  1 17:15:13 2017
New Revision: 326431
URL: https://svnweb.freebsd.org/changeset/base/326431

Log:
  MFC r324703: 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:
  stable/11/sys/boot/common/Makefile.inc
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/boot/common/Makefile.inc
==============================================================================
--- stable/11/sys/boot/common/Makefile.inc	Fri Dec  1 11:32:05 2017	(r326430)
+++ stable/11/sys/boot/common/Makefile.inc	Fri Dec  1 17:15:13 2017	(r326431)
@@ -50,6 +50,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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712011715.vB1HFDSf061517>