diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-08-29 16:52:42 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-08-29 16:52:42 +0000 |
commit | 2a0e133fbe78990c063084ce180424695ba8375d (patch) | |
tree | 2b1be55bd2752b9b7cbb9b65aafcbaac866e2f12 /distrib/alpha/miniroot | |
parent | b98a98853c0a75a7ab83cf3855c56491e4a7c88b (diff) |
create an alpha miniroot
(miod must fix the installboot in it next)
Diffstat (limited to 'distrib/alpha/miniroot')
-rw-r--r-- | distrib/alpha/miniroot/Makefile | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/distrib/alpha/miniroot/Makefile b/distrib/alpha/miniroot/Makefile new file mode 100644 index 00000000000..d1450d6ccce --- /dev/null +++ b/distrib/alpha/miniroot/Makefile @@ -0,0 +1,64 @@ +# $OpenBSD: Makefile,v 1.1 2015/08/29 16:52:41 deraadt Exp $ + +TOP= ${.CURDIR}/.. + +.include "${TOP}/Makefile.inc" + +TARGET=miniroot${REV}.fs + +.ifndef DESTDIR +all ${TARGET}: + @echo setenv DESTDIR before making a ramdisk! + @false +.else + +all: ${TARGET} + +${TARGET}: vn_up install_files installboot showit vn_down + +vn_up: blank_filesystem + vnconfig vnd0 ${TARGET} + disklabel -w vnd0 fakeramdisk + newfs -m 0 /dev/rvnd0a + mount /dev/vnd0a /mnt + +showit: + df -ki /mnt + +vn_down: + -umount /mnt + -vnconfig -u vnd0 + +install_files: bsd.rd ofwboot + +bsd.rd: + install -c -m 555 -o root -g wheel \ + ${.OBJDIR}/../bsd.rd/bsd.rd /mnt/bsd + +ofwboot: + install -c -m 555 -o root -g wheel \ + ${DESTDIR}/usr/mdec/boot /mnt/boot + +installboot: + installboot -v vnd0 + +blank_filesystem: + dd if=/dev/zero of=${TARGET} bs=512 count=5744 + +.endif + +unconfig: + -umount -f /mnt + -vnconfig -u /dev/vnd0a + +.ifdef RELEASEDIR +install: + cp ${TARGET} ${RELEASEDIR} +.endif + +clean: + rm -f ${TARGET} + +.include <bsd.own.mk> +.include <bsd.obj.mk> +.include <bsd.subdir.mk> |