From patchwork Thu Feb 27 12:39:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 1245816 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=fail (p=none dis=none) header.from=gmail.com 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=rAyiujDl; 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 48Ssh02Ck8z9sSN for ; Thu, 27 Feb 2020 23:39:58 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id BC28922DE3; Thu, 27 Feb 2020 12:39:52 +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 G58vBJ6DA4tj; Thu, 27 Feb 2020 12:39:50 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 53F0A22128; Thu, 27 Feb 2020 12:39:50 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id C026C1BF378 for ; Thu, 27 Feb 2020 12:39:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id BCA1722128 for ; Thu, 27 Feb 2020 12:39:49 +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 PeA+5xzLCiVF for ; Thu, 27 Feb 2020 12:39:48 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) by silver.osuosl.org (Postfix) with ESMTPS id 728BB203F7 for ; Thu, 27 Feb 2020 12:39:48 +0000 (UTC) Received: by mail-qk1-f170.google.com with SMTP id o28so2884370qkj.9 for ; Thu, 27 Feb 2020 04:39:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=YGDnLK+eRzsP32td9HOD1N3HMWw5o1hM0XCjZr1hNdk=; b=rAyiujDl/tWef/lS8xqtgcO4lewNF9Sgj+Wr2JF0jzywsK9N+iiMxQ1vBNX/+6RcBQ EMyIh9ra5vWEtmnJKKnioKVZguqn1Uu1BzqYWDq9Yx4vPNIVKn2n4vng46MQSABVWcoV GOShu59eWF39I82+oeC09UAwAp8Kdzlcd03yGsl1L6iwlCcDj2C38H+RYS/mGKQj08K/ L3gu2Y4Ywod4i9MG8VIaOWZPRzP/EGx2nexsYIqFQszjylTeXojjD/0Nx3Q/HDEp7xyY WpTNcUpVsFwx6KXyejmoq3qOf/Cx4mjhxdx6G1e9zOWTfmf9ytnTBVRuUAXLR4tTwXut KmVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=YGDnLK+eRzsP32td9HOD1N3HMWw5o1hM0XCjZr1hNdk=; b=tF8rck4+/yLzdDQKqeAW2ar4dtrR2T3cr9+j92f+jMWi95wuMu/tumZlu+qKrr5QoW UTYmVNRM3f6xQQmRo4RDBtL74ZZ6JL657g01IPx14wdqdrWLcRe+4PQZAh96W4gcU9pU 19MkOINNHwGyGAB/OcCjzA6TE67pKBXkC36scDXr5r0oersJ7F2W+x5hS97RuoCHY8Cg jMWABGSFYITd3elF2Z77kfHI8rkVM0kK0CTSGlv330eRC0kXITg55VbPQ8DKH/YOwYUO xGpOEBu7j1f8clVzos77kXDLFQPe926fE1oHksCHSrW42gyrVIVY+g+HMOpVFT4bNV+d lIHA== X-Gm-Message-State: APjAAAUWuq/b94zb0ZzXBmk1EdpR1QEcatcDfNfgC2oWADWsX+MoqT+6 /Drw0qfthwvCO22/9GQAvYoIB9s0 X-Google-Smtp-Source: APXvYqychzw0Mdsg08Bkki6wiZsEa+naXJ42HnBCMdzcZVt6hG4gx6HTtNZPQCWnvPgAhSyZcjk2Tw== X-Received: by 2002:a37:b5c1:: with SMTP id e184mr5758907qkf.189.1582807187212; Thu, 27 Feb 2020 04:39:47 -0800 (PST) Received: from casantos.com (179.178.22.126.dynamic.adsl.gvt.net.br. [179.178.22.126]) by smtp.gmail.com with ESMTPSA id y190sm2960285qkb.130.2020.02.27.04.39.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2020 04:39:46 -0800 (PST) From: unixmania@gmail.com To: buildroot@buildroot.org Date: Thu, 27 Feb 2020 09:39:34 -0300 Message-Id: <20200227123938.13412-1-unixmania@gmail.com> X-Mailer: git-send-email 2.18.2 Subject: [Buildroot] [PATCH 0/4] adapt openrc "modules" script to busybox modprobe 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: Carlos Santos , Adam Duskett , =?utf-8?b?TWljaGHFgiDFgXlzemN6ZWs=?= MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Carlos Santos The busybox modprobe does not have a "--first-time" option, "--verbose" is just "-v" and "--use-blacklist" is just "-b". Also the blacklist support is not selected in the default busybox configuration. So we need to patch the modules scripts accordingly. Patch 1 adds SED_QUIET, used by the KCONFIG_GET_OPT macro, in patch 2. Patch 2 adds a KCONFIG_GET_OPT macro. Given a config name and a file, it returns the config value, if set; otherwise returns an empty string. Patch 3 adapts the "modules" init script to busybox "modprobe". Patch 4 documents the use of BUSYBOX_BUILD_CONFIG in openrc.mk. Carlos Santos (4): Makefile: add SED_QUIET package/pkg-utils.mk: add KCONFIG_GET_OPT macro package/openrc: adapt "modules" init script to busybox "modprobe" package/busybox: document the use of BUSYBOX_BUILD_CONFIG in openrc.mk Makefile | 4 +++- package/busybox/busybox.mk | 2 ++ package/openrc/openrc.mk | 27 ++++++++++++++++++++++++--- package/pkg-utils.mk | 4 ++++ 4 files changed, 33 insertions(+), 4 deletions(-)