From patchwork Wed Apr 14 00:36:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "MOESSBAUER, Felix" X-Patchwork-Id: 418 Return-Path: Delivered-To: ilbers.mnt@gmail.com Received: by 2002:a4a:c543:0:0:0:0:0 with SMTP id j3csp3168200ooq; Wed, 14 Apr 2021 01:47:20 -0700 (PDT) X-Received: by 2002:a2e:5445:: with SMTP id y5mr23792498ljd.381.1618390040715; Wed, 14 Apr 2021 01:47:20 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1618390040; cv=pass; d=google.com; s=arc-20160816; b=gtAT36XtT0LRkkHadYbm0+65jRi1ueuBtzyS4APV7x0iTy52td5Qa5t+5OU2Y9Qqms 5OX8zUrYWPW8ENK+dcf0vFXBUQ3iJhMDQOAI9DGba8pY92VRerfFl8Se8yRpalirfhd4 FxTlieL0Lr5BIzgv406kCiW5aLBXeourhCFBcBkWk/wVPeldVpMq0ubcjtEdzCLKajhB 8DOD2Qpny9in20W1dI6FX09oRawfUi8wxeTn1kv6kzPeBAFur/nNaOua7PekQQqDu4MI /yvWUglezCloH4jra8Eoskym94il6sUsSmHS5+G2qm/u1A72fDEEgX/ClMnlOWQ3d0k8 Bm6w== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=14Q9SCU1eGIuP6tsfLwKytbUCIlC1zA23OIc03P7GNQ=; b=fJpikffGLqnTmiqNFhH0mOdwmaDIbvzvrG0pAB2lc7YBoYsRC/P4xRjW6EeTAr9P8V OcDpWUWkq8KbDPVeO/aXb0Qgk8cH9E4QqBShwuISDiuwRGHWvlwUawhg0LlFmbWYU06r 4yk09uR95qnWzftro92kO3HesRjRTYFk+FftT2lUCIg//6aSn0HOCkRowDO3AuExiuMu +45qjfIDvXqzymo0xK+lhKNgsJ9Ft3IofICFKDkRz44/jl8zeQTQ52QFU+weUDFaRKHo aF2GHX6Zy984Hbi+DTK7bVlzmen3JpKL7z+bO3vCT4oj4DBVyLqOgqkaLwONjzFwKvHJ 3YsA== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=FASi4cYx; arc=pass (i=2 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of isar-users+bncbczk33mgwucrbf6y3kbqmgqe2rdprby@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCZK33MGWUCRBF6Y3KBQMGQE2RDPRBY@googlegroups.com; dmarc=fail (p=NONE sp=NONE dis=NONE arc=pass) header.from=siemens.com Received: from mail-sor-f55.google.com (mail-sor-f55.google.com. [209.85.220.55]) by mx.google.com with SMTPS id b1sor843392lfo.38.2021.04.14.01.47.20 (Google Transport Security); Wed, 14 Apr 2021 01:47:20 -0700 (PDT) Received-SPF: pass (google.com: domain of isar-users+bncbczk33mgwucrbf6y3kbqmgqe2rdprby@googlegroups.com designates 209.85.220.55 as permitted sender) client-ip=209.85.220.55; Authentication-Results: mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=FASi4cYx; arc=pass (i=2 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of isar-users+bncbczk33mgwucrbf6y3kbqmgqe2rdprby@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCZK33MGWUCRBF6Y3KBQMGQE2RDPRBY@googlegroups.com; dmarc=fail (p=NONE sp=NONE dis=NONE arc=pass) header.from=siemens.com ARC-Seal: i=2; a=rsa-sha256; t=1618390040; cv=pass; d=google.com; s=arc-20160816; b=1D9sRITsW6c2tMWtWxexB3zATEyFNOkKM/4PAeBcMOISOLxAPtVj73nDAV44vB49Kr Dcu+GiBUTL1Vc9nLpFktAYTSH+D6HnuWU2nHNm+fJofl8qn1Tuivzr2rKnRJeCxnxGsO rckSyuNJ9PcwGWHGhXIQzDYmQ4FqqGpSG83DqsQi6IRocWLLMUroQ/WryUjlKK3UXgE+ 6wWQcKOHW+pQi55I53AQnSCokPz6nqVmReySOZQtiOJFKyvq2nWiZGqdsD9MoXR490rI LKpjaDFaeazzMr5QAKXEuHWb7gNv3J9ckVhOHhtgD316Zww9m8vNM6ARq9YXQy9TGUhc z2ww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=14Q9SCU1eGIuP6tsfLwKytbUCIlC1zA23OIc03P7GNQ=; b=LyikHNFToP6/3zJuFf2uHoMF96p3yOvhTe5krx1FLr/7H+qWsaaTwUXPkq+oUHZd6r vhdaOGhF/4VFOE3Jqtf8UFOaY5GDCgRkyoXTEP1keZw7mzfYaFurQnirSNLVyLJYdQiP PHnDXF/Bzg3ZYJVBq/stvfc974hhKwX8ns3C3uGqIulk5C+k+fLGr0cHpuzh/JucAmGG Ow4eA9hBak92stl3iLQzPa4HZ5qTyQGFGFPFFtwrDMy+PxzGAGjgzGgdk5eOJx6F0cEO b6h2zLyQ77o4K/7d17D6PQ9xvRpDQfK7PnhRkcpToPUDtsfXfqiW70QHfHBvnK+x50O9 h6UA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of felix.moessbauer@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=felix.moessbauer@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=14Q9SCU1eGIuP6tsfLwKytbUCIlC1zA23OIc03P7GNQ=; b=FASi4cYxh+iQ4j3FK21mQayAJ3pbKhzJ82vpiUjsqWRDPLMVhYhXl4HOwTrEuv056s dK5X+oYpr1Bn3AnyXDTox+7lgr1OHnqqYXj6uVjLjkPbi4Sfs5BqKH1FDIayakaYMYtU SdjBKAMWnS6snabx/LQ5XpJOJeSKP+cWNbpbIFQgUYZR+ssHa1KGs3nOE4ahtGsd1Y8P 1wZrlWPCKl2uPRviOquN+YSQSmcrLgA/o7MgbO0m4bcJTQLWNcVPCK/lbXFA+GI2JEco JE9XHh+772GQrOwPkK/kuU2iMb4DlHhN7kmdUg8WTFXyqgoLUfj/AQa1MUIG7ymbsfCb /pjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=14Q9SCU1eGIuP6tsfLwKytbUCIlC1zA23OIc03P7GNQ=; b=VvF+WXkd9J3xADqeXAKikGNOesmnCoA4sayTQHk9vvNbf7rz9EgeFBlUIR5tNJRCPd tlYiMYxdTSBAI2C48O2Q3AWKF3UwB7H9O5UQdCHrBHCUU/CnZaS2flrSahpE/cVwb93v OCKvUXJpOkhYk0ksLMJmWH6gI/wUrCd0yc/Gr2cFBXMm8yvWRlodQ1LD62UHHcxDP/Qw 8iX8wZsyNA0KJujgHjAH6YGhE4i8rKgqSXaHQBTPnqxkXtEg9WHWMgZVEhqZEYCVZ4LT nNUdGTLcDLV+fH9XAQ1xIZ0J4+aHyrdxgti+0J81pYJUvL7yjJ7PVrNun4DSIclkuu2S mpew== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM532PaunB/A4Fo/mias7IRSJk+CbWeo2I/HGGfSZ6gMjCC4Kbrau5 jkdN2GfPtSScQI8JwEiKCN0= X-Google-Smtp-Source: ABdhPJwSLZy/3ma6rK3Lbhv9E8juG/sb3e/ulDb4sHgMer7S24itscAdqvadIdAL1fHq0gTGFH4Kgw== X-Received: by 2002:a05:6512:214c:: with SMTP id s12mr21833295lfr.619.1618390039959; Wed, 14 Apr 2021 01:47:19 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:c22:: with SMTP id z34ls1438107lfu.2.gmail; Wed, 14 Apr 2021 01:47:19 -0700 (PDT) X-Received: by 2002:a19:7d89:: with SMTP id y131mr14693977lfc.394.1618390039043; Wed, 14 Apr 2021 01:47:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618390039; cv=none; d=google.com; s=arc-20160816; b=sj+wgkZfmQ1c2hOnDOpjCEnQXIMVnVabOKIih/eLJUXAqoF4gM1F4JKu8+r4tl+VWx B+M8KZ7RbT6uqsoZfHMPUHsofhvRfdlHLFx7JyGVJnr87E1KwDToqYdK4Qq1EKZzRTJW Q8ZpWUqVROUkUfuOvoLPz+/IZflpz0EAaSi73MpwWb02q3FHiR/COqIG63nK57ugvPob /F8bNa/KK9soUH6bh4LOh/zvHjy2TMGgWglzvstZZhnuQrB6BmBHTNNMZGfunKevxuz6 e9lCrP/jdkmQh2cLUxdpa2N6hp/h2P+o+MJtqAgsKRjGSbclcNa7y1acYeBjMnSNvGGX 1goQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=jDCmbSRJU4EX5gP5t4uQXWJxtg1zVpyFXG/vk5Z9eMU=; b=HyGp1SWxg0jlf723y8tUl/y9kNtRjp+CaQGe/VL15+axcE1uMUssK+wZ1RtRJNb5BL +MAMjEScQOwz65klyCDKAJpqbK0QU/NQstwI2xHVLxKVObbcyttLxT9i4dJuRExEhJ0o GLCxUTur68lNlMHFnsBOq8DIOhphp7oeYSW4Fc5ZIItOIP8DDHJQQot9RNq3P9KmCZML bmHEUeGGF8zQbY8dL32zpb6+iNF39JVARM7xU2s+GWgvqjiLf+Nel4PN4r22RymBw3MP 4uEf7j3qeUTfOR+cF1d6foOpRQyVKyJ6tFD5+H7YRWFicXBR0+02Q33JLoG7z527/tA1 DPqQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of felix.moessbauer@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=felix.moessbauer@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id n13si1099856lfi.5.2021.04.14.01.47.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Apr 2021 01:47:18 -0700 (PDT) Received-SPF: pass (google.com: domain of felix.moessbauer@siemens.com designates 194.138.37.39 as permitted sender) client-ip=194.138.37.39; Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id 13E8lIOo016691 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 14 Apr 2021 10:47:18 +0200 Received: from MD1T0KAC-VM.ad001.siemens.net (md1t0kac.ad001.siemens.net [139.25.0.7]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id 13E8aPei023005; Wed, 14 Apr 2021 10:36:25 +0200 From: Felix Moessbauer To: isar-users@googlegroups.com Cc: henning.schild@siemens.com, jan.kiszka@siemens.com, Felix Moessbauer Subject: [PATCH 0/1] Add support to build binary version of DKMS kernel Date: Wed, 14 Apr 2021 10:36:16 +0200 Message-Id: <20210414083617.20940-1-felix.moessbauer@siemens.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Original-Sender: felix.moessbauer@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of felix.moessbauer@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=felix.moessbauer@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1697004955368835454?= X-GMAIL-MSGID: =?utf-8?q?1697004955368835454?= DKMS kernel modules provide a way to deliver the sources of a kernel module along with a machine readable specification of how to build the module for the currently active kernel. Debian already ships a lot of kernel modules as DKMS packages. For embedded images, these DKMS modules are not really an option, as it would require the image to provide a compiler and build system as well. For this use-case, DKMS provides a way to pre-build a binary version of the module for a specific kernel and ship that as a debian package. Note, that this support is not implemented as part of the debhelpers, but by DKMS itself. This series adds support for the described use-case in ISAR. By that, upstream DKMS modules can be fetched and build for the image's kernel in ISAR. The generated binary package can then be installed onto the target image. To show how to use that, an example is provided in meta-isar. Best regards, Felix Moessbauer Felix Moessbauer (1): Add support to build binary version of DKMS kernel modules .../example-dkms-module/igb-uio_20.11.bb | 14 ++++ meta/classes/dkms-module.bbclass | 68 +++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 meta-isar/recipes-kernel/example-dkms-module/igb-uio_20.11.bb create mode 100644 meta/classes/dkms-module.bbclass