Message ID | 20210114032957.483086-16-sjg@chromium.org |
---|---|
State | Accepted |
Commit | ec5f101a3794396fed93e480ebcf8d389041b30e |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=jSMWUm4N; 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 4DGVJl5Bwfz9sVF for <incoming@patchwork.ozlabs.org>; Thu, 14 Jan 2021 14:33:27 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 65FDE82767; Thu, 14 Jan 2021 04:31:07 +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="jSMWUm4N"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 146F982721; Thu, 14 Jan 2021 04:30:29 +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=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) (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 C1D4F826E9 for <u-boot@lists.denx.de>; Thu, 14 Jan 2021 04:30: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-xd33.google.com with SMTP id d13so5389411ioy.4 for <u-boot@lists.denx.de>; Wed, 13 Jan 2021 19:30: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=xwvII+ok2qohrUpKbcdhC47JWBbyrKTNMUzWxLeslpk=; b=jSMWUm4NobUoEvhr8dvEt7gY/szrtdIObJa2uLvf9DxStE+xRcrN/mNJnHvje+noIC 1/gTqX82o9hjlFwF+RbuxSiGvfEyqcIijazws5Iu/1tBZxQvw3wAS+mYK9+b47t3Fg5s Fkz7ySYgKT3qW3k3OkU+/3dXO2kyRe7rnR6t8= 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=xwvII+ok2qohrUpKbcdhC47JWBbyrKTNMUzWxLeslpk=; b=Cdl/E1StEbh/+rOIveJ4yIhhcyhBfhpb0e3Lx2ZXYQBDF5Vgz2b+Y5Vu1eOxnlZK53 aO4pcw4NEtGCXBZaiAhQPAhHfvT8RczuZvpJGfRC/mY5TmRnRnPVH8es46ZMrplAOmWu m7WJKIAw2HYwigX09htRjFhRKU9Eyau/+Dhx1VzlY/rFIDf3frJ88oaW0Axt+pPrU2kj V3SQnBCcehG7idO3CW1C+Pn9X36EJhrfDK0Uaj9eidAjyI06ESK7jn3Eu3+eMxENE9Mn +EA/zmtaZvedebTZkJtiBld7eX3fsPG7AcYzifK8kNI/zZp/7E1J0aOs+d4MMdjnZtRx B/5w== X-Gm-Message-State: AOAM532K8XXoH4I1aSMxS0bbEN3d6U4GMGQ7LP7u3djN3WoOIdGEmE2E smIQvqq9/8b0KIJjziHmsvPPskc7wkll4FtX X-Google-Smtp-Source: ABdhPJzdg/qedDWTlv1T3UwRguQX82ptM97NIeWJXdXTr6cdhg8z1KEg2grG/WTQqkgq+DBgZmfAhQ== X-Received: by 2002:a05:6602:2dcd:: with SMTP id l13mr3957546iow.40.1610595018307; Wed, 13 Jan 2021 19:30:18 -0800 (PST) Received: from localhost.localdomain (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id 12sm1930547ioz.41.2021.01.13.19.30.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 19:30:17 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Simon Glass <sjg@chromium.org>, Andrii Anisov <andrii_anisov@epam.com>, Bin Meng <bmeng.cn@gmail.com>, Christian Gmeiner <christian.gmeiner@gmail.com>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Keerthy <j-keerthy@ti.com>, Philippe Reynes <philippe.reynes@softathome.com>, Pragnesh Patel <pragnesh.patel@sifive.com>, Sean Anderson <seanga2@gmail.com>, Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>, Weijie Gao <weijie.gao@mediatek.com> Subject: [PATCH 15/17] crc32: Exclude crc32 from TPL Date: Wed, 13 Jan 2021 20:29:55 -0700 Message-Id: <20210114032957.483086-16-sjg@chromium.org> X-Mailer: git-send-email 2.30.0.284.gd98b1dd5eaa7-goog In-Reply-To: <20210114032957.483086-1-sjg@chromium.org> References: <20210114032957.483086-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
Various minor clean-ups and improvements
|
expand
|
On Wed, Jan 13, 2021 at 08:29:55PM -0700, Simon Glass wrote: > Unfortunately the toolchain often brings in the crc32 table even if the > function is not actually used. For now, exclude it from the TPL build, > which is very sensitive to size. > > Signed-off-by: Simon Glass <sjg@chromium.org> Applied to u-boot/master, thanks!
diff --git a/lib/Makefile b/lib/Makefile index 851a80ef3bf..edc1c3dd4f9 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -92,7 +92,9 @@ obj-y += display_options.o CFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='"$(BUILD_TAG)"') obj-$(CONFIG_BCH) += bch.o obj-$(CONFIG_MMC_SPI) += crc7.o +#ifndef CONFIG_TPL_BUILD obj-y += crc32.o +#endif obj-$(CONFIG_CRC32C) += crc32c.o obj-y += ctype.o obj-y += div64.o
Unfortunately the toolchain often brings in the crc32 table even if the function is not actually used. For now, exclude it from the TPL build, which is very sensitive to size. Signed-off-by: Simon Glass <sjg@chromium.org> --- lib/Makefile | 2 ++ 1 file changed, 2 insertions(+)