[COMMON] firmware: Makefile: convert ihex2fw
authoryi jaeuk <ju.yi@samsung.com>
Fri, 4 May 2018 12:08:32 +0000 (21:08 +0900)
committeryi jaeuk <ju.yi@samsung.com>
Tue, 8 May 2018 04:55:11 +0000 (13:55 +0900)
Change-Id: I1486470ff0718627fdc938a1220523e8d1cf3f19
Signed-off-by: yi jaeuk <ju.yi@samsung.com>
firmware/Makefile

index 83fbcf2f5275fd52b2c38f6b44393dff6c6cd2cf..4284add2f044f94e7a2e2fcfb24f50dadea3c1a4 100644 (file)
@@ -12,6 +12,15 @@ fwabs := $(addprefix $(srctree)/,$(filter-out /%,$(fwdir)))$(filter /%,$(fwdir))
 
 fw-external-y := $(subst $(quote),,$(CONFIG_EXTRA_FIRMWARE))
 
+quiet_cmd_ihex  = IHEX    $@
+      cmd_ihex  = $(OBJCOPY) -Iihex -Obinary $< $@
+
+quiet_cmd_ihex2fw  = IHEX2FW $@
+      cmd_ihex2fw  = $(objtree)/$(obj)/ihex2fw $< $@
+
+quiet_cmd_h16tofw  = H16TOFW $@
+      cmd_h16tofw  = $(objtree)/$(obj)/ihex2fw -w $< $@
+
 quiet_cmd_fwbin = MK_FW   $@
       cmd_fwbin = FWNAME="$(patsubst firmware/%.gen.S,%,$@)";               \
                  FWSTR="$(subst /,_,$(subst .,_,$(subst -,_,$(patsubst      \