Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3204531ybh; Mon, 16 Mar 2020 18:10:15 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsby240Fpg+Qb8QoPsFqnAyz5zyqx76elJUAnMqyp4Dknw3hXORdkpOcomvuMV2pP6EEBn7 X-Received: by 2002:a05:6830:23a3:: with SMTP id m3mr1603995ots.265.1584407415049; Mon, 16 Mar 2020 18:10:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584407415; cv=none; d=google.com; s=arc-20160816; b=UzlsTCmUR/blNkIJr7Wo1rK7PAHfa3WC0KQOUUiqtLXq703pG4VgrO1ljm8MJ9grij GovHrm/GKB26Q60iTod1WiJJ6zermE6IP4x5ILS6SHMdQdT0gGi5Tf5zmusHQmBpYyyJ 2dnbRLESf+96XZkVxRrxxzW6vMi25rv1tUPr1KjBoZLrjcvpHYnM03bVpsEi32wKgYgc xHCgBAfr8ot3z5B/EJVeJB9wHzLGaZdxfCu2f3AIFpJDp/xY3tcrdlAho8UOBCSj0+QF YaVmuuVA+9LFQuZhr8givOqNURSSIsthsNamgMSqysg79j7h6HoMtfTUciEia5S7JSXJ fFgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=+VzaV5sFRtxKAoH7rppPTz7vYTx/ptvPFYNX1JZhr8I=; b=m9W94wZMVi1Kbas+yiRWaaxHHLTpFB7tXrLLhXQUCEoRX5hLXCCQASu7MbUXeATr88 6Lx5tNsjbCT0rvvrVE/OoH0aUr+GVHRtbrYhBO1Z6FZjtZi+8mktPhgzhTqriGpCmJyE L7MOauvhY63iF0aj0f1Dvr9l6FaKXrRXGqYLCOipJB/4tR7Mb1KyqT5V4hyor42whZ/3 dFoKelrTsOD3mqsov+pSy1dEpzQxGmaASM3Bxcv2Ezgz65L7N/H4VVZLwtoJyTMLmRFG lijdwbdNXjaqwQ/q4lKgYuCBqaogvPWi4hNknmJenEmC/YRVu1tcNtzgfio5N7mRb+Q9 mtLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=GiCnmEy7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y123si921949oia.141.2020.03.16.18.10.03; Mon, 16 Mar 2020 18:10:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=GiCnmEy7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733302AbgCQA6U (ORCPT + 99 others); Mon, 16 Mar 2020 20:58:20 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:63909 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733274AbgCQA6T (ORCPT ); Mon, 16 Mar 2020 20:58:19 -0400 Received: from mail-ua1-f54.google.com (mail-ua1-f54.google.com [209.85.222.54]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 02H0wA3G018076 for ; Tue, 17 Mar 2020 09:58:11 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 02H0wA3G018076 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1584406691; bh=+VzaV5sFRtxKAoH7rppPTz7vYTx/ptvPFYNX1JZhr8I=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=GiCnmEy7O3U4VXa+yfMjIQmZAPzU4/Ct1ZwiT6pnC+/5xY3EEiJ80n63iZBpCIYPp +L/hDvKxtVjfs3I6C6tuEEl0j9kWZuF7L6sqzO9A9YWhYw4aK3C6w6TWMzSY0noU/s Y00VJjswqHfczNpIyce/5eQ8ryhBk1+bl1B+WdFlm20ZlT65KEW8WEUfoPHlMEzP9W Hk0wfP714TUEi+SziukauXYljnwJBW5n/nt8EB2hVuQIxDUwqKkysXyNUm4/ylLN+q jWExfKOYHXwzZaI2MDns3toWx/a/EpdXxk9F7mPbgB4LafM3nJrbDckREk9kKMV7Cf 2AKV0kFsSokNA== X-Nifty-SrcIP: [209.85.222.54] Received: by mail-ua1-f54.google.com with SMTP id 9so6852935uav.12 for ; Mon, 16 Mar 2020 17:58:11 -0700 (PDT) X-Gm-Message-State: ANhLgQ0tG7Sol8QnWHXQVFThAKL6TeLZK3zkYeg5eQFbUN0+ma5m9a7H KBX6zLRhg5uXbn5ONDcZFC1/n3u4ovk3UvLfrvI= X-Received: by 2002:ab0:28d8:: with SMTP id g24mr1921244uaq.121.1584406689827; Mon, 16 Mar 2020 17:58:09 -0700 (PDT) MIME-Version: 1.0 References: <20200311102217.25170-1-Eugeniy.Paltsev@synopsys.com> In-Reply-To: From: Masahiro Yamada Date: Tue, 17 Mar 2020 09:57:33 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] initramfs: restore default compression behaviour To: Eugeniy Paltsev Cc: Linux Kernel Mailing List , arcml , Vineet Gupta , Alexey Brodkin Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 16, 2020 at 8:22 PM Eugeniy Paltsev wrote: > > Hi Masahiro, > > >From: Masahiro Yamada > >Sent: Wednesday, March 11, 2020 23:12 > >To: Eugeniy Paltsev > >Cc: Linux Kernel Mailing List; arcml; Vineet Gupta; Alexey Brodkin > >Subject: Re: [PATCH] initramfs: restore default compression behaviour > > > >Hi Eugeniy. > > > >On Wed, Mar 11, 2020 at 7:22 PM Eugeniy Paltsev > > wrote: > >> > >> Even though INITRAMFS_SOURCE kconfig option isn't set in most of > >> defconfigs it is used (set) extensively by various build systems. > >> Commit f26661e12765 ("initramfs: make initramfs compression choice > >> non-optional") has changed default compression mode. Previously we > >> compress initramfs using available compression algorithm. Now > >> we don't use any compression at all by default. > >> It significantly increases the image size in case of build system > >> chooses embedded initramfs. Initially I faced with this issue while > >> using buildroot. > >> > >> As of today it's not possible to set preferred compression mode > >> in target defconfig as this option depends on INITRAMFS_SOURCE > >> being set. > >> Modification of build systems doesn't look like good option in this > >> case as it requires to check against kernel version when setting > >> compression mode. The reason for this is that kconfig options > >> describing compression mode was renamed (in same patch series) > > > >Which commit? > > > >I do not remember the renaming of kconfig options > >with this regard. > > Ok, I've checked it again - looks like I was confused a bit by > "CONFIG_INITRAMFS_COMPRESSION" option > as in v5.5 kernel I have in ".config": > CONFIG_INITRAMFS_COMPRESSION=".gz" > > And for v5.6-rc1 I have in ".config": > CONFIG_INITRAMFS_COMPRESSION_GZIP=y > > But they are different options actually... Right. There is no prompt for CONFIG_INITRAMFS_COMPRESSION. So, users have no control of it. Because this is just a matter of the file extension, commit 65e00e04e5aea34 moved the logic to Makefile. -- Best Regards Masahiro Yamada