From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6529810911033556992 X-Received: by 10.223.150.47 with SMTP id b44mr1900436wra.7.1520407200550; Tue, 06 Mar 2018 23:20:00 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.9.1 with SMTP id 1ls229287wmj.8.gmail; Tue, 06 Mar 2018 23:19:59 -0800 (PST) X-Google-Smtp-Source: AG47ELtrD5S41XNisC3b30Qoagc/T/QvaqRn3cyn5YleP6hwFI/AROvGHd023H7qxz1kAVgJ72ot X-Received: by 10.28.144.17 with SMTP id s17mr433539wmd.29.1520407199938; Tue, 06 Mar 2018 23:19:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520407199; cv=none; d=google.com; s=arc-20160816; b=rV/VT3uEWa63qozavb0NKjv+jK6M50AASDUAecsCnDZWNW5Aec2YGr+ytgLRvND3HX J0U6ByeDnXkcVB3/QDvUqkkIvQsnzjlzaHmbQ5vRI7SqxnhYKQEbBRwNsBh+mLM/O4kr SMoJJJ7IWhAY35Wz5oG4keQCMKV1ujmfsjJMKfbW0g1leh2OmKQbd4sqYakWM3/RHn6i Rx2FH/502QDeJicKxnoED4iekIOkXK3Ofi46qos/rNHHmwq6dcUvgZNdu3o423hhQpxE qkq9QAan+fVwsC3KQrXit9dUBwjr43mJk/oiR16E/eu3Sy4WTyPpby2JgeanUDiyrVQz 3Qyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=G5WiIQDby74necMbfefNUNSCip6kBpHYeQx0/JwoNKE=; b=QW/bWdYol0F8UcpBzIDfjPH/64r7dvCA6ReDKBOznr8rcs5t4yabCFopx9HsRuM69q xD8fjOPQ2E3hgLBLNV5Zf6mClb30SZ786XQ4d2nAXqKoTj6IEt74ywVFaN7PauijRILK IrVhu0eAUcEUFQctQQgj/TI415qhdT81EZmVNDTIe1B7BlZOgym2JpdlSwk02hhWm8WT k/IRrg6m5wx/dIU5XhZuOXLXqYXYBiHJaIrh4BtF81+MJkx8SLEjehh23biUGffwVYqg MZ9GxCeWDikEB1AZIMlh+KklwUqIEeaZLahkixy8lBUrG4Je0CN/pyESrxDMu3hcuB/o oyhw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id l1si455376wmc.0.2018.03.06.23.19.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Mar 2018 23:19:59 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.28 as permitted sender) client-ip=192.35.17.28; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id w277JxY9026867 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 7 Mar 2018 08:19:59 +0100 Received: from [167.87.11.133] ([167.87.11.133]) by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id w277JvxM007632; Wed, 7 Mar 2018 08:19:59 +0100 Subject: Re: [PATCH 1/4] kernel/module: Add AUTOLOAD option To: Alexander Smirnov , isar-users@googlegroups.com References: <20180306124055.15990-1-asmirnov@ilbers.de> <20180306124055.15990-2-asmirnov@ilbers.de> From: Jan Kiszka Message-ID: Date: Wed, 7 Mar 2018 08:19:57 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: <20180306124055.15990-2-asmirnov@ilbers.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: N3xssNRctmGz On 2018-03-06 13:40, Alexander Smirnov wrote: > 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 Why this, BTW? Jan > 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 > } > -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux