summaryrefslogtreecommitdiff
path: root/distrib/amd64
diff options
context:
space:
mode:
authorMartin Natano <natano@cvs.openbsd.org>2016-10-19 17:21:15 +0000
committerMartin Natano <natano@cvs.openbsd.org>2016-10-19 17:21:15 +0000
commit405accb4ad566cf0e3a90c0fe7d92f16d3c516e4 (patch)
tree43489b3a0ea125d43ce44f18a2f596b19e69685a /distrib/amd64
parent7d17c2a84d24294f66d7e467e3b1fcd7e3f14b6b (diff)
Inline IMAGE, CBIN, CRUNCHCONF and XNAME.
ok deraadt
Diffstat (limited to 'distrib/amd64')
-rw-r--r--distrib/amd64/ramdiskA/Makefile.inc42
1 files changed, 19 insertions, 23 deletions
diff --git a/distrib/amd64/ramdiskA/Makefile.inc b/distrib/amd64/ramdiskA/Makefile.inc
index ea03795815e..6229c46e94b 100644
--- a/distrib/amd64/ramdiskA/Makefile.inc
+++ b/distrib/amd64/ramdiskA/Makefile.inc
@@ -1,19 +1,15 @@
-# $OpenBSD: Makefile.inc,v 1.1 2016/10/19 16:49:58 deraadt Exp $
+# $OpenBSD: Makefile.inc,v 1.2 2016/10/19 17:21:14 natano Exp $
TOP= ${.CURDIR}/..
.include "${TOP}/Makefile.inc"
-IMAGE= mr.fs
-CBIN?= instbin
-CRUNCHCONF?= ${CBIN}.conf
LISTS?= ${.CURDIR}/../common/list
UTILS?= ${.CURDIR}/../../miniroot
MOUNT_POINT= /mnt
MTREE= ${UTILS}/mtree.conf
-XNAME?= floppy
-FS?= ${XNAME}${REV}.fs
+FS?= floppy${REV}.fs
VND?= vnd0
VND_DEV= /dev/${VND}a
VND_RDEV= /dev/r${VND}a
@@ -69,9 +65,9 @@ bsd.gz: bsd.rd
strip -R .comment bsd.strip
gzip -c9n bsd.strip > bsd.gz
-bsd.rd: ${IMAGE} bsd rdsetroot
+bsd.rd: mr.fs bsd rdsetroot
cp bsd bsd.rd
- ${.OBJDIR}/rdsetroot bsd.rd ${IMAGE}
+ ${.OBJDIR}/rdsetroot bsd.rd mr.fs
bsd:
@@ -79,9 +75,9 @@ bsd:
su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && env COPTS=-Os ${MAKE}'
cp -p ${.CURDIR}/../../../sys/arch/amd64/compile/${RAMDISK}/obj/bsd bsd
-${IMAGE}: ${CBIN} rd_setup do_files rd_teardown
+mr.fs: instbin rd_setup do_files rd_teardown
-rd_setup: ${CBIN}
+rd_setup: instbin
dd if=/dev/zero of=${REALIMAGE} bs=512 count=${NBLKS}
vnconfig -v -c ${VND} ${REALIMAGE}
disklabel -w ${VND} ${DISKTYPE}
@@ -93,7 +89,7 @@ rd_teardown:
@df -i ${MOUNT_POINT}
-umount ${MOUNT_POINT}
-vnconfig -u ${VND}
- cp ${REALIMAGE} ${IMAGE}
+ cp ${REALIMAGE} mr.fs
rm ${REALIMAGE}
rdsetroot: ${TOP}/../common/elfrdsetroot.c
@@ -105,7 +101,7 @@ unconfig:
-umount -f ${MOUNT_POINT}
-vnconfig -u ${VND}
-.PRECIOUS: ${IMAGE}
+.PRECIOUS: mr.fs
.ifdef RELEASEDIR
install:
@@ -117,29 +113,29 @@ install:
.endif
.endif # RELEASEDIR
-${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
+instbin.mk instbin.cache instbin.c: instbin.conf
crunchgen -E -D ${BSDSRCDIR} -L ${DESTDIR}/usr/lib \
- -c ${CBIN}.c -e ${CBIN} -m ${CBIN}.mk ${CRUNCHCONF}
+ -c instbin.c -e instbin -m instbin.mk instbin.conf
-${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
- ${MAKE} -f ${CBIN}.mk SRCLIBDIR=${.CURDIR}/../../../lib all
- strip -R .comment ${CBIN}
+instbin: instbin.mk instbin.cache instbin.c
+ ${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all
+ strip -R .comment instbin
-${CRUNCHCONF}: ${LISTS}
- awk -f ${UTILS}/makeconf.awk CBIN=${CBIN} ${LISTS} > ${CRUNCHCONF}
+instbin.conf: ${LISTS}
+ awk -f ${UTILS}/makeconf.awk CBIN=instbin ${LISTS} > instbin.conf
do_files:
mtree -def ${MTREE} -p ${MOUNT_POINT}/ -u
TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
REV=${REV} TARGDIR=${MOUNT_POINT} UTILS=${UTILS} \
RELEASEDIR=${RELEASEDIR} sh ${UTILS}/runlist.sh ${LISTS}
- rm ${MOUNT_POINT}/${CBIN}
+ rm ${MOUNT_POINT}/instbin
clean cleandir:
- /bin/rm -f *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}*.cache \
+ /bin/rm -f *.core mr.fs instbin instbin.mk instbin*.cache \
*.o *.lo *.c bsd bsd.rd bsd.gz bsd.strip floppy*.fs \
- lib*.a lib*.olist ${CBIN}.map \
- rdsetroot boot ${CRUNCHCONF} ${FS}
+ lib*.a lib*.olist instbin.map \
+ rdsetroot boot instbin.conf ${FS}
.include <bsd.obj.mk>
.include <bsd.subdir.mk>