9
0
Fork 0

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>
This commit is contained in:
Lucas Stach 2014-06-03 22:35:15 +02:00 committed by Sascha Hauer
parent 77b9a2120c
commit 8f385481a7
3 changed files with 12 additions and 1 deletions

2
images/.gitignore vendored
View File

@ -12,6 +12,8 @@
*.t20img.cfg
*.t30img
*.t30img.cfg
*.t124img
*.t124img.cfg
pbl.lds
barebox.x
barebox.z

View File

@ -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

View File

@ -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 ---------------------------