From patchwork Thu Jul 20 17:02:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Jacques Hiblot X-Patchwork-Id: 791721 X-Patchwork-Delegate: trini@ti.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; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="HDXwMqqJ"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3xD0g351HWz9s5L for ; Fri, 21 Jul 2017 03:06:39 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 6413EC21D99; Thu, 20 Jul 2017 17:04:05 +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_DNSWL_NONE, 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 48BC4C21D94; Thu, 20 Jul 2017 17:03:12 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 01746C21D8E; Thu, 20 Jul 2017 17:03:01 +0000 (UTC) Received: from fllnx210.ext.ti.com (fllnx210.ext.ti.com [198.47.19.17]) by lists.denx.de (Postfix) with ESMTPS id BCDBAC21D80 for ; Thu, 20 Jul 2017 17:02:57 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id v6KH2tAV031808; Thu, 20 Jul 2017 12:02:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1500570175; bh=miE1dL9FECKNoTehZeal/x/TRI07y4qQaYVsM8kqHRs=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=HDXwMqqJwL/Ri7S6KeVh4C8oX3k1PlbVJerUBamEI1cO1qS4NXCBtXuaHDpu54e3R u1EdMjSKiqnyNfd3q4N39PG5vGbauAkp4jLuR/q4mBZq0mdVjubxLU8L64Y0aeR0Qp p+BMqoO7IbT4Z3tnfIF18NOnU9eghTiGlUjyY56Y= Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6KH2tuS003399; Thu, 20 Jul 2017 12:02:55 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.294.0; Thu, 20 Jul 2017 12:02:55 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6KH2sf5004738; Thu, 20 Jul 2017 12:02:55 -0500 From: Jean-Jacques Hiblot To: , , , Date: Thu, 20 Jul 2017 19:02:34 +0200 Message-ID: <1500570157-24042-8-git-send-email-jjhiblot@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1500570157-24042-1-git-send-email-jjhiblot@ti.com> References: <1500570157-24042-1-git-send-email-jjhiblot@ti.com> MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 7/9] lib: allow building lzo and gunzip for the SPL 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" Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini --- lib/Kconfig | 11 +++++++++++ lib/Makefile | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/lib/Kconfig b/lib/Kconfig index 09670f0..434bf23 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -158,6 +158,17 @@ config LZMA config LZO bool + +config SPL_LZO + bool + +config SPL_GZIP + bool + select SPL_ZLIB + +config SPL_ZLIB + bool + endmenu config ERRNO_STR diff --git a/lib/Makefile b/lib/Makefile index eacc7d6..21cd4e2 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -4,14 +4,15 @@ # # SPDX-License-Identifier: GPL-2.0+ # +obj-$(CONFIG_$(SPL_)ZLIB) += zlib/ +obj-$(CONFIG_$(SPL_)GZIP) += gunzip.o +obj-$(CONFIG_$(SPL_)LZO) += lzo/ ifndef CONFIG_SPL_BUILD obj-$(CONFIG_EFI) += efi/ obj-$(CONFIG_EFI_LOADER) += efi_loader/ obj-$(CONFIG_LZMA) += lzma/ -obj-$(CONFIG_LZO) += lzo/ -obj-$(CONFIG_ZLIB) += zlib/ obj-$(CONFIG_BZIP2) += bzip2/ obj-$(CONFIG_TIZEN) += tizen/ obj-$(CONFIG_FIT) += libfdt/ @@ -26,7 +27,6 @@ obj-y += crc16.o obj-$(CONFIG_ERRNO_STR) += errno_str.o obj-$(CONFIG_FIT) += fdtdec_common.o obj-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o -obj-$(CONFIG_GZIP) += gunzip.o obj-$(CONFIG_GZIP_COMPRESSED) += gzip.o obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += smbios.o obj-y += initcall.o