aboutsummaryrefslogtreecommitdiff
path: root/release/Makefile.arm
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2015-03-26 01:20:54 +0000
committerGlen Barber <gjb@FreeBSD.org>2015-03-26 01:20:54 +0000
commit993137c18aa170eebff5dbfa68ca7513f4a0eb5b (patch)
tree78f0b0e4e25e6252d80c8c31016c7e048022d149 /release/Makefile.arm
parent97c7ab34a65224a9559872d3ea66b9ccb7fddce9 (diff)
downloadsrc-993137c18aa170eebff5dbfa68ca7513f4a0eb5b.tar.gz
src-993137c18aa170eebff5dbfa68ca7513f4a0eb5b.zip
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
Notes
Notes: svn path=/projects/release-arm-redux/; revision=280649
Diffstat (limited to 'release/Makefile.arm')
-rw-r--r--release/Makefile.arm14
1 files changed, 9 insertions, 5 deletions
diff --git a/release/Makefile.arm b/release/Makefile.arm
index dd6fde16a1b5..b1c094fda1a4 100644
--- a/release/Makefile.arm
+++ b/release/Makefile.arm
@@ -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}: