From patchwork Sun May 3 13:09:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 1281958 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.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=free.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=UCiCO2Sf; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49FRDd33F3z9sSW for ; Sun, 3 May 2020 23:10:25 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id D18C322795; Sun, 3 May 2020 13:10:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id osRO+E4fVEpd; Sun, 3 May 2020 13:10:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 1F72D226F5; Sun, 3 May 2020 13:10:08 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 84F601BF414 for ; Sun, 3 May 2020 13:10:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 78CE98876A for ; Sun, 3 May 2020 13:10:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CKNaUbVOZbA7 for ; Sun, 3 May 2020 13:10:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by hemlock.osuosl.org (Postfix) with ESMTPS id 1980F88763 for ; Sun, 3 May 2020 13:10:04 +0000 (UTC) Received: by mail-wm1-f47.google.com with SMTP id h4so5287339wmb.4 for ; Sun, 03 May 2020 06:10:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EFIXVnt4vS26b5oSNQRq+C/O3cTFX2gQ1LSElFLqgIo=; b=UCiCO2SfeNGV0Pl5XQiJmYxy4wo19pWLIzK0PP4xkjqGB6ttg3on0oAq5DFtqw7WZP HL3UkJqLizABge6Ja3HUyquc8g3Hf7DQCx4oPqf7ILud6697aYkRu876wJ3emtv34Zb2 U31355/lKC+mxujcaTQ7TQwfdXOIa7pVftVjTO85GkshYQCbyQkSj9K7vaCKPfwMmBL7 r8vScWf1JU7iWTKBl/+mBp/M68l7iyUL5UkNEirnO6bzegwcRqFO7DA3ijrfvZaYwjdl 0zXa2JcmAykWHTJHrfpny+A8lco5kdlauKorBg7owZrB9AtNqBaXW230pQ/CMfVhLfGx 3I5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=EFIXVnt4vS26b5oSNQRq+C/O3cTFX2gQ1LSElFLqgIo=; b=cmK08ycXf5Oxx29w5cE1fl/5p3kfS/dPEwmcNPnc74Ow9zJH7gYCstKzmtQSDFj4B1 +Tr3E4T/WdQs/o+tVGf1oqrddzvJFG0soBOscNbKZV5RSPPCimNCQigi4lT0Se6cWUz2 l8+EiVK/08Ud4cF9SZMzE1qUUWyc+mphc6q9UOA+UhIZOyhrWVH9mS9MNFt5oc4z7IMc Hv3UGkwTUGQfZ6+68OvuEkVOKNQQCCv0Or8AV+XpRsqiiCaCkhDpRSBejNseGEbaPaoh 2kyjN+vVGmuDQz9JhLMILqdPmEGiAo26lQ9n6rAvhDXsApzbJC1RblKB96CZtcuJR7NW hR0w== X-Gm-Message-State: AGi0PuaDg1/nfgQqiVj4OC0uJtU3zHjkQr3qYASxVnBUjbxbcOmXJK9x XTlaepxQhvKJ2KiMfLPDwgrUuG5O X-Google-Smtp-Source: APiQypIvq1bjiCgJuaLpMVis3mq27MZ7dHavWRF8awgyQMY62XUpX7+c5GBFKyDNJungC95gz/zmJQ== X-Received: by 2002:a1c:4d17:: with SMTP id o23mr9217999wmh.120.1588511402234; Sun, 03 May 2020 06:10:02 -0700 (PDT) Received: from scaer.home ([2a01:cb19:8b51:cb00:2d8d:e954:ae3d:7f6a]) by smtp.gmail.com with ESMTPSA id u127sm9199919wme.8.2020.05.03.06.10.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 May 2020 06:10:01 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sun, 3 May 2020 15:09:59 +0200 Message-Id: <7067f36377f52c1a5022a9988be2ee7e70ce48ac.1588511382.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/3 v2] package/kmod: explicitly disable compression when not enabled 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: "Yann E. MORIN" Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Yann E. MORIN Cc: Yegor Yefremov Tested-by: Matt Weber Tested-by: Kris Bahnsen --- package/kmod/kmod.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/kmod/kmod.mk b/package/kmod/kmod.mk index e2dfea5c7b..cdbfc5a469 100644 --- a/package/kmod/kmod.mk +++ b/package/kmod/kmod.mk @@ -35,11 +35,15 @@ endif ifeq ($(BR2_PACKAGE_ZLIB),y) KMOD_DEPENDENCIES += zlib KMOD_CONF_OPTS += --with-zlib +else +KMOD_CONF_OPTS += --without-zlib endif ifeq ($(BR2_PACKAGE_XZ),y) KMOD_DEPENDENCIES += xz KMOD_CONF_OPTS += --with-xz +else +KMOD_CONF_OPTS += --without-xz endif ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),y) From patchwork Sun May 3 13:10:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 1281957 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=none (p=none dis=none) header.from=free.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=Wxxwvfvc; 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 49FRDZ6wYcz9sRf for ; Sun, 3 May 2020 23:10:22 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 32C7886FD5; Sun, 3 May 2020 13:10:20 +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 1WhgfAs1p6ZY; Sun, 3 May 2020 13:10:18 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id EDAF786E7F; Sun, 3 May 2020 13:10:17 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 8A9231BF951 for ; Sun, 3 May 2020 13:10:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 818A08773A for ; Sun, 3 May 2020 13:10:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UEUinIMQmm9j for ; Sun, 3 May 2020 13:10:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id B1FC48772C for ; Sun, 3 May 2020 13:10:04 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id o27so12299863wra.12 for ; Sun, 03 May 2020 06:10:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8htJbLm99OjFos2k6NloYYHD3Q88Gf3NLqfahezg5R0=; b=Wxxwvfvcso2Th0U13T03SVukLF4wpZOk5s9yD1BLiIgN6/ygMmaxPvVh6MG6B+RFDe 0WSilabFMuWZXK9AfVGYaPCfFAI2noPc8SFPBi2iHZvYBLA8xh2pKM81YTMh8INcpAgi jnjtbF1TMQM24at0sZGKC3pF/40f+NFxeAc6nQVCHne2+sVwZR3iRtnvvdiHj/J2ypqN 80IN2CbgEVtlxaIpHlHFV/HM7nzENqT0v+KCxYXxaJ97QI7DRoho/HGRivYbtd2Zoa2N ApeXBgRpMypNpw5tCMiwD0d8fe8rcI5BFNYS4sFtWIPnclKL88Jm/aBrhZLtnPOMeTVz KUlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=8htJbLm99OjFos2k6NloYYHD3Q88Gf3NLqfahezg5R0=; b=H5VIYyfaY8y4/rCIaxmTK1gVcClaaty6XcKD8Kx3fq89L8ZvsTAVxJsp3dURT/fJFh Hgfo4RJabSQZsXc0CAQkHWg5FNHpY6WVYI1KDJFfT16e5LoOYndXjPqI1RvPimzhOVfe 4OSHmRtZg3nLAJLjz2kgcKVIr7ZsyvkgOBnX8n0Jaj2FYnEqXUBPbChZYrD0ipDK9LIn H/6oBHEStBQih6mK6f3DJGUIsl5by4fsmsWLJJ0gZiEr4HNtRLvW+ASMInsr6MUX82Zv Is5J42qpEJRbxr3QpnNxMXk7BrAxPQvRozC2pgRUpYlzzV2W85j0PHcEkBbD3qz8Qjxb Jz2g== X-Gm-Message-State: AGi0Pua3HC8/Ol47nG1Tv1Fhs4gFhcwTstGvAEMxs2t6OOvQvXQU0+TC Lp2gMz8UV3yDXAOjSyQvM21tOahU X-Google-Smtp-Source: APiQypK8/1wf7VTBziXJKOpXXRA+CzqR94eht1ct7SfmHy5oKf3Cr/FJVrGKk+GewtqoK+y3TQ++MQ== X-Received: by 2002:a5d:6b86:: with SMTP id n6mr13719473wrx.113.1588511402974; Sun, 03 May 2020 06:10:02 -0700 (PDT) Received: from scaer.home ([2a01:cb19:8b51:cb00:2d8d:e954:ae3d:7f6a]) by smtp.gmail.com with ESMTPSA id u127sm9199919wme.8.2020.05.03.06.10.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 May 2020 06:10:02 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sun, 3 May 2020 15:10:00 +0200 Message-Id: <8975bac482a23ce136b832dfa569b37335dcefe8.1588511382.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/3 v2] package/kmod: add option for host variant 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: Lucian Buga , "Yann E. MORIN" Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Curently, host-kmod has no option to enable it, because only the kernel depends on it, and this is unconditional (because we can't know if modules will be enabled in the kernel config). But we're soon to add options to enable various features of kmod, so we'll need a place where to show those features. Signed-off-by: Yann E. MORIN Cc: Yegor Yefremov Cc: Lucian Buga Tested-by: Matt Weber --- linux/Config.in | 1 + package/Config.in.host | 1 + package/kmod/Config.in.host | 6 ++++++ 3 files changed, 8 insertions(+) create mode 100644 package/kmod/Config.in.host diff --git a/linux/Config.in b/linux/Config.in index d7373ab25a..231d5a5962 100644 --- a/linux/Config.in +++ b/linux/Config.in @@ -2,6 +2,7 @@ menu "Kernel" config BR2_LINUX_KERNEL bool "Linux Kernel" + select BR2_PACKAGE_HOST_KMOD # Unconditional, even if modules not enabled select BR2_PACKAGE_HOST_IMAGEMAGICK if BR2_LINUX_KERNEL_CUSTOM_LOGO_PATH != "" help Enable this option if you want to build a Linux kernel for diff --git a/package/Config.in.host b/package/Config.in.host index f1246c708f..140ffa7198 100644 --- a/package/Config.in.host +++ b/package/Config.in.host @@ -38,6 +38,7 @@ menu "Host utilities" source "package/imx-usb-loader/Config.in.host" source "package/jq/Config.in.host" source "package/jsmin/Config.in.host" + source "package/kmod/Config.in.host" source "package/libp11/Config.in.host" source "package/lld/Config.in.host" source "package/lpc3250loader/Config.in.host" diff --git a/package/kmod/Config.in.host b/package/kmod/Config.in.host new file mode 100644 index 0000000000..ea99a790f6 --- /dev/null +++ b/package/kmod/Config.in.host @@ -0,0 +1,6 @@ +config BR2_PACKAGE_HOST_KMOD + bool "host kmod" + help + kmod is a set of tools to handle common tasks with Linux + kernel modules like insert, remove, list, check properties, + resolve dependencies and aliases. From patchwork Sun May 3 13:10:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 1281959 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=none (p=none dis=none) header.from=free.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=nUhGKJJJ; 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 49FRDk14pGz9sRf for ; Sun, 3 May 2020 23:10:30 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 193C786E8F; Sun, 3 May 2020 13:10:26 +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 6GJOhWVMVBd5; Sun, 3 May 2020 13:10:20 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2E3BF86F66; Sun, 3 May 2020 13:10:19 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 6EEBB1BF414 for ; Sun, 3 May 2020 13:10:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 69F2A8876A for ; Sun, 3 May 2020 13:10:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tp3rDxY0JUrJ for ; Sun, 3 May 2020 13:10:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by hemlock.osuosl.org (Postfix) with ESMTPS id 94F7988763 for ; Sun, 3 May 2020 13:10:05 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id k12so5262880wmj.3 for ; Sun, 03 May 2020 06:10:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sYR8HYzPnNCfn4sttjk5k/xf1VAQ+49CPiwqa4lK1e4=; b=nUhGKJJJ1RyHza8qLw6SzLtU7K4NvlGKJ4LCX4FHYtG8t/VO12Q1+iVT/taIOJ/7wu vB9hpHkYa3/KTJzyHD/5cx3UOamAWjgSKNY3Ihn4+cZWjJ+Cupo4kxGVlL2W3OcexXwa +GWVW+qYs2+1h3tZosZGQaYEiqupkL85FFQQC//NajXsfN+m5f6BnXF8OxepYJKkl2ZJ NCIheXVIkWN9Oejs7HFlJm2y0uJlvARNpT42zlWh7nVmkRssJEQ5EmJ+XXSGWLUV7Hkb /qvozjTDbpeJ8SLSynEFpxKB4UW2yz1Ni8CBG94ufJq/iiSnLPmcSR+6HGmB/MvmEERV qCKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=sYR8HYzPnNCfn4sttjk5k/xf1VAQ+49CPiwqa4lK1e4=; b=oVd3tDvbV+LCvM+ADhWyfQ0co9jnipOS0/L71rMgXHzG4rROTMOSLBeWc0xBKlaGko YgDGbRsJFvTpgphG6DWY55Y0ecv0+WLZWlSHZqABa1D+zt0KDdHxveeOuoQWjHs5NwBN +V3qskzigIGQotTItfek4nZvwUkUAXqjZwUNwShyVfEk/lphUofptDdS8EK2TeyOECu0 1woqhtLiF5/npEu0srFiHvG5URMq3t/k6d9N9+hqi+1nc76BFdXnQXdXIM/zURK9lR/R M4+bH3CxPRcE7Q+2OMym5TpPzJ9x5oParrLebByy73gh5Ur6Gv6rVCZdWG/zrPhyUIAi vHeQ== X-Gm-Message-State: AGi0PuYW54Lc4WT0dM4sdcUxOF4oSa3LVx/zbjcVi9vU299l/w8W4mRw 6mVZyhP3oaaNKanvnPetQmVrFNjs X-Google-Smtp-Source: APiQypI8zRKaaTjprtSJMPNfy7Ae498yELFtOPRj0uAsEUZ0E4T13wjk6HGKkxu4jXpzsLRQrfvwtA== X-Received: by 2002:a7b:c4c9:: with SMTP id g9mr9244919wmk.171.1588511403801; Sun, 03 May 2020 06:10:03 -0700 (PDT) Received: from scaer.home ([2a01:cb19:8b51:cb00:2d8d:e954:ae3d:7f6a]) by smtp.gmail.com with ESMTPSA id u127sm9199919wme.8.2020.05.03.06.10.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 May 2020 06:10:03 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sun, 3 May 2020 15:10:01 +0200 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [Buildroot] [PATCH 3/3 v2] package/lmod: add compression support for the host variant 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: Lucian Buga , "Yann E. MORIN" , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The kernel may install compressed modules. At the end of the buid, we then run depmod, to generate modules.dep and a few assorted files, so that loadign modules works properly on the target (loading by alias, loading dependencies...) However, depmod needs support for compressed modules, or it would generate empty modules.dep et al. Systematically adding support for gz and xz, and the required deps, was deemed too much of a burden [0], so we add too options to enable either or both compression. [0] http://lists.busybox.net/pipermail/buildroot/2018-April/218410.html Yegor Yefremov Cc: Signed-off-by: Yann E. MORIN Cc: Thomas Petazzoni Cc: Lucian Buga Tested-by: Matt Weber --- Changes v1 -> v2: - make compression support optional (Thomas) --- package/kmod/Config.in.host | 10 ++++++++++ package/kmod/kmod.mk | 14 ++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/package/kmod/Config.in.host b/package/kmod/Config.in.host index ea99a790f6..810fac3156 100644 --- a/package/kmod/Config.in.host +++ b/package/kmod/Config.in.host @@ -4,3 +4,13 @@ config BR2_PACKAGE_HOST_KMOD kmod is a set of tools to handle common tasks with Linux kernel modules like insert, remove, list, check properties, resolve dependencies and aliases. + +if BR2_PACKAGE_HOST_KMOD + +config BR2_PACKAGE_HOST_KMOD_GZ + bool "support gzip-compresed modules" + +config BR2_PACKAGE_HOST_KMOD_XZ + bool "support xz-compresed modules" + +endif diff --git a/package/kmod/kmod.mk b/package/kmod/kmod.mk index cdbfc5a469..979c3e87e6 100644 --- a/package/kmod/kmod.mk +++ b/package/kmod/kmod.mk @@ -75,6 +75,20 @@ else KMOD_CONF_OPTS += --disable-tools endif +ifeq ($(BR2_PACKAGE_HOST_KMOD_GZ),y) +HOST_KMOD_DEPENDENCIES += host-zlib +HOST_KMOD_CONF_OPTS += --with-zlib +else +HOST_KMOD_CONF_OPTS += --without-zlib +endif + +ifeq ($(BR2_PACKAGE_HOST_KMOD_XZ),y) +HOST_KMOD_DEPENDENCIES += host-xz +HOST_KMOD_CONF_OPTS += --with-xz +else +HOST_KMOD_CONF_OPTS += --without-xz +endif + # We only install depmod, since that's the only tool used for the # host. define HOST_KMOD_INSTALL_TOOLS