From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C7E4BC636D6 for ; Wed, 22 Feb 2023 16:44:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 46B0F85B82; Wed, 22 Feb 2023 17:37:21 +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=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="MmpfxiqL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A7A5485AE6; Wed, 22 Feb 2023 17:35:59 +0100 (CET) Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) (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 0FA5385B1E for ; Wed, 22 Feb 2023 17:35:00 +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-xd32.google.com with SMTP id d11so3371142iow.0 for ; Wed, 22 Feb 2023 08:34:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MZ/zg2XaOvUwod976FXZOnznfO4lVsb5LcHyQwn3dP0=; b=MmpfxiqLu1b/Lxb807jcSQWWMXLlmLl6sjqpBnZ5radqCA3KlycC+QUqbQdHrkmko4 QSNSOl8Tiz7NsxLvX8tKasScawWDMIFPqXorH7rfyqMKTjOZsuU1MduOGnsVb6TL1924 3wKa+ZRI+8g8Ro68WQvlkGrALTNCTFOIfEtUE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MZ/zg2XaOvUwod976FXZOnznfO4lVsb5LcHyQwn3dP0=; b=McCZHusVThJLv13GI/C1uM4eS0+JfwTV8AIxzW/Uyshi8gWOp5c2693Q19FDsdlEmQ Nld2mktGRcsHHywTEuSHkF5ZBjBzQkkBYjVHbFNw76tRDyz1jP+yE9CuZChAk2mdkGu8 HeIkKebnZUBLNhaMuvjGwxb6jr+M2RBt71ssxU9lMqMKX761tZT+eJqIhjPyxP0aspr7 LJ51Mp44fTn5iNxbhrWo/kUUlfYtkX9wYOXzOrH4jbGvBVps4DV6LOjtlL/S/yIQn9Yz 1QOLMPkl129qv9YnMEHMYz0xoafsP36lHx+q9Lmv1SKru6Puhh9B6SvzvXKm8xnjAAad yBWA== X-Gm-Message-State: AO0yUKUcdGcfC5sdtwX8yjqVoAN0ter8yC/MEdG6JE3K4Q4IYkCh0W+q f/iSGLuWIrhzm3dyGyjN2ceVYIxUgoFc8hZe X-Google-Smtp-Source: AK7set8lo/TBvdlJXEXrbi99X0XCk4N7Sjr5IAkkUToi7kRrYrLx3l+bGvEl/sKSi6KiIK9XdQV3rQ== X-Received: by 2002:a6b:f012:0:b0:734:e4df:cd04 with SMTP id w18-20020a6bf012000000b00734e4dfcd04mr1144968ioc.12.1677083699496; Wed, 22 Feb 2023 08:34:59 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id z26-20020a056602005a00b00716eb44b97esm2164541ioz.27.2023.02.22.08.34.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 08:34:59 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Bin Meng Subject: [PATCH v5 21/44] x86: Use string functions for all 32-bit builds Date: Wed, 22 Feb 2023 09:34:02 -0700 Message-Id: <20230222163425.2043934-22-sjg@chromium.org> X-Mailer: git-send-email 2.39.2.637.g21b0678d19-goog In-Reply-To: <20230222163425.2043934-1-sjg@chromium.org> References: <20230222163425.2043934-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.6 at phobos.denx.de X-Virus-Status: Clean At present these are not included in SPL. They do add to code size but are a bit faster, so adjust the setting to add them. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/include/asm/string.h | 2 +- arch/x86/lib/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/string.h b/arch/x86/include/asm/string.h index c15b264a5c0..0254a022160 100644 --- a/arch/x86/include/asm/string.h +++ b/arch/x86/include/asm/string.h @@ -14,7 +14,7 @@ extern char *strrchr(const char *s, int c); #undef __HAVE_ARCH_STRCHR extern char *strchr(const char *s, int c); -#ifdef CONFIG_X86_64 +#if CONFIG_IS_ENABLED(X86_64) #undef __HAVE_ARCH_MEMCPY extern void *memcpy(void *, const void *, __kernel_size_t); diff --git a/arch/x86/lib/Makefile b/arch/x86/lib/Makefile index a6f22441474..ea7ff2bcf38 100644 --- a/arch/x86/lib/Makefile +++ b/arch/x86/lib/Makefile @@ -4,7 +4,7 @@ # Wolfgang Denk, DENX Software Engineering, wd@denx.de. obj-y += bdinfo.o -ifndef CONFIG_X86_64 +ifndef CONFIG_$(SPL_TPL_)X86_64 ifndef CONFIG_TPL_BUILD obj-y += bios.o obj-y += bios_asm.o -- 2.39.2.637.g21b0678d19-goog