summaryrefslogtreecommitdiffstats
path: root/images
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2014-05-14 22:45:46 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-05-15 14:19:25 +0200
commit8c08cd524d8faf16f6890db5bbd1745050c01423 (patch)
tree5dc91494f04e9835f30e85455789b5ecf523ef6e /images
parent4f84368972117142b0bd9170b0e0a99bc5930b17 (diff)
downloadbarebox-8c08cd524d8faf16f6890db5bbd1745050c01423.tar.gz
barebox-8c08cd524d8faf16f6890db5bbd1745050c01423.tar.xz
images: add Tegra20 image build rules
Allows to build persistent images for the Tegra20 line of SoCs. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'images')
-rw-r--r--images/.gitignore2
-rw-r--r--images/Makefile2
-rw-r--r--images/Makefile.tegra8
3 files changed, 11 insertions, 1 deletions
diff --git a/images/.gitignore b/images/.gitignore
index 1f601e730f..5f6f0b2ab2 100644
--- a/images/.gitignore
+++ b/images/.gitignore
@@ -8,6 +8,8 @@
*.kwbimg
*.kwbuartimg
*.socfpgaimg
+*.t20img
+*.t20img.cfg
pbl.lds
barebox.x
barebox.z
diff --git a/images/Makefile b/images/Makefile
index 5509a4cf80..1ad7dace85 100644
--- a/images/Makefile
+++ b/images/Makefile
@@ -117,5 +117,5 @@ images: $(addprefix $(obj)/, $(image-y)) FORCE
@for i in $(image-y); do echo $$i; done
clean-files := *.pbl *.pblb *.pblx *.map start_*.imximg *.img barebox.z start_*.kwbimg \
- start_*.kwbuartimg *.socfpgaimg *.mlo
+ start_*.kwbuartimg *.socfpgaimg *.mlo *.t20img *.t20img.cfg
clean-files += pbl.lds
diff --git a/images/Makefile.tegra b/images/Makefile.tegra
index c957599958..6c9a70529e 100644
--- a/images/Makefile.tegra
+++ b/images/Makefile.tegra
@@ -1,6 +1,14 @@
#
# barebox image generation Makefile for Tegra images
#
+quiet_cmd_tegra20_image = T20IMG $@
+ cmd_tegra20_image = echo "Version = 0x00020001;Bctcopy = 1; \
+ Bctfile = $(BCT_$(@F)); \
+ BootLoader = $(subst .t20img,,$@),0x00108000,0x00108000,Complete;" \
+ > $@.cfg; \
+ $(objtree)/scripts/tegra/cbootimage -s tegra20 $@.cfg $@
+$(obj)/%.t20img: $(obj)/% FORCE
+ $(call if_changed,tegra20_image)
board = $(srctree)/arch/$(ARCH)/boards