From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: barebox@lists.infradead.org
Subject: [PATCH] arm: add support to generate uImage
Date: Sat, 23 Apr 2011 07:05:18 +0200 [thread overview]
Message-ID: <1303535118-4737-1-git-send-email-plagnioj@jcrosoft.com> (raw)
so barebox could be loaded as kernel by itself
add LOAD_TEXT_BASE to specify the load address
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
arch/arm/Makefile | 15 +++++++++++++++
common/Kconfig | 7 +++++++
2 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 108bd5e..f0ec667 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -134,6 +134,21 @@ ifeq ($(machine-y),netx)
KBUILD_IMAGE := barebox.netx
endif
+MKIMAGE := $(objtree)/scripts/mkimage
+
+quiet_cmd_uimage = UIMAGE $@
+ cmd_uimage = $(MKIMAGE) -A arm -O linux -T kernel \
+ -C none -a $(BAREBOX_LOAD) -e $(BAREBOX_ENTRY) \
+ -n 'Barebox-$(KERNELRELEASE)' -d $< $@
+
+uImage: $(MKIMAGE)
+uImage: BAREBOX_LOAD=$(CONFIG_LOAD_TEXT_BASE)
+uImage: BAREBOX_ENTRY=$(CONFIG_TEXT_BASE)
+
+uImage: barebox.bin
+ $(call if_changed,uimage,none)
+ @echo ' Image $@ is ready'
+
all: $(KBUILD_IMAGE)
archprepare: maketools
diff --git a/common/Kconfig b/common/Kconfig
index 9e30579..50995d3 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -80,6 +80,13 @@ config TEXT_BASE
help
The Address barebox gets linked at.
+config LOAD_TEXT_BASE
+ prompt "LOAD_TEXT_BASE"
+ hex
+ default TEXT_BASE
+ help
+ The Address barebox gets load at as a uImage
+
config HAVE_CONFIGURABLE_MEMORY_LAYOUT
bool
--
1.7.4.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2011-04-23 5:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-23 5:05 Jean-Christophe PLAGNIOL-VILLARD [this message]
2011-04-25 11:37 ` Sascha Hauer
2011-04-25 15:48 ` Jean-Christophe PLAGNIOL-VILLARD
2011-04-25 18:57 ` Sascha Hauer
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=1303535118-4737-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