diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2010-02-07 08:38:41 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2010-02-07 08:38:41 +0000 |
commit | 8075c5d3d810ea53fc08a54c8fc8c5eef6f6de7b (patch) | |
tree | dde17bfffa59d3bffedcb94435070fe650c5c52c /distrib | |
parent | f42e991b3521116e747fedb997cd456ef7284386 (diff) |
build iso
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/loongson/Makefile | 4 | ||||
-rw-r--r-- | distrib/loongson/Makefile.inc | 5 | ||||
-rw-r--r-- | distrib/loongson/cdfs/Makefile | 35 |
3 files changed, 42 insertions, 2 deletions
diff --git a/distrib/loongson/Makefile b/distrib/loongson/Makefile index 5fdb250f9b7..0a0dd86e81a 100644 --- a/distrib/loongson/Makefile +++ b/distrib/loongson/Makefile @@ -1,5 +1,5 @@ -# $OpenBSD: Makefile,v 1.1 2010/01/31 21:36:01 otto Exp $ +# $OpenBSD: Makefile,v 1.2 2010/02/07 08:38:40 otto Exp $ -SUBDIR= ramdisk +SUBDIR= ramdisk cdfs .include <bsd.subdir.mk> diff --git a/distrib/loongson/Makefile.inc b/distrib/loongson/Makefile.inc new file mode 100644 index 00000000000..bf37b924cbe --- /dev/null +++ b/distrib/loongson/Makefile.inc @@ -0,0 +1,5 @@ +# $OpenBSD: Makefile.inc,v 1.1 2010/02/07 08:38:40 otto Exp $ + +REV= ${OSrev} + +.include <bsd.own.mk> diff --git a/distrib/loongson/cdfs/Makefile b/distrib/loongson/cdfs/Makefile new file mode 100644 index 00000000000..2cb008688e7 --- /dev/null +++ b/distrib/loongson/cdfs/Makefile @@ -0,0 +1,35 @@ +# $OpenBSD: Makefile,v 1.1 2010/02/07 08:38:40 otto Exp $ + +TOP= ${.CURDIR}/.. + +.include "${TOP}/Makefile.inc" + +BSDRD= bsd.rd +CDROM= cd${REV}.iso + +all: ${CDROM} + +${CDROM}: + -rm -rf ${.OBJDIR}/cd-dir + mkdir -p ${.OBJDIR}/cd-dir/${OSREV}/loongson + mkdir -p ${.OBJDIR}/cd-dir/etc + echo "set image /${OSREV}/loongson/bsd.rd" > ${.OBJDIR}/cd-dir/etc/boot.conf + cp ${.OBJDIR}/../ramdisk/${BSDRD} ${.OBJDIR}/cd-dir/${OSREV}/loongson + mkhybrid -a -R -T -L -l -d -D -N -o ${.OBJDIR}/${CDROM} -v -v \ + -A "OpenBSD ${OSREV} loongson bootonly CD" \ + -P "Copyright (c) `date +%Y` Theo de Raadt, The OpenBSD project" \ + -p "Theo de Raadt <deraadt@openbsd.org>" \ + -V "OpenBSD/loongson ${OSREV} boot CD" \ + ${.OBJDIR}/cd-dir + +.ifdef RELEASEDIR +install: + cp ${CDROM} ${RELEASEDIR} +.endif + +clean cleandir: + /bin/rm -f ${CDROM} + rm -rf cd-dir + +.include <bsd.obj.mk> +.include <bsd.subdir.mk> |