For boards configured with an RW B side, produce a hex file for the B side.
If a board configuration produces an RW image for its B side, it makes
sense that requesting the "hex" target would produce a hex file for the B
side image as well as the A side image.
BUG=none
BRANCH=none
TEST=make -j buildall
Signed-off-by: Carl Hamilton <carlh@chromium.org>
Change-Id: Ib4ff1e41272ebf199c6361da4b572a43d403a003
Reviewed-on: https://chromium-review.googlesource.com/1369686
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
diff --git a/Makefile.rules b/Makefile.rules
index 62385c4..8ea3c7c 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -221,6 +221,7 @@
.PHONY: dis
hex-y := $(out)/RO/$(PROJECT).RO.hex $(out)/RW/$(PROJECT).RW.hex $(out)/$(PROJECT).hex
+hex-$(CONFIG_RW_B) += $(out)/RW/$(PROJECT).RW_B.hex
hex: $(hex-y)
.PHONY: hex