From patchwork Thu Feb 27 20:08:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 1246076 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=SmE4VPOs; 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 48T3dY1gQpz9sPK for ; Fri, 28 Feb 2020 07:08:31 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id B112C230BD; Thu, 27 Feb 2020 20:08:29 +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 p78VPoW0Fxt6; Thu, 27 Feb 2020 20:08:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 81A7F22DB0; Thu, 27 Feb 2020 20:08:28 +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 B3A361BF3AF for ; Thu, 27 Feb 2020 20:08:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id AF27422DB0 for ; Thu, 27 Feb 2020 20:08:26 +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 3H6880VFdne8 for ; Thu, 27 Feb 2020 20:08:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qv1-f42.google.com (mail-qv1-f42.google.com [209.85.219.42]) by silver.osuosl.org (Postfix) with ESMTPS id E479A20408 for ; Thu, 27 Feb 2020 20:08:25 +0000 (UTC) Received: by mail-qv1-f42.google.com with SMTP id s15so26367qvn.8 for ; Thu, 27 Feb 2020 12:08:25 -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=HGB/DOnPa7EPWcfCJNg7hlc2A1wLwINldTfLOwixyF8=; b=SmE4VPOsvB2odiqWULG2Zx0Y45IW4zwOL9Hd35A9BEq9XxPQ/bq2ZtczTYs0iJuHr6 dvhLV8w0dRCdPC+gP4+UH/uTQejnrhrkbNyG9kPnzyhX8bSTAeDO9Wv0Vc6/Ik8nZbvk RwRsilN8woGybmBpiYlVFQNkF3sxBelugRxFT1vHVd5xDrh1jU4b052mtXcWsDqMBg1i 23gcMNflpCfzwZ0SnimuycI5LnCZw2Ad7sBxMQf5AslMeKa6xLalwoMRAKdPH/QeUkPq yUIem77D22p7SYjFPB2T00mHGkgF5RDnQ9AR0uqtZDaAtKU2IEEGkQrbrVvkwAsv989i YWtw== 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=HGB/DOnPa7EPWcfCJNg7hlc2A1wLwINldTfLOwixyF8=; b=L9FhzJ1wKDw5TM46LtYVThGTXsJHHhzP3JP6Dw4Dt1E3/DYaCsxblDUkRJ9751OVj6 CJxnDGymbeTsPIc9JdiUVTHkzdlLxyagNIgFhYKM58i4B3nT0/B2cHEn/dNHO9mgpo1T bxhy/ezM5RdMzfyOVCmiBAdq7C//Qtz0RRPm2pjrmjzybnOIxgTOOe9ztKNMkCjqATjg +03BBLytMxYxnChJ4WX7auGpHNpCznAmciUybVDR7XTUDFI6vFninzaorEPFNvA9nidd Zn2fDB28MKnluTd3ONLPIc0lTqCgpnk8/ZC5FDw9ZBwVPSQpbpgfLPZYA5UBjRgB+QfT JVLA== X-Gm-Message-State: APjAAAU0rX0QQ+8OaCWea4AJKFW3TWS/RKnYWoeTkIUzDDqoyiCshHl8 iNKuIV2ULW3AnSX9g+rSbNxOIgCa8R4= X-Google-Smtp-Source: APXvYqxJxIoXE+wZhKaUTN9ReQ+w9pCIsBu0PQ9jU4/sPw3zJc0TMC53/2I5zhynC0wL2kMYhqPgPQ== X-Received: by 2002:ad4:4a6e:: with SMTP id cn14mr651937qvb.21.1582834104649; Thu, 27 Feb 2020 12:08:24 -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 z4sm594599qtm.69.2020.02.27.12.08.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2020 12:08:24 -0800 (PST) From: unixmania@gmail.com To: buildroot@buildroot.org Date: Thu, 27 Feb 2020 17:08:11 -0300 Message-Id: <20200227200815.26613-1-unixmania@gmail.com> X-Mailer: git-send-email 2.18.2 Subject: [Buildroot] [PATCH v2 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: Eric Le Bihan , Bernd Kuhls , Carlos Santos 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.mk variables 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.mk: document the use of variables in openrc.mk Makefile | 4 +++- package/busybox/busybox.mk | 4 ++++ package/openrc/openrc.mk | 28 +++++++++++++++++++++++++--- package/pkg-utils.mk | 4 ++++ 4 files changed, 36 insertions(+), 4 deletions(-)