Commit e7a199123d8231d62d47b07be531c495543f1e55

Authored by Ye Li
1 parent 9ce5ebf3cc

MLK-15086 arm: Add firmware_image section to objcopy flags

The u-boot limits the needed sections in .bin by set -j parameter
in objcopy. Need to add the firmware_image section for M4 image.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 709839a52af39f1b4640ae3c72475fc01b1b37d5)

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

... ... @@ -136,6 +136,10 @@
136 136 OBJCOPYFLAGS += -j .efi_runtime -j .efi_runtime_rel
137 137 endif
138 138  
  139 +ifdef CONFIG_IMX_M4_BIND
  140 +OBJCOPYFLAGS += -j .firmware_image
  141 +endif
  142 +
139 143 ifneq ($(CONFIG_IMX_CONFIG),)
140 144 ifdef CONFIG_SPL
141 145 ifndef CONFIG_SPL_BUILD