diff options
author | Simon Glass | 2017-11-13 19:55:06 -0600 |
---|---|---|
committer | Simon Glass | 2017-12-12 20:53:45 -0600 |
commit | f2faffecb016988a999f26f1dbebc5d88793761b (patch) | |
tree | bee6478d679cc07632e9a8d3f9cf82aa8804e6bb /Makefile | |
parent | 39c1502ccc49cc5e9ef799ca56c6fa66c8863504 (diff) | |
download | u-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-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1149,6 +1149,11 @@ u-boot-sunxi-with-spl.bin: spl/sunxi-spl.bin u-boot.img u-boot.dtb FORCE | |||
1149 | endif | 1149 | endif |
1150 | 1150 | ||
1151 | ifneq ($(CONFIG_TEGRA),) | 1151 | ifneq ($(CONFIG_TEGRA),) |
1152 | ifneq ($(CONFIG_BINMAN),) | ||
1153 | u-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) | ||
1156 | else | ||
1152 | OBJCOPYFLAGS_u-boot-nodtb-tegra.bin = -O binary --pad-to=$(CONFIG_SYS_TEXT_BASE) | 1157 | OBJCOPYFLAGS_u-boot-nodtb-tegra.bin = -O binary --pad-to=$(CONFIG_SYS_TEXT_BASE) |
1153 | u-boot-nodtb-tegra.bin: spl/u-boot-spl u-boot-nodtb.bin FORCE | 1158 | u-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 | ||
1160 | u-boot-dtb-tegra.bin: u-boot-tegra.bin FORCE | 1165 | u-boot-dtb-tegra.bin: u-boot-tegra.bin FORCE |
1161 | $(call if_changed,copy) | 1166 | $(call if_changed,copy) |
1167 | endif # binman | ||
1162 | endif | 1168 | endif |
1163 | 1169 | ||
1164 | OBJCOPYFLAGS_u-boot-app.efi := $(OBJCOPYFLAGS_EFI) | 1170 | OBJCOPYFLAGS_u-boot-app.efi := $(OBJCOPYFLAGS_EFI) |