svn commit: r280649 - projects/release-arm-redux/release

Glen Barber gjb at FreeBSD.org
Thu Mar 26 01:20:55 UTC 2015


Author: gjb
Date: Thu Mar 26 01:20:54 2015
New Revision: 280649
URL: https://svnweb.freebsd.org/changeset/base/280649

Log:
  Specify .OBJDIR for consistency.
  
  Call newfs(8) and mount the md(4) device to the target
  directory.
  
  Specify DESTDIR for installworld, distribution, and
  installkernel targets.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  projects/release-arm-redux/release/Makefile.arm

Modified: projects/release-arm-redux/release/Makefile.arm
==============================================================================
--- projects/release-arm-redux/release/Makefile.arm	Thu Mar 26 01:06:29 2015	(r280648)
+++ projects/release-arm-redux/release/Makefile.arm	Thu Mar 26 01:20:54 2015	(r280649)
@@ -59,20 +59,24 @@ arm-buildkernel${BOARD:tl}:
 
 arm-installworld${BOARD:tl}: arm-mkfs${BOARD:tl}
 	@echo ${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} ${ARM_WFLAGS} \
-		installworld
+		DESTDIR=${.OBJDIR}/arm-${BOARD:tl} installworld distribution
 	touch ${.TARGET}
 
 arm-installkernel${BOARD:tl}:
 	@echo ${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} ${ARM_WFLAGS} \
-		KERNCONF=${BOARD} installkernel
+		DESTDIR=${.OBJDIR}/arm-${BOARD:tl} KERNCONF=${BOARD} \
+		installkernel
 	touch ${.TARGET}
 
 arm-mkfs${BOARD:tl}:
 .if !exists(${${BOARD:tu}MDDEV})
 	mkdir -p ${.OBJDIR}/arm-${BOARD:tl}
-	truncate -s ${ARMSIZE} ${.OBJDIR}/arm-${BOARD:tu}.raw
-	echo $$(mdconfig -f ${${BOARD:tu}MDFILE}) > \
-		${${BOARD:tu}MDDEV}
+	truncate -s ${ARMSIZE} ${.OBJDIR}/${${BOARD:tu}MDFILE}
+	echo $$(mdconfig -f ${.OBJDIR}/${${BOARD:tu}MDFILE}) > \
+		${.OBJDIR}/${${BOARD:tu}MDDEV}
+	newfs -S 4096 /dev/$$(cat ${.OBJDIR}/${${BOARD:tu}MDDEV})
+	mount /dev/$$(cat ${.OBJDIR}/${${BOARD:tu}MDDEV}) \
+		${.OBJDIR}/arm-${BOARD:tl}
 .endif
 
 build-arm-ports${BOARD:tl}:


More information about the svn-src-projects mailing list