{"id":806645,"url":"http://patchwork.ozlabs.org/api/1.0/patches/806645/?format=json","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.0/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<1503935588-28721-1-git-send-email-agust@denx.de>","date":"2017-08-28T15:53:08","name":"[U-Boot] lib: disable hashtable and display options code in SPL","commit_ref":null,"pull_url":null,"state":"rejected","archived":false,"hash":"4a9dcc096dc55b29b162a996937b1e8edeef9eb0","submitter":{"id":872,"url":"http://patchwork.ozlabs.org/api/1.0/people/872/?format=json","name":"Anatolij Gustschin","email":"agust@denx.de"},"delegate":{"id":3651,"url":"http://patchwork.ozlabs.org/api/1.0/users/3651/?format=json","username":"trini","first_name":"Tom","last_name":"Rini","email":"trini@ti.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/1503935588-28721-1-git-send-email-agust@denx.de/mbox/","series":[{"id":205,"url":"http://patchwork.ozlabs.org/api/1.0/series/205/?format=json","date":"2017-08-28T15:53:08","name":"[U-Boot] lib: disable hashtable and display options code in SPL","version":1,"mbox":"http://patchwork.ozlabs.org/series/205/mbox/"}],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/806645/checks/","tags":{},"headers":{"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;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xgxBB2mmtz9rvt\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 29 Aug 2017 01:53:06 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 2DB32C2251B; Mon, 28 Aug 2017 15:53:02 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 2817DC224FD;\n\tMon, 28 Aug 2017 15:53:00 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 183EFC224FD; Mon, 28 Aug 2017 15:52:58 +0000 (UTC)","from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9])\n\tby lists.denx.de (Postfix) with ESMTPS id C7E6DC224BD\n\tfor <u-boot@lists.denx.de>; Mon, 28 Aug 2017 15:52:57 +0000 (UTC)","from frontend01.mail.m-online.net (unknown [192.168.8.182])\n\tby mail-out.m-online.net (Postfix) with ESMTP id 3xgxB14cDlz1rDm5\n\tfor <u-boot@lists.denx.de>; Mon, 28 Aug 2017 17:52:57 +0200 (CEST)","from localhost (dynscan1.mnet-online.de [192.168.6.70])\n\tby mail.m-online.net (Postfix) with ESMTP id 3xgxB14Mf0z3jgY4\n\tfor <u-boot@lists.denx.de>; Mon, 28 Aug 2017 17:52:57 +0200 (CEST)","from mail.mnet-online.de ([192.168.8.182])\n\tby localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new,\n\tport 10024) with ESMTP id QFnBDGECgl_5 for <u-boot@lists.denx.de>;\n\tMon, 28 Aug 2017 17:52:55 +0200 (CEST)","from crub.agik.hopto.org (p4FCB44C5.dip0.t-ipconnect.de\n\t[79.203.68.197]) (using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mail.mnet-online.de (Postfix) with ESMTPSA\n\tfor <u-boot@lists.denx.de>; Mon, 28 Aug 2017 17:52:55 +0200 (CEST)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,\n\tRCVD_IN_MSPIKE_H3,\n\tRCVD_IN_MSPIKE_WL autolearn=unavailable autolearn_force=no\n\tversion=3.4.0","X-Virus-Scanned":"amavisd-new at mnet-online.de","X-Auth-Info":"WbBPtD1VBZUk2RvgOF8xDvZUAov/QtKlrikSJ1N71DA=","From":"Anatolij Gustschin <agust@denx.de>","To":"u-boot@lists.denx.de","Date":"Mon, 28 Aug 2017 17:53:08 +0200","Message-Id":"<1503935588-28721-1-git-send-email-agust@denx.de>","X-Mailer":"git-send-email 2.7.4","Subject":"[U-Boot] [PATCH] lib: disable hashtable and display options code in\n\tSPL","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.18","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<http://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>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"},"content":"We do not need hashtable code in SPL when building\nwithout environment support. Also display options\ncode is not used in current SPL configuration and\ncan be disabled.\n\nSigned-off-by: Anatolij Gustschin <agust@denx.de>\n---\n lib/Makefile | 7 ++++++-\n 1 file changed, 6 insertions(+), 1 deletion(-)","diff":"diff --git a/lib/Makefile b/lib/Makefile\nindex 2eef1eb..1ffa455 100644\n--- a/lib/Makefile\n+++ b/lib/Makefile\n@@ -43,6 +43,7 @@ obj-$(CONFIG_TPM) += tpm.o\n obj-$(CONFIG_RBTREE)\t+= rbtree.o\n obj-$(CONFIG_BITREVERSE) += bitrev.o\n obj-y += list_sort.o\n+obj-y += hashtable.o\n endif\n \n obj-$(CONFIG_RSA) += rsa/\n@@ -61,10 +62,14 @@ obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o\n obj-$(CONFIG_SPL_NET_SUPPORT) += net_utils.o\n endif\n obj-$(CONFIG_ADDR_MAP) += addr_map.o\n-obj-y += hashtable.o\n obj-y += errno.o\n+ifdef CONFIG_SPL_BUILD\n+obj-$(CONFIG_SPL_ENV_SUPPORT) += hashtable.o\n+endif\n+ifndef CONFIG_SPL_BUILD\n obj-y += display_options.o\n CFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='\"$(BUILD_TAG)\"')\n+endif\n obj-$(CONFIG_BCH) += bch.o\n obj-y += crc32.o\n obj-y += ctype.o\n","prefixes":["U-Boot"]}