At the moment, you can add these two lines to your soc or arch-level Makefile to get ihex files generated.
A better enhancement would be to control this with Kconfig.
From: Tidy(ChunHua) Jiang [mailto:email@example.com]
Sent: Sunday, January 15, 2017 6:40 PM
Subject: [devel] How to generate .hex image
When building, some BOARDs will generate both .bin and .hex, but others only .bin.
Is there a build switch to control this ?
My current stupid method is that, enter the directory where zephyr.elf is located, and then type:
/opt/zephyr-sdk/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-eabi/arm-poky-eabi-objcopy -S -O ihex -R .note -R .comment -R COMMON -R .eh_frame zephyr.elf zephyr.hex