From patchwork Tue Sep 1 13:48:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 1355004 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=crapouillou.net Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=crapouillou.net header.i=@crapouillou.net header.a=rsa-sha256 header.s=mail header.b=maJn9KVc; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BgpMT71YBz9sTN for ; Tue, 1 Sep 2020 23:49:07 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id C0DFC86243; Tue, 1 Sep 2020 13:49:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K-H7aRTk4_o9; Tue, 1 Sep 2020 13:49:05 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2B27886256; Tue, 1 Sep 2020 13:49:05 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 275371BF5A4 for ; Tue, 1 Sep 2020 13:49:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 23C5286239 for ; Tue, 1 Sep 2020 13:49:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CBT8OkAYYdiR for ; Tue, 1 Sep 2020 13:49:03 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from crapouillou.net (crapouillou.net [89.234.176.41]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 4BFDA86234 for ; Tue, 1 Sep 2020 13:49:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1598968138; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=W+JYY2V8fEvKzMjWYmicRn/HHz3Ek0SeMm2ibc0NDoc=; b=maJn9KVcq5nL4GlMaiOtzEsM4tAnzWAEcMm6qisHyiYEJ9DBOyEQGNd3Piwdkx6g3pD+1m zLJ5Zh7IdmAAFoFftc4W+zFYfxfMv2QoBIuVcn1rO2KHrhT9R8YS8l2QBcXCEZoO9Yj/Fk xHxQPWSnEWdQIJHM9C4oupJtGzJUemg= From: Paul Cercueil To: buildroot@buildroot.org Date: Tue, 1 Sep 2020 15:48:49 +0200 Message-Id: <20200901134849.1139704-1-paul@crapouillou.net> MIME-Version: 1.0 Subject: [Buildroot] [PATCH] linux: add support for ZSTD compression X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paul Cercueil , od@zcrc.me Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Add support for creating self-extractible kernels compressed with ZSTD. Signed-off-by: Paul Cercueil --- linux/Config.in | 3 +++ linux/linux.mk | 3 +++ 2 files changed, 6 insertions(+) diff --git a/linux/Config.in b/linux/Config.in index 03840f7b27..2d00b33b8c 100644 --- a/linux/Config.in +++ b/linux/Config.in @@ -321,6 +321,9 @@ config BR2_LINUX_KERNEL_LZO config BR2_LINUX_KERNEL_XZ bool "xz compression" +config BR2_LINUX_KERNEL_ZSTD + bool "zstd compression" + endchoice config BR2_LINUX_KERNEL_IMAGE_TARGET_NAME diff --git a/linux/linux.mk b/linux/linux.mk index b90b032bb9..08964ad01a 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -98,12 +98,15 @@ else ifeq ($(BR2_LINUX_KERNEL_LZO),y) LINUX_DEPENDENCIES += host-lzop else ifeq ($(BR2_LINUX_KERNEL_XZ),y) LINUX_DEPENDENCIES += host-xz +else ifeq ($(BR2_LINUX_KERNEL_ZSTD),y) +LINUX_DEPENDENCIES += host-zstd endif LINUX_COMPRESSION_OPT_$(BR2_LINUX_KERNEL_GZIP) += CONFIG_KERNEL_GZIP LINUX_COMPRESSION_OPT_$(BR2_LINUX_KERNEL_LZ4) += CONFIG_KERNEL_LZ4 LINUX_COMPRESSION_OPT_$(BR2_LINUX_KERNEL_LZMA) += CONFIG_KERNEL_LZMA LINUX_COMPRESSION_OPT_$(BR2_LINUX_KERNEL_LZO) += CONFIG_KERNEL_LZO LINUX_COMPRESSION_OPT_$(BR2_LINUX_KERNEL_XZ) += CONFIG_KERNEL_XZ +LINUX_COMPRESSION_OPT_$(BR2_LINUX_KERNEL_ZSTD) += CONFIG_KERNEL_ZSTD ifeq ($(BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL),y) LINUX_DEPENDENCIES += host-openssl