svn commit: r218022 - user/nwhitehorn/bsdinstall/partedit
Nathan Whitehorn
nwhitehorn at FreeBSD.org
Fri Jan 28 16:20:16 UTC 2011
Author: nwhitehorn
Date: Fri Jan 28 16:20:15 2011
New Revision: 218022
URL: http://svn.freebsd.org/changeset/base/218022
Log:
Add a generic partedit platform module as a fallback. This is meant for
embedded platforms like MIPS and ARM so that partedit can still build.
For lack of better information, it is programmed to trust the user's
choices choice and never to suggest anything.
Added:
user/nwhitehorn/bsdinstall/partedit/partedit_generic.c
Added: user/nwhitehorn/bsdinstall/partedit/partedit_generic.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ user/nwhitehorn/bsdinstall/partedit/partedit_generic.c Fri Jan 28 16:20:15 2011 (r218022)
@@ -0,0 +1,41 @@
+#include <string.h>
+
+#include "partedit.h"
+
+const char *
+default_scheme(void) {
+ /*
+ * Our loader can parse GPT, so pick that as the default for lack of
+ * a better idea.
+ */
+
+ return ("GPT");
+}
+
+int
+is_scheme_bootable(const char *part_type) {
+ /*
+ * We don't know anything about this platform, so don't irritate the
+ * user by claiming the chosen partition scheme isn't bootable.
+ */
+
+ return (1);
+}
+
+/* No clue => no boot partition, bootcode, or partcode */
+
+size_t
+bootpart_size(const char *part_type) {
+ return (0);
+}
+
+const char *
+bootcode_path(const char *part_type) {
+ return (NULL);
+}
+
+const char *
+partcode_path(const char *part_type) {
+ return (NULL);
+}
+
More information about the svn-src-user
mailing list