From owner-svn-src-user@FreeBSD.ORG Fri Jan 28 16:20:16 2011 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E0FB1065670; Fri, 28 Jan 2011 16:20:16 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2E2728FC1A; Fri, 28 Jan 2011 16:20:16 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p0SGKGEt086696; Fri, 28 Jan 2011 16:20:16 GMT (envelope-from nwhitehorn@svn.freebsd.org) Received: (from nwhitehorn@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p0SGKGaZ086695; Fri, 28 Jan 2011 16:20:16 GMT (envelope-from nwhitehorn@svn.freebsd.org) Message-Id: <201101281620.p0SGKGaZ086695@svn.freebsd.org> From: Nathan Whitehorn Date: Fri, 28 Jan 2011 16:20:16 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r218022 - user/nwhitehorn/bsdinstall/partedit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jan 2011 16:20:16 -0000 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 + +#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); +} +