From: jsing Date: Sat, 18 Jan 2014 01:44:56 +0000 (+0000) Subject: Make installboot(8) build on all architectures, although currently with X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=39e364ef1b6fca19b0805c9d3b42eb695ff7c01b;p=openbsd Make installboot(8) build on all architectures, although currently with non-functional stubs for alpha, armish, armv7, aviion, loongson, luna88k, mvme68k, mvme88k, octeon, sgi, socppc, sparc and zaurus. --- diff --git a/usr.sbin/installboot/alpha/Makefile.inc b/usr.sbin/installboot/alpha/Makefile.inc new file mode 100644 index 00000000000..06d9b79bafd --- /dev/null +++ b/usr.sbin/installboot/alpha/Makefile.inc @@ -0,0 +1,3 @@ +# $OpenBSD: Makefile.inc,v 1.1 2014/01/18 01:44:56 jsing Exp $ + +SRCS+= stubs.c diff --git a/usr.sbin/installboot/armish/Makefile.inc b/usr.sbin/installboot/armish/Makefile.inc new file mode 100644 index 00000000000..06d9b79bafd --- /dev/null +++ b/usr.sbin/installboot/armish/Makefile.inc @@ -0,0 +1,3 @@ +# $OpenBSD: Makefile.inc,v 1.1 2014/01/18 01:44:56 jsing Exp $ + +SRCS+= stubs.c diff --git a/usr.sbin/installboot/armv7/Makefile.inc b/usr.sbin/installboot/armv7/Makefile.inc new file mode 100644 index 00000000000..06d9b79bafd --- /dev/null +++ b/usr.sbin/installboot/armv7/Makefile.inc @@ -0,0 +1,3 @@ +# $OpenBSD: Makefile.inc,v 1.1 2014/01/18 01:44:56 jsing Exp $ + +SRCS+= stubs.c diff --git a/usr.sbin/installboot/aviion/Makefile.inc b/usr.sbin/installboot/aviion/Makefile.inc new file mode 100644 index 00000000000..06d9b79bafd --- /dev/null +++ b/usr.sbin/installboot/aviion/Makefile.inc @@ -0,0 +1,3 @@ +# $OpenBSD: Makefile.inc,v 1.1 2014/01/18 01:44:56 jsing Exp $ + +SRCS+= stubs.c diff --git a/usr.sbin/installboot/loongson/Makefile.inc b/usr.sbin/installboot/loongson/Makefile.inc new file mode 100644 index 00000000000..06d9b79bafd --- /dev/null +++ b/usr.sbin/installboot/loongson/Makefile.inc @@ -0,0 +1,3 @@ +# $OpenBSD: Makefile.inc,v 1.1 2014/01/18 01:44:56 jsing Exp $ + +SRCS+= stubs.c diff --git a/usr.sbin/installboot/luna88k/Makefile.inc b/usr.sbin/installboot/luna88k/Makefile.inc new file mode 100644 index 00000000000..06d9b79bafd --- /dev/null +++ b/usr.sbin/installboot/luna88k/Makefile.inc @@ -0,0 +1,3 @@ +# $OpenBSD: Makefile.inc,v 1.1 2014/01/18 01:44:56 jsing Exp $ + +SRCS+= stubs.c diff --git a/usr.sbin/installboot/mvme68k/Makefile.inc b/usr.sbin/installboot/mvme68k/Makefile.inc new file mode 100644 index 00000000000..06d9b79bafd --- /dev/null +++ b/usr.sbin/installboot/mvme68k/Makefile.inc @@ -0,0 +1,3 @@ +# $OpenBSD: Makefile.inc,v 1.1 2014/01/18 01:44:56 jsing Exp $ + +SRCS+= stubs.c diff --git a/usr.sbin/installboot/mvme88k/Makefile.inc b/usr.sbin/installboot/mvme88k/Makefile.inc new file mode 100644 index 00000000000..06d9b79bafd --- /dev/null +++ b/usr.sbin/installboot/mvme88k/Makefile.inc @@ -0,0 +1,3 @@ +# $OpenBSD: Makefile.inc,v 1.1 2014/01/18 01:44:56 jsing Exp $ + +SRCS+= stubs.c diff --git a/usr.sbin/installboot/octeon/Makefile.inc b/usr.sbin/installboot/octeon/Makefile.inc new file mode 100644 index 00000000000..2ccda28fb7a --- /dev/null +++ b/usr.sbin/installboot/octeon/Makefile.inc @@ -0,0 +1,3 @@ +# $OpenBSD: Makefile.inc,v 1.1 2014/01/18 01:44:57 jsing Exp $ + +SRCS+= stubs.c diff --git a/usr.sbin/installboot/sgi/Makefile.inc b/usr.sbin/installboot/sgi/Makefile.inc new file mode 100644 index 00000000000..2ccda28fb7a --- /dev/null +++ b/usr.sbin/installboot/sgi/Makefile.inc @@ -0,0 +1,3 @@ +# $OpenBSD: Makefile.inc,v 1.1 2014/01/18 01:44:57 jsing Exp $ + +SRCS+= stubs.c diff --git a/usr.sbin/installboot/socppc/Makefile.inc b/usr.sbin/installboot/socppc/Makefile.inc new file mode 100644 index 00000000000..2ccda28fb7a --- /dev/null +++ b/usr.sbin/installboot/socppc/Makefile.inc @@ -0,0 +1,3 @@ +# $OpenBSD: Makefile.inc,v 1.1 2014/01/18 01:44:57 jsing Exp $ + +SRCS+= stubs.c diff --git a/usr.sbin/installboot/sparc/Makefile.inc b/usr.sbin/installboot/sparc/Makefile.inc new file mode 100644 index 00000000000..2ccda28fb7a --- /dev/null +++ b/usr.sbin/installboot/sparc/Makefile.inc @@ -0,0 +1,3 @@ +# $OpenBSD: Makefile.inc,v 1.1 2014/01/18 01:44:57 jsing Exp $ + +SRCS+= stubs.c diff --git a/usr.sbin/installboot/stubs.c b/usr.sbin/installboot/stubs.c new file mode 100644 index 00000000000..524cddc945a --- /dev/null +++ b/usr.sbin/installboot/stubs.c @@ -0,0 +1,35 @@ +/* $OpenBSD: stubs.c,v 1.1 2014/01/18 01:44:57 jsing Exp $ */ + +/* + * Copyright (c) 2014 Joel Sing + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#include "installboot.h" + +void +md_init(void) +{ + errx(1, "not yet implemented"); +} + +void +md_loadboot(void) +{ +} + +void +md_installboot(int devfd, char *dev) +{ +} diff --git a/usr.sbin/installboot/zaurus/Makefile.inc b/usr.sbin/installboot/zaurus/Makefile.inc new file mode 100644 index 00000000000..2ccda28fb7a --- /dev/null +++ b/usr.sbin/installboot/zaurus/Makefile.inc @@ -0,0 +1,3 @@ +# $OpenBSD: Makefile.inc,v 1.1 2014/01/18 01:44:57 jsing Exp $ + +SRCS+= stubs.c