From patchwork Sat Dec 7 04:42:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1205384 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=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.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="ecIy8OXp"; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47VHFw6lcCz9sPL for ; Sat, 7 Dec 2019 15:55:32 +1100 (AEDT) Received: from phobos.denx.de (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E84AF81759; Sat, 7 Dec 2019 05:49:25 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="ecIy8OXp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8E75B81764; Sat, 7 Dec 2019 05:49:22 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B9BF881758 for ; Sat, 7 Dec 2019 05:49:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd42.google.com with SMTP id v18so9531501iol.2 for ; Fri, 06 Dec 2019 20:49:19 -0800 (PST) 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=1d4qMjh4b3PQVY1W4c9g8nE7RM8iiPlOTq53wbGCSDQ=; b=ecIy8OXp30GirRNdmW+ykxYpKpN5tQ4zNdPcrjSN9Jt3IJXhc34yq/5B4MX609axDT M3Bv+z1fYkvXXwoB8xo86r1Yd8UxY8103brfDATYWocK+aUXBCDAVXbSempIyLC8Y3Vi pMHB5XQY+F5OpNDumnQ1Fpz8c6PbsRw8jbBtI= 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=1d4qMjh4b3PQVY1W4c9g8nE7RM8iiPlOTq53wbGCSDQ=; b=NP/cUQ+WdXWYiulODW18Z+U3PVAdSqbwrPusTgv9MnC0v85n7xG9rxRs3+x/Gz2Pl3 n7XDpImPPbCCz4Wk8Uc1Mp9aFLPU7mSVVPhI6sVQ5ENbAxdIBuq5ikNDUrvjLIZX320I /wSMHRtizbPKivnMkfu9wvo0uUpcXyq2taj/74XVXIylQLv3dpGMXr3UQNOQVDCau4PN neQxDQpNLZg45WDzEJWeo1zQuB/2OVSbMhgrNIMly7ZAPFRdrlZ7dhvC7/UxjOWt+VLd IVa6uojW77eRZk4KUQtIwEXH9LTtcyGJlWysbWh3dFRn19NXCXsIOUDC5Q2SvopoQ6bo eXEA== X-Gm-Message-State: APjAAAW5Z5QtLNL4Xmwev+E/RE0TCLR5cKu0IVS0D55jsyueVv+F1G4N J1WPS02PF4mae4gozBYiYR7xp+MOK0g= X-Google-Smtp-Source: APXvYqxPn1L15bT96qacfFATlsz8umW9goMJ2j/Lt4YhvmBL6hM+B4QS2UDgveJcbyQKPEcEm1OlQA== X-Received: by 2002:a6b:f912:: with SMTP id j18mr13191615iog.75.1575694158540; Fri, 06 Dec 2019 20:49:18 -0800 (PST) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id o7sm4549410ilo.58.2019.12.06.20.49.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Dec 2019 20:49:18 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Subject: [PATCH v6 050/102] x86: Don't include the BIOS emulator in TPL Date: Fri, 6 Dec 2019 21:42:23 -0700 Message-Id: <20191206213936.v6.50.I4edd1852a00de16355037bf4a51b24a94831eb73@changeid> X-Mailer: git-send-email 2.24.0.393.g34dc348eaf-goog In-Reply-To: <20191207044315.51770-1-sjg@chromium.org> References: <20191207044315.51770-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 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" X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean We don't generally have enough space to run this, so don't build it into TPL. This helps reduce the size of TPL. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/x86/lib/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/lib/Makefile b/arch/x86/lib/Makefile index ca0ca1066b..5cd4587480 100644 --- a/arch/x86/lib/Makefile +++ b/arch/x86/lib/Makefile @@ -4,9 +4,11 @@ # Wolfgang Denk, DENX Software Engineering, wd@denx.de. ifndef CONFIG_X86_64 +ifndef CONFIG_TPL_BUILD obj-y += bios.o obj-y += bios_asm.o obj-y += bios_interrupts.o +endif obj-y += string.o endif ifndef CONFIG_SPL_BUILD