From: Kumar Gala <galak@kernel.crashing.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH][RFC] bootm: Added CONFIG_BOOTM_{LINUX, NETBSD, RTEMS}
Date: Mon, 20 Oct 2008 11:39:53 -0500 [thread overview]
Message-ID: <1224520793-28186-1-git-send-email-galak@kernel.crashing.org> (raw)
Added the ability to config out bootm support for Linux, NetBSD, RTEMS
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
Looking for suggestions on how to deal with enabling LINUX, NETBSD, and RTEMS.
common/cmd_bootm.c | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index 1b2dfc4..47f9b45 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -103,13 +103,23 @@ extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
typedef int boot_os_fn (int flag, int argc, char *argv[],
bootm_headers_t *images); /* pointers to os/initrd/fdt */
+#define CONFIG_BOOTM_LINUX 1
+#define CONFIG_BOOTM_NETBSD 1
+#define CONFIG_BOOTM_RTEMS 1
+
+#ifdef CONFIG_BOOTM_LINUX
extern boot_os_fn do_bootm_linux;
+#endif
+#ifdef CONFIG_BOOTM_NETBSD
static boot_os_fn do_bootm_netbsd;
+#endif
#if defined(CONFIG_LYNXKDI)
static boot_os_fn do_bootm_lynxkdi;
extern void lynxkdi_boot (image_header_t *);
#endif
+#ifdef CONFIG_BOOTM_RTEMS
static boot_os_fn do_bootm_rtems;
+#endif
#if defined(CONFIG_CMD_ELF)
static boot_os_fn do_bootm_vxworks;
static boot_os_fn do_bootm_qnxelf;
@@ -121,12 +131,18 @@ static boot_os_fn do_bootm_integrity;
#endif
boot_os_fn * boot_os[] = {
+#ifdef CONFIG_BOOTM_LINUX
[IH_OS_LINUX] = do_bootm_linux,
+#endif
+#ifdef CONFIG_BOOTM_NETBSD
[IH_OS_NETBSD] = do_bootm_netbsd,
+#endif
#ifdef CONFIG_LYNXKDI
[IH_OS_LYNXOS] = do_bootm_lynxkdi,
#endif
+#ifdef CONFIG_BOOTM_RTEMS
[IH_OS_RTEMS] = do_bootm_rtems,
+#endif
#if defined(CONFIG_CMD_ELF)
[IH_OS_VXWORKS] = do_bootm_vxworks,
[IH_OS_QNX] = do_bootm_qnxelf,
@@ -1161,6 +1177,7 @@ static void fixup_silent_linux ()
/* OS booting routines */
/*******************************************************************/
+#ifdef CONFIG_BOOTM_NETBSD
static int do_bootm_netbsd (int flag, int argc, char *argv[],
bootm_headers_t *images)
{
@@ -1246,6 +1263,7 @@ static int do_bootm_netbsd (int flag, int argc, char *argv[],
return 1;
}
+#endif /* CONFIG_BOOTM_NETBSD*/
#ifdef CONFIG_LYNXKDI
static int do_bootm_lynxkdi (int flag, int argc, char *argv[],
@@ -1269,6 +1287,7 @@ static int do_bootm_lynxkdi (int flag, int argc, char *argv[],
}
#endif /* CONFIG_LYNXKDI */
+#ifdef CONFIG_BOOTM_RTEMS
static int do_bootm_rtems (int flag, int argc, char *argv[],
bootm_headers_t *images)
{
@@ -1299,6 +1318,7 @@ static int do_bootm_rtems (int flag, int argc, char *argv[],
return 1;
}
+#endif /* CONFIG_BOOTM_RTEMS */
#if defined(CONFIG_CMD_ELF)
static int do_bootm_vxworks (int flag, int argc, char *argv[],
--
1.5.5.1
next reply other threads:[~2008-10-20 16:39 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-20 16:39 Kumar Gala [this message]
2008-10-21 19:35 ` [U-Boot] [PATCH][RFC] bootm: Added CONFIG_BOOTM_{LINUX, NETBSD, RTEMS} Wolfgang Denk
2008-10-21 19:36 ` Kumar Gala
2008-10-21 19:42 ` Wolfgang Denk
2008-10-21 19:46 ` Jerry Van Baren
2008-10-21 19:50 ` Jerry Van Baren
2008-10-21 19:47 ` Kumar Gala
2008-10-21 21:01 ` Jean-Christophe PLAGNIOL-VILLARD
2009-09-09 12:55 ` [U-Boot] [PATCH] move default bootm config options to config_cmd_default.h Mike Frysinger
2009-09-09 13:06 ` Wolfgang Denk
2009-09-09 14:07 ` Mike Frysinger
2009-09-09 14:28 ` Wolfgang Denk
2009-09-09 15:34 ` Mike Frysinger
2009-11-04 21:46 ` [U-Boot] [PATCH 1/4] config_defaults.h: new header for common u-boot config defaults Mike Frysinger
2009-12-02 21:55 ` Wolfgang Denk
2009-12-03 2:15 ` [U-Boot] [PATCH 1/4 v2] " Mike Frysinger
2010-01-17 23:05 ` Wolfgang Denk
2009-11-04 21:46 ` [U-Boot] [PATCH 2/4] gzip/zlib: make features optional Mike Frysinger
2010-01-21 21:24 ` Wolfgang Denk
2010-01-22 0:30 ` [U-Boot] [PATCH v2] " Mike Frysinger
2010-01-25 23:05 ` Wolfgang Denk
2009-11-04 21:46 ` [U-Boot] [PATCH 3/4] sha1: add dedicated config option Mike Frysinger
2010-01-18 2:08 ` [U-Boot] [PATCH 3/4 v2] " Mike Frysinger
2010-01-21 21:21 ` Wolfgang Denk
2009-11-04 21:46 ` [U-Boot] [PATCH 4/4] bootm: allow people to disable this command Mike Frysinger
2010-01-21 21:17 ` Wolfgang Denk
2010-01-22 0:34 ` Mike Frysinger
2010-01-22 11:59 ` Wolfgang Denk
2008-10-21 19:47 ` [U-Boot] [PATCH][RFC] bootm: Added CONFIG_BOOTM_{LINUX, NETBSD, RTEMS} Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1224520793-28186-1-git-send-email-galak@kernel.crashing.org \
--to=galak@kernel.crashing.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.