[PATCH 28/30] images: add Tegra124 image build rules
Lucas Stach
dev at lynxeye.de
Tue Jun 3 13:35:15 PDT 2014
Allows to build persistent images for the Tegra124
line of SoCs.
Signed-off-by: Lucas Stach <dev at lynxeye.de>
---
images/.gitignore | 2 ++
images/Makefile | 2 +-
images/Makefile.tegra | 9 +++++++++
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/images/.gitignore b/images/.gitignore
index 42991af..ec9e3c0 100644
--- a/images/.gitignore
+++ b/images/.gitignore
@@ -12,6 +12,8 @@
*.t20img.cfg
*.t30img
*.t30img.cfg
+*.t124img
+*.t124img.cfg
pbl.lds
barebox.x
barebox.z
diff --git a/images/Makefile b/images/Makefile
index b050dbf..740c197 100644
--- a/images/Makefile
+++ b/images/Makefile
@@ -118,5 +118,5 @@ images: $(addprefix $(obj)/, $(image-y)) FORCE
clean-files := *.pbl *.pblb *.pblx *.map start_*.imximg *.img barebox.z start_*.kwbimg \
start_*.kwbuartimg *.socfpgaimg *.mlo *.t20img *.t20img.cfg *.t30img \
- *.t30img.cfg
+ *.t30img.cfg *.t124img *.t124img.cfg
clean-files += pbl.lds
diff --git a/images/Makefile.tegra b/images/Makefile.tegra
index f22c2d3..0d76062 100644
--- a/images/Makefile.tegra
+++ b/images/Makefile.tegra
@@ -19,6 +19,15 @@ quiet_cmd_tegra30_image = T30IMG $@
$(obj)/%.t30img: $(obj)/% FORCE
$(call if_changed,tegra30_image)
+quiet_cmd_tegra124_image = T124IMG $@
+ cmd_tegra124_image = echo "Version = 0x00400001;Bctcopy = 1; \
+ Bctfile = $(BCT_$(@F)); \
+ BootLoader = $(subst .t124img,,$@),0x80108000,0x80108000,Complete;" \
+ > $@.cfg; \
+ $(objtree)/scripts/tegra/cbootimage -s tegra124 $@.cfg $@
+$(obj)/%.t124img: $(obj)/% FORCE
+ $(call if_changed,tegra124_image)
+
board = $(srctree)/arch/$(ARCH)/boards
# ----------------------- Tegra20 based boards ---------------------------
--
1.9.3
More information about the barebox
mailing list