summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorjmcneill <jmcneill@NetBSD.org>2010-06-18 18:57:27 +0000
committerjmcneill <jmcneill@NetBSD.org>2010-06-18 18:57:27 +0000
commit192740f5f9b5f3e95b6e5418f5986dffbf7500a1 (patch)
tree40e0c662b3613c2e9f48ed5e41383c7ade1f722a /tools
parentf18dcb652c61bf3a0ffeb02407bcf3c745c1e26d (diff)
hook mkubootimage into the build
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile6
-rw-r--r--tools/mkubootimage/Makefile8
2 files changed, 13 insertions, 1 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 90dfcbd08b4..a9ca2dfe352 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.138 2010/06/04 08:34:35 jmmv Exp $
+# $NetBSD: Makefile,v 1.139 2010/06/18 18:57:27 jmcneill Exp $
.include <bsd.own.mk>
@@ -115,6 +115,10 @@ SUBDIR+= amiga-txlt
SUBDIR+= hp300-mkboot
.endif
+.if ${MACHINE} == "evbarm"
+SUBDIR+= mkubootimage
+.endif
+
check_MKTOOLS: .PHONY .NOTMAIN
.if ${MKTOOLS:Uyes} == "no"
@echo '*** WARNING: "MKTOOLS" is set to "no"; this will prevent building and'
diff --git a/tools/mkubootimage/Makefile b/tools/mkubootimage/Makefile
new file mode 100644
index 00000000000..62e360c8c24
--- /dev/null
+++ b/tools/mkubootimage/Makefile
@@ -0,0 +1,8 @@
+# $NetBSD: Makefile,v 1.1 2010/06/18 18:57:28 jmcneill Exp $
+
+HOSTPROGNAME= ${_TOOL_PREFIX}mkubootimage
+HOST_SRCDIR= usr.bin/mkubootimage
+
+HOST_CPPFLAGS+= -I${.CURDIR}
+
+.include "${.CURDIR}/../Makefile.host"