From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: barebox@lists.infradead.org
Subject: [PATCH 1/1] defaultenv: add oftree file support
Date: Sun, 15 Apr 2012 15:15:41 +0200 [thread overview]
Message-ID: <1334495741-9222-1-git-send-email-plagnioj@jcrosoft.com> (raw)
This will allow to use a file in the env as oftree.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
defaultenv/bin/_boot_help | 2 +-
defaultenv/bin/boot | 2 ++
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/defaultenv/bin/_boot_help b/defaultenv/bin/_boot_help
index a07e4e0..c610a9c 100644
--- a/defaultenv/bin/_boot_help
+++ b/defaultenv/bin/_boot_help
@@ -4,7 +4,7 @@ echo "boot: boot [-m <mode>] [-k <kernel_option>] [-r <rootfs_option>] [-i <ip_m
echo ""
echo "options"
echo " - kernel nand, nor, nfs, tftp, disk"
-echo " - oftree nand, nor, nfs, tftp, disk or empty"
+echo " - oftree nand, nor, nfs, tftp, disk, file or empty"
echo " - rootfs nand, nor, net, disk"
echo " - ip dhcp, dhcp-barebox none, empty"
echo ""
diff --git a/defaultenv/bin/boot b/defaultenv/bin/boot
index 61b893a..a497edf 100644
--- a/defaultenv/bin/boot
+++ b/defaultenv/bin/boot
@@ -128,6 +128,8 @@ elif [ x$oftree_loc = xnand ]; then
odev="/dev/nand0.oftree.bb"
elif [ x$oftree_loc = xdisk ]; then
odev="/dev/$oftree_part"
+elif [ x$oftree_loc = xfile ]; then
+ odev=$oftreeimage
fi
[ x$odev = x ] || bootm_opt="$bootm_opt -o $odev"
--
1.7.9.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
reply other threads:[~2012-04-15 13:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1334495741-9222-1-git-send-email-plagnioj@jcrosoft.com \
--to=plagnioj@jcrosoft.com \
--cc=barebox@lists.infradead.org \
/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