From 8f385481a7c9e30489ee816567ce5d4e7b807d11 Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Tue, 3 Jun 2014 22:35:15 +0200 Subject: [PATCH] images: add Tegra124 image build rules Allows to build persistent images for the Tegra124 line of SoCs. Signed-off-by: Lucas Stach Signed-off-by: Sascha Hauer --- 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 42991af25..ec9e3c0bc 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 b050dbf31..740c19775 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 f22c2d308..0d76062c9 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 ---------------------------