summaryrefslogtreecommitdiff
path: root/distrib/socppc
diff options
context:
space:
mode:
Diffstat (limited to 'distrib/socppc')
-rw-r--r--distrib/socppc/Makefile8
-rw-r--r--distrib/socppc/ramdisk/Makefile85
-rw-r--r--distrib/socppc/ramdisk/install.md104
-rw-r--r--distrib/socppc/ramdisk/list114
4 files changed, 0 insertions, 311 deletions
diff --git a/distrib/socppc/Makefile b/distrib/socppc/Makefile
deleted file mode 100644
index ba1e6b62b19..00000000000
--- a/distrib/socppc/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# $OpenBSD: Makefile,v 1.3 2019/04/30 17:46:05 deraadt Exp $
-
-SUBDIR= ramdisk
-
-unconfig:
- cd ramdisk; ${MAKE} unconfig
-
-.include <bsd.subdir.mk>
diff --git a/distrib/socppc/ramdisk/Makefile b/distrib/socppc/ramdisk/Makefile
deleted file mode 100644
index cde86e5dd83..00000000000
--- a/distrib/socppc/ramdisk/Makefile
+++ /dev/null
@@ -1,85 +0,0 @@
-# $OpenBSD: Makefile,v 1.27 2019/05/03 20:03:59 deraadt Exp $
-
-FS= miniroot${OSrev}.fs
-FSSIZE= 8064
-FSDISKTYPE= miniroot
-MOUNT_POINT= /mnt
-MTREE= ${UTILS}/mtree.conf
-RAMDISK= RAMDISK
-
-LISTS= ${.CURDIR}/list
-UTILS= ${.CURDIR}/../../miniroot
-
-MRDISKTYPE= rdroot
-MRMAKEFSARGS= -o disklabel=${MRDISKTYPE},minfree=0,density=4096
-
-all: ${FS} bsd.bin
-
-${FS}: bsd.gz
- dd if=/dev/zero of=${FS} bs=512 count=${FSSIZE}
- vnconfig -v -t ${FSDISKTYPE} ${FS} > vnd
- fdisk -i -y `cat vnd`
- disklabel -w `cat vnd` ${FSDISKTYPE}
- newfs -m 0 -o space -i 524288 -c ${FSSIZE} /dev/r`cat vnd`a
- mount /dev/`cat vnd`a ${MOUNT_POINT}
- dd if=${DESTDIR}/usr/mdec/boot.elf of=/dev/r`cat vnd`i conv=osync
- install -c -m 555 -o root -g wheel bsd.gz ${MOUNT_POINT}/bsd
- ln ${MOUNT_POINT}/bsd ${MOUNT_POINT}/bsd.rd
- df -i ${MOUNT_POINT}
- umount ${MOUNT_POINT}
- vnconfig -u `cat vnd`
- rm -f vnd
-
-bsd.bin: bsd.rd
- objcopy -O binary bsd.rd bsd.bin
-
-bsd.gz: bsd.rd
- gzip -9cn bsd.rd > bsd.gz
-
-bsd.rd: mr.fs bsd
- cp bsd bsd.rd
- rdsetroot bsd.rd mr.fs
-
-bsd:
- cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \
- su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}'
- cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd
-
-mr.fs: instbin
- rm -rf $@.d
- install -d -o root -g wheel $@.d
- mtree -def ${MTREE} -p $@.d -u
- CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} OSrev=${OSrev} \
- TARGDIR=$@.d UTILS=${UTILS} RELEASEDIR=${RELEASEDIR} \
- sh ${UTILS}/runlist.sh ${LISTS}
- rm $@.d/instbin
- makefs ${MRMAKEFSARGS} $@ $@.d
-
-instbin.mk instbin.cache instbin.c: instbin.conf
- crunchgen -E -D ${.CURDIR}/../../.. -L ${DESTDIR}/usr/lib \
- -c instbin.c -e instbin -m instbin.mk instbin.conf
-
-instbin: instbin.mk instbin.cache instbin.c
- ${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all
-
-instbin.conf: ${LISTS}
- awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf
-
-unconfig:
- -umount -f ${MOUNT_POINT}
- -[ -f vnd ] && vnconfig -u `cat vnd` && rm -f vnd
-
-.ifdef RELEASEDIR
-install:
- cp bsd.rd ${RELEASEDIR}/bsd.rd
- chmod a+r ${RELEASEDIR}/bsd.rd
- cp ${FS} ${RELEASEDIR}
- cp bsd.bin ${RELEASEDIR}
-.endif
-
-clean cleandir:
- rm -f *.core mr.fs instbin instbin.mk instbin.cache \
- lib*.a lib*.olist instbin.map *.o *.lo *.c bsd bsd.rd cd${OSrev}.iso
- rm -rf cd-dir mr.fs.d
-
-.include <bsd.obj.mk>
diff --git a/distrib/socppc/ramdisk/install.md b/distrib/socppc/ramdisk/install.md
deleted file mode 100644
index 442684a13fc..00000000000
--- a/distrib/socppc/ramdisk/install.md
+++ /dev/null
@@ -1,104 +0,0 @@
-# $OpenBSD: install.md,v 1.30 2017/01/22 23:43:54 rpe Exp $
-#
-# Copyright (c) 1996 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Jason R. Thorpe.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
-# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-#
-# machine dependent section of installation/upgrade script.
-#
-
-md_installboot() {
- local _disk=$1
- if dd if=/mnt/usr/mdec/boot.elf of=/dev/${_disk}i; then
- return
- fi
-
- echo "Failed to install bootblocks."
- echo "You will not be able to boot OpenBSD from $_disk."
- exit
-}
-
-md_prep_fdisk() {
- local _disk=$1 _q _d
-
- while :; do
- _d=whole
- if disk_has $_disk mbr; then
- fdisk $_disk
- if disk_has $_disk mbr openbsd; then
- _q=", use the (O)penBSD area"
- _d=OpenBSD
- fi
- else
- echo "MBR has invalid signature; not showing it."
- fi
- ask "Use (W)hole disk$_q or (E)dit the MBR?" "$_d"
- case $resp in
- [wW]*)
- echo -n "Setting OpenBSD MBR partition to whole $_disk..."
- fdisk -iy $_disk >/dev/null
- echo "done."
- return ;;
- [eE]*)
- # Manually configure the MBR.
- cat <<__EOT
-
-You will now create a single MBR partition to contain your OpenBSD data. This
-partition must have an id of 'A6'; must *NOT* overlap other partitions; and
-must be marked as the only active partition. Inside the fdisk command, the
-'manual' command describes all the fdisk commands in detail.
-
-$(fdisk ${_disk})
-__EOT
- fdisk -e ${_disk}
- disk_has $_disk mbr openbsd && return
- echo No OpenBSD partition in MBR, try again. ;;
- [oO]*)
- [[ $_d == OpenBSD ]] || continue
- return ;;
- esac
- done
-}
-
-md_prep_disklabel() {
- local _disk=$1 _f=/tmp/i/fstab.$1
-
- md_prep_fdisk $_disk
-
- disklabel_autolayout $_disk $_f || return
- [[ -s $_f ]] && return
-
- # Edit disklabel manually.
- # Abandon all hope, ye who enter here.
- disklabel -F $_f -E $_disk
-}
-
-md_congrats() {
-}
-
-md_consoleinfo() {
-}
diff --git a/distrib/socppc/ramdisk/list b/distrib/socppc/ramdisk/list
deleted file mode 100644
index 6cbbc362b06..00000000000
--- a/distrib/socppc/ramdisk/list
+++ /dev/null
@@ -1,114 +0,0 @@
-# $OpenBSD: list,v 1.38 2019/04/29 01:48:41 deraadt Exp $
-
-SRCDIRS distrib/special
-
-# copy the crunched binary, link to it, and kill it
-COPY ${OBJDIR}/instbin instbin
-LINK instbin bin/arch
-LINK instbin bin/cat
-LINK instbin bin/chmod bin/chgrp sbin/chown
-LINK instbin bin/cp
-LINK instbin bin/date
-LINK instbin bin/dd
-LINK instbin bin/df
-LINK instbin bin/ed
-LINK instbin bin/hostname
-LINK instbin bin/ksh bin/sh
-ARGVLINK ksh -sh
-LINK instbin bin/ln
-LINK instbin bin/ls
-LINK instbin bin/md5 bin/sha256 bin/sha512
-SPECIAL rm bin/md5
-LINK instbin bin/mkdir
-LINK instbin bin/mt bin/eject
-LINK instbin bin/mv
-LINK instbin bin/pax bin/tar
-LINK instbin bin/rm
-LINK instbin bin/sleep
-LINK instbin bin/stty
-LINK instbin bin/sync
-LINK instbin sbin/dhclient
-LINK instbin sbin/disklabel
-LINK instbin sbin/dmesg
-LINK instbin sbin/fdisk
-LINK instbin sbin/fsck
-LINK instbin sbin/fsck_ffs
-LINK instbin sbin/growfs
-LINK instbin sbin/ifconfig
-LINK instbin sbin/init
-LINK instbin sbin/mknod
-LINK instbin sbin/mount
-LINK instbin sbin/mount_cd9660
-LINK instbin sbin/mount_ffs
-LINK instbin sbin/mount_msdos
-LINK instbin sbin/mount_nfs
-LINK instbin sbin/mount_udf
-LINK instbin sbin/newfs
-LINK instbin sbin/newfs_msdos
-LINK instbin sbin/ping sbin/ping6
-LINK instbin sbin/reboot sbin/halt
-LINK instbin sbin/route
-LINK instbin sbin/slaacd
-LINK instbin sbin/sysctl
-LINK instbin sbin/umount
-LINK instbin usr/bin/doas
-LINK instbin usr/bin/encrypt
-LINK instbin usr/bin/ftp
-LINK instbin usr/bin/grep usr/bin/egrep usr/bin/fgrep
-LINK instbin usr/bin/gzip usr/bin/gunzip usr/bin/gzcat
-LINK instbin usr/bin/more usr/bin/less
-LINK instbin usr/bin/sed
-LINK instbin usr/bin/signify
-LINK instbin usr/sbin/chroot
-LINK instbin usr/sbin/pwd_mkdb
-
-# copy the MAKEDEV script and make some devices
-SCRIPT ${DESTDIR}/dev/MAKEDEV dev/MAKEDEV
-SPECIAL cd dev; sh MAKEDEV ramdisk
-
-# for fdisk(8)
-COPY ${DESTDIR}/usr/mdec/mbr usr/mdec/mbr
-
-# various files that we need in /etc for the install
-COPY ${CURDIR}/../../miniroot/group etc/group
-COPY ${CURDIR}/../../miniroot/master.passwd etc/master.passwd
-SPECIAL pwd_mkdb -p -d etc master.passwd; rm etc/master.passwd
-COPY ${DESTDIR}/etc/signify/openbsd-${OSrev}-base.pub etc/signify/openbsd-${OSrev}-base.pub
-COPY ${CURDIR}/../../miniroot/protocols etc/protocols
-COPY ${CURDIR}/../../miniroot/services etc/services
-SYMLINK /tmp/i/fstab.shadow etc/fstab
-SYMLINK /tmp/i/resolv.conf.shadow etc/resolv.conf
-SYMLINK /tmp/i/hosts etc/hosts
-TERMCAP vt100,vt220,dumb usr/share/misc/termcap
-
-# firmware we might need
-COPY ${DESTDIR}/etc/firmware/kue etc/firmware/kue
-COPY ${DESTDIR}/etc/firmware/rum-rt2573 etc/firmware/rum-rt2573
-COPY ${DESTDIR}/etc/firmware/run-rt2870 etc/firmware/run-rt2870
-COPY ${DESTDIR}/etc/firmware/run-rt3071 etc/firmware/run-rt3071
-COPY ${DESTDIR}/etc/firmware/atu-at76c503-i3863-ext etc/firmware/atu-at76c503-i3863-ext
-COPY ${DESTDIR}/etc/firmware/atu-at76c503-i3863-int etc/firmware/atu-at76c503-i3863-int
-COPY ${DESTDIR}/etc/firmware/atu-at76c503-rfmd-acc-ext etc/firmware/atu-at76c503-rfmd-acc-ext
-COPY ${DESTDIR}/etc/firmware/atu-at76c503-rfmd-acc-int etc/firmware/atu-at76c503-rfmd-acc-int
-COPY ${DESTDIR}/etc/firmware/atu-at76c505-rfmd-ext etc/firmware/atu-at76c505-rfmd-ext
-COPY ${DESTDIR}/etc/firmware/atu-at76c505-rfmd-int etc/firmware/atu-at76c505-rfmd-int
-COPY ${DESTDIR}/etc/firmware/atu-intersil-ext etc/firmware/atu-intersil-ext
-COPY ${DESTDIR}/etc/firmware/atu-intersil-int etc/firmware/atu-intersil-int
-COPY ${DESTDIR}/etc/firmware/atu-license etc/firmware/atu-license
-COPY ${DESTDIR}/etc/firmware/atu-rfmd-ext etc/firmware/atu-rfmd-ext
-COPY ${DESTDIR}/etc/firmware/atu-rfmd-int etc/firmware/atu-rfmd-int
-COPY ${DESTDIR}/etc/firmware/atu-rfmd2958-ext etc/firmware/atu-rfmd2958-ext
-COPY ${DESTDIR}/etc/firmware/atu-rfmd2958-int etc/firmware/atu-rfmd2958-int
-COPY ${DESTDIR}/etc/firmware/atu-rfmd2958smc-ext etc/firmware/atu-rfmd2958smc-ext
-COPY ${DESTDIR}/etc/firmware/atu-rfmd2958smc-int etc/firmware/atu-rfmd2958smc-int
-
-# and the installation tools
-SCRIPT ${CURDIR}/../../miniroot/dot.profile .profile
-SCRIPT ${CURDIR}/install.md install.md
-SCRIPT ${CURDIR}/../../miniroot/install.sub install.sub
-SPECIAL chmod 755 install.sub
-SYMLINK install.sub autoinstall
-SYMLINK install.sub install
-SYMLINK install.sub upgrade
-
-TZ