From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6529810911033556992 X-Received: by 10.28.4.214 with SMTP id 205mr136531wme.0.1520340077468; Tue, 06 Mar 2018 04:41:17 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.223.157.140 with SMTP id p12ls5142866wre.2.gmail; Tue, 06 Mar 2018 04:41:16 -0800 (PST) X-Google-Smtp-Source: AG47ELuxtWXSG4aT1qpyQ7J+cHL15OGGC+Gi5a1ZKeNZhhJF6s9xGUoNMNhaI7ISt1HiPbKGEZzT X-Received: by 10.223.155.196 with SMTP id e4mr1704505wrc.2.1520340076973; Tue, 06 Mar 2018 04:41:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520340076; cv=none; d=google.com; s=arc-20160816; b=k4mRGTnP0lfZXrvwFG1xzdsGeYy5UkktTHnnX+8dHjS5g/taybQBvrsa3xjO90KRsc sgR/tvy+jRydUMLsrEFBxzKRue+GgXkVMEG63RlNKveaHFBprdT8H+iqILmKK4pBjn2E GAtvEDdsoTcckC8qxpVRwj0WmetqtqXfdwrJ8OcJ1RaIhAjvfuPh+fJ/f+jC/wi7YQdt cFJDwKpeo+rImjKmso9fjZ9Te2kpv350l1xIMiYDbHwUKZBz2SLo25sE/bXKdb/I15Dv YtydpGZ7i7GdGpWDjEnICJfBGu14Gm74GJp6X/AfsY55bXG0Q1ImnLnJIfXCh0iBMHWY ho0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=1iDJ7YO7axuh0LkdS3TgTQiH8HpRm8zr6pnMBNnGjwY=; b=OX/BBbABms93LaoPUsqwi+yW2eBSPFKclX+x4wJTz8mNLXDluj0ygd2dnwYW70PmHY 9BCfgidSY7D+rZTRpTg/sfOh0S+c7ZvSfXOWEL/ASqRUHM5G4vHQj74OEDdXkL+/FPZt Fs2EaTtu1WQBgFEJWFoyoaGX/VipKDIECfZjERCFci0fA7t1LZQ6m+xurHAl1xhwiomq fHg+xkwOKCx3BfQ4iZaFsO5PYYTxMitKduYLZHIZpWoQjn72C599Kb2adcEnhk+4ZcuB 8FYiIpl30AnnCXb6Bjl97viSuzkcHv39FdHeBRVI6LBg6yZDdV9yR44frAeyyxuVNA+J EU+Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id a138si314825wmd.0.2018.03.06.04.41.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Mar 2018 04:41:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from localhost.localdomain ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w26Cf2Qh013201 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 6 Mar 2018 13:41:09 +0100 From: Alexander Smirnov To: isar-users@googlegroups.com Cc: Alexander Smirnov Subject: [PATCH 1/4] kernel/module: Add AUTOLOAD option Date: Tue, 6 Mar 2018 15:40:52 +0300 Message-Id: <20180306124055.15990-2-asmirnov@ilbers.de> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20180306124055.15990-1-asmirnov@ilbers.de> References: <20180306124055.15990-1-asmirnov@ilbers.de> X-TUID: IpRUTFSGm4M/ Add possibility to set kernel module to be autoloaded. Also add run dependency from 'systemd' because this package owns the content of '/etc/modules-load.d'. Signed-off-by: Alexander Smirnov --- meta/recipes-kernel/linux-module/files/debian/control | 2 +- meta/recipes-kernel/linux-module/module.inc | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/meta/recipes-kernel/linux-module/files/debian/control b/meta/recipes-kernel/linux-module/files/debian/control index 707f857..0eae9a4 100644 --- a/meta/recipes-kernel/linux-module/files/debian/control +++ b/meta/recipes-kernel/linux-module/files/debian/control @@ -7,5 +7,5 @@ Maintainer: ISAR project Package: @PN@ Architecture: any -Depends: linux-image-@KERNEL_NAME@ +Depends: linux-image-@KERNEL_NAME@, systemd Description: @DESCRIPTION@ diff --git a/meta/recipes-kernel/linux-module/module.inc b/meta/recipes-kernel/linux-module/module.inc index aa232f7..0684659 100644 --- a/meta/recipes-kernel/linux-module/module.inc +++ b/meta/recipes-kernel/linux-module/module.inc @@ -13,6 +13,8 @@ DEPENDS += "linux-headers-${KERNEL_NAME}" SRC_URI += "file://debian/" +AUTOLOAD ?= "0" + inherit dpkg dpkg_runbuild_prepend() { @@ -21,4 +23,9 @@ dpkg_runbuild_prepend() { -e 's/@KERNEL_NAME@/${KERNEL_NAME}/g' \ -e 's/@DESCRIPTION@/${DESCRIPTION}/g' \ ${WORKDIR}/${S}/debian/changelog ${WORKDIR}/${S}/debian/control + + if [ ${AUTOLOAD} = "1" ]; then + echo "echo ${PN} > /etc/modules-load.d/${PN}.conf" >> ${WORKDIR}/${S}/debian/postinst + chmod +x ${WORKDIR}/${S}/debian/postinst + fi } -- 2.1.4