aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/loader.mk
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2017-10-17 19:11:29 +0000
committerEd Maste <emaste@FreeBSD.org>2017-10-17 19:11:29 +0000
commit14481f92c4fa8b8a93883b6d4547c6bbf9505ff3 (patch)
tree5a118bee4e59fefc2557f222745ecbb58b376427 /sys/boot/loader.mk
parent1118d57b3603192dc44733ad14c896449c27c158 (diff)
downloadsrc-14481f92c4fa8b8a93883b6d4547c6bbf9505ff3.tar.gz
src-14481f92c4fa8b8a93883b6d4547c6bbf9505ff3.zip
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
Notes
Notes: svn path=/head/; revision=324703
Diffstat (limited to 'sys/boot/loader.mk')
-rw-r--r--sys/boot/loader.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/boot/loader.mk b/sys/boot/loader.mk
index 814cef256c81..a501d69a7ade 100644
--- a/sys/boot/loader.mk
+++ b/sys/boot/loader.mk
@@ -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