os/Makefile.unix : Generate debug binary for common binary
common_binary_dbg will be used to debug for common binary
@@ -457,6 +457,7 @@ ifeq ($(CONFIG_SUPPORT_COMMON_BINARY),y)
rm $(OUTBIN_DIR)/$(CONFIG_COMMON_BINARY_NAME); \
exit 1; \
fi
+ $(Q) cp $(OUTBIN_DIR)/$(CONFIG_COMMON_BINARY_NAME) $(OUTBIN_DIR)/$(CONFIG_COMMON_BINARY_NAME)_dbg
$(Q) $(STRIP) -g -o $(OUTBIN_DIR)/$(CONFIG_COMMON_BINARY_NAME) $(OUTBIN_DIR)/$(CONFIG_COMMON_BINARY_NAME)
$(Q) $(OBJCOPY) --remove-section .comment $(OUTBIN_DIR)/$(CONFIG_COMMON_BINARY_NAME)
$(Q) $(TOPDIR)/tools/mkbinheader.py $(OUTBIN_DIR)/$(CONFIG_COMMON_BINARY_NAME) common $(CONFIG_COMMON_BINARY_VERSION)
