diff options
author | Lucas Stach <dev@lynxeye.de> | 2014-06-03 22:35:15 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-06-05 08:01:15 +0200 |
commit | 8f385481a7c9e30489ee816567ce5d4e7b807d11 (patch) | |
tree | a6b34e4cb8224b5ae7aca528d44cca416e41f7a1 /images | |
parent | 77b9a2120c61a2d9025dc970679aac13dd846467 (diff) | |
download | barebox-8f385481a7c9e30489ee816567ce5d4e7b807d11.tar.gz barebox-8f385481a7c9e30489ee816567ce5d4e7b807d11.tar.xz |
images: add Tegra124 image build rules
Allows to build persistent images for the Tegra124
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/.gitignore | 2 | ||||
-rw-r--r-- | images/Makefile | 2 | ||||
-rw-r--r-- | images/Makefile.tegra | 9 |
3 files changed, 12 insertions, 1 deletions
diff --git a/images/.gitignore b/images/.gitignore index 42991af25c..ec9e3c0bc6 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 b050dbf312..740c197754 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 f22c2d308b..0d76062c9d 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 --------------------------- |