From patchwork Wed Sep 25 14:56:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1167452 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="LjmJp/fC"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46djdr4wgQz9sNx for ; Thu, 26 Sep 2019 02:08:16 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 62293C220FC; Wed, 25 Sep 2019 16:07:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 11894C221E2; Wed, 25 Sep 2019 15:04:01 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id EE0E1C221C8; Wed, 25 Sep 2019 15:03:55 +0000 (UTC) Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) by lists.denx.de (Postfix) with ESMTPS id 4009CC220AA for ; Wed, 25 Sep 2019 14:58:54 +0000 (UTC) Received: by mail-io1-f42.google.com with SMTP id c6so14568281ioo.13 for ; Wed, 25 Sep 2019 07:58:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ty+SlMYlXsVE3rdGpZVQbb1SurgDDynEySNLSB5YQSU=; b=LjmJp/fCacdE/KVohzjgvWb2fMm2YI87RZO4Ypg0jj6vux6osxc2LEr0qiK6JXsu30 J8Ve2WcgiaOuv5TcFwfot0iNcOjsQR0kKreaCrf0UdyYZSPF0p1z9IWXdzyWt8rNxGdt Zs3VsQU2cLv5BzerdmxabH256W/qratxZDnw0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ty+SlMYlXsVE3rdGpZVQbb1SurgDDynEySNLSB5YQSU=; b=H5/US/8Tkzng0/MKy0t+fMYIchV4aM/DQXch4QTATRO+EsG8sRp6JaaKq9BoWYdKfX YIL421AcfUtWc34gLof8sdmXfMi05ge6gQKA6vwAjCt8vJ3KV2Fj6A9bb35Sz67v5ZZP Arz31ZrbzEvDcUNDjR8N+uMP89HqM54voDYnzi6LZJncDXdbQcD+jLGt1S9REizbZloH jnmKYAnNPdP5sW+s99z/Gas1t5hfNo1m7zjwiBrYYVUzj+hp/eidWUtsX/BuLOeTywAq HqiBBoiVwn9GcThQQN5tjjjRJbZ6AVsjy1Pq3IohJXh8bZRHDgs92Vsjzq+w4G8d9bs+ 3kKg== X-Gm-Message-State: APjAAAXVDyN+hkbGVouUpjgYIg5yzqiV8f3STa/+qOzTbWFh4EUoyX/j Vz3v9q3F1i6oaur+ppOaVw/jhz+Pydo= X-Google-Smtp-Source: APXvYqxPeMqzKtzYoedG2VDT/TZlcis3yTW7XA3sqxT1JrBUFeg5NJEySTQDSo+7tVzPD5yBRPqx0Q== X-Received: by 2002:a05:6638:73d:: with SMTP id j29mr5878362jad.21.1569423532958; Wed, 25 Sep 2019 07:58:52 -0700 (PDT) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id d9sm4254964ioq.9.2019.09.25.07.58.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 07:58:52 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Wed, 25 Sep 2019 08:56:48 -0600 Message-Id: <20190925145750.200592-65-sjg@chromium.org> X-Mailer: git-send-email 2.23.0.444.g18eeb5a265-goog In-Reply-To: <20190925145750.200592-1-sjg@chromium.org> References: <20190925145750.200592-1-sjg@chromium.org> MIME-Version: 1.0 Subject: [U-Boot] [PATCH 064/126] x86: cpu: Don't include the cpu driver in TPL X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" We don't need this driver very early in boot and it adds code size. Drop it. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- arch/x86/cpu/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/x86/cpu/Makefile b/arch/x86/cpu/Makefile index 3f1f62da2b1..6296b55ff8a 100644 --- a/arch/x86/cpu/Makefile +++ b/arch/x86/cpu/Makefile @@ -26,7 +26,10 @@ endif extra-$(CONFIG_$(SPL_TPL_)X86_16BIT_INIT) += resetvec.o start16.o -obj-y += cpu.o cpu_x86.o +obj-y += cpu.o +ifndef CONFIG_TPL_BUILD +obj-y += cpu_x86.o +endif ifndef CONFIG_$(SPL_)X86_64 AFLAGS_REMOVE_call32.o := -mregparm=3 \