diff options
author | Lucas Stach <dev@lynxeye.de> | 2014-05-14 22:45:47 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-05-15 14:19:25 +0200 |
commit | c3bb8574c6455abb9e0b272ee5f922a1d771bb48 (patch) | |
tree | 9c960f978d31708bb0aa19f545e43a48fcd5b504 /images | |
parent | 8c08cd524d8faf16f6890db5bbd1745050c01423 (diff) | |
download | barebox-c3bb8574c6455abb9e0b272ee5f922a1d771bb48.tar.gz barebox-c3bb8574c6455abb9e0b272ee5f922a1d771bb48.tar.xz |
images: add Tegra30 image build rules
Allows to build persistent images for the Tegra30
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 | 3 | ||||
-rw-r--r-- | images/Makefile.tegra | 9 |
3 files changed, 13 insertions, 1 deletions
diff --git a/images/.gitignore b/images/.gitignore index 5f6f0b2ab2..42991af25c 100644 --- a/images/.gitignore +++ b/images/.gitignore @@ -10,6 +10,8 @@ *.socfpgaimg *.t20img *.t20img.cfg +*.t30img +*.t30img.cfg pbl.lds barebox.x barebox.z diff --git a/images/Makefile b/images/Makefile index 1ad7dace85..b050dbf312 100644 --- a/images/Makefile +++ b/images/Makefile @@ -117,5 +117,6 @@ 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 *.t20img *.t20img.cfg + start_*.kwbuartimg *.socfpgaimg *.mlo *.t20img *.t20img.cfg *.t30img \ + *.t30img.cfg clean-files += pbl.lds diff --git a/images/Makefile.tegra b/images/Makefile.tegra index 6c9a70529e..7dc44a2d89 100644 --- a/images/Makefile.tegra +++ b/images/Makefile.tegra @@ -10,6 +10,15 @@ quiet_cmd_tegra20_image = T20IMG $@ $(obj)/%.t20img: $(obj)/% FORCE $(call if_changed,tegra20_image) +quiet_cmd_tegra30_image = T30IMG $@ + cmd_tegra30_image = echo "Version = 0x00030001;Bctcopy = 1; \ + Bctfile = $(BCT_$(@F)); \ + BootLoader = $(subst .t30img,,$@),0x80108000,0x80108000,Complete;" \ + > $@.cfg; \ + $(objtree)/scripts/tegra/cbootimage -s tegra30 $@.cfg $@ +$(obj)/%.t30img: $(obj)/% FORCE + $(call if_changed,tegra30_image) + board = $(srctree)/arch/$(ARCH)/boards # ----------------------- Tegra20 based boards --------------------------- |