From: Kyungmin Park <kmpark@infradead.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Can build with only jffs2 cmdline support
Date: Fri, 27 Feb 2009 17:57:36 +0900 [thread overview]
Message-ID: <20090227085736.GA5826@july> (raw)
Some program such as UBI only used the mtdpart only.
however current jffs2 cmdline has dependent with jffs2 cmd
This patch make a build only jffs2 cmdline without jffs2 cmd dependency.
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
diff --git a/common/Makefile b/common/Makefile
index f13cd11..18d76fa 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -98,6 +98,7 @@ COBJS-$(CONFIG_CMD_IMMAP) += cmd_immap.o
COBJS-$(CONFIG_CMD_IRQ) += cmd_irq.o
COBJS-$(CONFIG_CMD_ITEST) += cmd_itest.o
COBJS-$(CONFIG_CMD_JFFS2) += cmd_jffs2.o
+COBJS-$(CONFIG_JFFS2_CMDLINE) += cmd_jffs2.o
COBJS-$(CONFIG_CMD_LICENSE) += cmd_license.o
COBJS-y += cmd_load.o
COBJS-$(CONFIG_LOGBUFFER) += cmd_log.o
diff --git a/common/cmd_jffs2.c b/common/cmd_jffs2.c
index d0a7cea..3af1bff 100644
--- a/common/cmd_jffs2.c
+++ b/common/cmd_jffs2.c
@@ -2005,6 +2005,7 @@ static struct part_info* jffs2_part_info(struct mtd_device *dev, unsigned int pa
/* U-boot commands */
/***************************************************/
+#ifdef CONFIG_CMD_JFFS2
/**
* Routine implementing fsload u-boot command. This routine tries to load
* a requested file from jffs2/cramfs filesystem on a current partition.
@@ -2144,6 +2145,7 @@ int do_jffs2_fsinfo(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
}
return 1;
}
+#endif /* CONFIG_CMD_JFFS2 */
/* command line only */
#ifdef CONFIG_JFFS2_CMDLINE
@@ -2295,6 +2297,7 @@ int do_jffs2_mtdparts(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
#endif /* #ifdef CONFIG_JFFS2_CMDLINE */
/***************************************************/
+#ifdef CONFIG_CMD_JFFS2
U_BOOT_CMD(
fsload, 3, 0, do_jffs2_fsload,
"load binary file from a filesystem image",
@@ -2314,6 +2317,7 @@ U_BOOT_CMD(
"print information about filesystems",
" - print information about filesystems\n"
);
+#endif
#ifdef CONFIG_JFFS2_CMDLINE
U_BOOT_CMD(
next reply other threads:[~2009-02-27 8:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-27 8:57 Kyungmin Park [this message]
2009-02-27 9:24 ` [U-Boot] [PATCH] Can build with only jffs2 cmdline support Stefan Roese
2009-02-27 10:09 ` Kyungmin Park
2009-02-27 10:36 ` Stefan Roese
2009-02-28 14:20 ` Wolfgang Denk
2009-03-03 5:02 ` Kyungmin Park
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=20090227085736.GA5826@july \
--to=kmpark@infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox