From 1e0745b31a2e7f39afe12c5b350ba87b9a4b465a Mon Sep 17 00:00:00 2001
From: Yang Zhong <yang.zhong@intel.com>
Date: Sat, 3 Mar 2018 21:57:20 -0500
Subject: [PATCH] target/i386: add the CONFIG_TCG into Makefiles

Add the CONFIG_TCG for frontend and backend's files in the related
Makefiles.

Backports commit 44eff673411381062b826d048ba9d6630d2b2bdb from qemu
---
 qemu/target/i386/Makefile.objs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/qemu/target/i386/Makefile.objs b/qemu/target/i386/Makefile.objs
index eeb0bda0..6ff302d0 100644
--- a/qemu/target/i386/Makefile.objs
+++ b/qemu/target/i386/Makefile.objs
@@ -1,5 +1,5 @@
-obj-y += translate.o helper.o cpu.o bpt_helper.o
-obj-y += excp_helper.o fpu_helper.o cc_helper.o int_helper.o svm_helper.o
-obj-y += smm_helper.o misc_helper.o mem_helper.o seg_helper.o mpx_helper.o
+obj-$(CONFIG_TCG) += translate.o helper.o cpu.o bpt_helper.o
+obj-$(CONFIG_TCG) += excp_helper.o fpu_helper.o cc_helper.o int_helper.o svm_helper.o
+obj-$(CONFIG_TCG) += smm_helper.o misc_helper.o mem_helper.o seg_helper.o mpx_helper.o
 obj-$(CONFIG_SOFTMMU) += arch_memory_mapping.o
 obj-y += unicorn.o