Date: Fri, 28 Jan 2011 16:20:16 +0000 (UTC) From: Nathan Whitehorn <nwhitehorn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r218022 - user/nwhitehorn/bsdinstall/partedit Message-ID: <201101281620.p0SGKGaZ086695@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); +} +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101281620.p0SGKGaZ086695>