aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Glass2017-11-13 19:55:06 -0600
committerSimon Glass2017-12-12 20:53:45 -0600
commitf2faffecb016988a999f26f1dbebc5d88793761b (patch)
treebee6478d679cc07632e9a8d3f9cf82aa8804e6bb /Makefile
parent39c1502ccc49cc5e9ef799ca56c6fa66c8863504 (diff)
downloadu-boot-f2faffecb016988a999f26f1dbebc5d88793761b.tar.gz
u-boot-f2faffecb016988a999f26f1dbebc5d88793761b.tar.xz
u-boot-f2faffecb016988a999f26f1dbebc5d88793761b.zip
binman: tegra: Convert to use binman
Update tegra to use binman for image creation. This still includes the current Makefile logic, but a later patch will remove this. Three output files are created, all of which combine SPL and U-Boot: u-boot-tegra.bin - standard image u-boot-dtb-tegra.bin - same as u-boot-tegra.bin u-boot-nodtb-target.bin - includes U-Boot without the appended device tree The latter is useful for build systems where the device is appended later, perhaps after being modified. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e6d309afe4..9800d79c85 100644
--- a/Makefile
+++ b/Makefile
@@ -1149,6 +1149,11 @@ u-boot-sunxi-with-spl.bin: spl/sunxi-spl.bin u-boot.img u-boot.dtb FORCE
1149endif 1149endif
1150 1150
1151ifneq ($(CONFIG_TEGRA),) 1151ifneq ($(CONFIG_TEGRA),)
1152ifneq ($(CONFIG_BINMAN),)
1153u-boot-dtb-tegra.bin u-boot-tegra.bin u-boot-nodtb-tegra.bin: \
1154 spl/u-boot-spl u-boot.bin FORCE
1155 $(call if_changed,binman)
1156else
1152OBJCOPYFLAGS_u-boot-nodtb-tegra.bin = -O binary --pad-to=$(CONFIG_SYS_TEXT_BASE) 1157OBJCOPYFLAGS_u-boot-nodtb-tegra.bin = -O binary --pad-to=$(CONFIG_SYS_TEXT_BASE)
1153u-boot-nodtb-tegra.bin: spl/u-boot-spl u-boot-nodtb.bin FORCE 1158u-boot-nodtb-tegra.bin: spl/u-boot-spl u-boot-nodtb.bin FORCE
1154 $(call if_changed,pad_cat) 1159 $(call if_changed,pad_cat)
@@ -1159,6 +1164,7 @@ u-boot-tegra.bin: spl/u-boot-spl u-boot.bin FORCE
1159 1164
1160u-boot-dtb-tegra.bin: u-boot-tegra.bin FORCE 1165u-boot-dtb-tegra.bin: u-boot-tegra.bin FORCE
1161 $(call if_changed,copy) 1166 $(call if_changed,copy)
1167endif # binman
1162endif 1168endif
1163 1169
1164OBJCOPYFLAGS_u-boot-app.efi := $(OBJCOPYFLAGS_EFI) 1170OBJCOPYFLAGS_u-boot-app.efi := $(OBJCOPYFLAGS_EFI)