From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6520199916203016192 X-Received: by 10.223.175.238 with SMTP id y46mr153064wrd.9.1518102343483; Thu, 08 Feb 2018 07:05:43 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.141.4 with SMTP id p4ls1054265wmd.12.canary-gmail; Thu, 08 Feb 2018 07:05:42 -0800 (PST) X-Google-Smtp-Source: AH8x226OBMViO2K0GJBUj89rlGzhS/IqiOAWqGTo3NGN6wtjU4G8IstXIsLCejDc5n1mgVGrUBXn X-Received: by 10.28.15.145 with SMTP id 139mr171653wmp.27.1518102342858; Thu, 08 Feb 2018 07:05:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518102342; cv=none; d=google.com; s=arc-20160816; b=rGKB3eDx5i0ekozjaVYOwfR1ECWwIqLxAWuspwm1bjU5Qd5ke8VIUgJn+imZeDJcsF NRmod1uwsj0EuAoN8qIs2WU6nVnHnF/pKRYZVzvnGGtiFpcR4LjZyAMh7Vj5KvxHeV1W W5catU8HssfxzYQgCAEQcuXnSVsvVpBFrkZR4UkcCELZvJokKZkamgEdRSRHeEopstIO fanW6oaRGcSk/glH2IiU80kK0b4VfSkijnUz/KeUq5QxCbJGAyJLPS2JmhtVc3cVGwcY NoipMbAzYcm/t/MOdxgejXQ794ESKkglVhrRNJUngTyFw9wq43h38vyD4y2NImziOY76 Hp0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:to:from:arc-authentication-results; bh=3Nezct4Qzm1gEGR6Dt6FS0lyq4C/yJCzJG81P4Evp1U=; b=LEMgbjrlGD7KOWKW9jO1zICDMN1rHY+zRepvTyQuMbK05V+qspCQdyVpcg3DxM1x84 AmZSP2xbSzKE7ayit/JadagIS3iQCYjIv3b4TyBtHcEqEk9DduY6zUvPn55bbr8KHYZ7 /wWCl21IUKcHGHOJ+jsAtBkAkErobG/iKW+F/nFQ4Nx8N2lw+KBbrvl70+WIPxnL8DI0 x/+5IGl07BIr43/k+IXxE1v+TAYY2aDiEe2RJDEqcE0UKRr+CM3wb4r9zBD69O1OPSPO lThXfs57IwsRP9eqcKLe+bmLXbc37pCXwoZtD2eLgjqlOo/lNY0EyoytQTjOa1HTNxzm nRvw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id k21si11666wrd.1.2018.02.08.07.05.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Feb 2018 07:05:42 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w18F5ggE009725 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 8 Feb 2018 16:05:42 +0100 Received: from md1f2u6c.ad001.siemens.net (md1q0hnc.ad001.siemens.net [139.25.68.37] (may be forged)) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id w18F5gaX010454 for ; Thu, 8 Feb 2018 16:05:42 +0100 From: Jan Kiszka To: isar-users Subject: [PATCH 0/8] Provide infrastructure and examples for custom kernels and modules Date: Thu, 8 Feb 2018 16:05:33 +0100 Message-Id: X-Mailer: git-send-email 2.13.6 X-TUID: JdeFGqe+UPBa This is now finally the promised patches to provide simple patterns for building custom kernels for Isar images that replace the distro kernels. It also provids the same pattern for custom out-of-tree kernel modules. Along come two fixes, one to respect proxies during dpkg builds, the other to adjust isar-apt repo prio. Furthermore, I'm proposing to rename "SRC_DIR" to OE-standard "S". This series is also available at https://github.com/siemens/isar jan/kernel-build Jan Jan Kiszka (8): Forward proxy settings to dpkg build Prioritize isar-apt repo over all others Replace SRC_DIR with S Install kernel via replaceable recipe Provide include file for easy custom kernel builds Add custom kernel examples Provide include file for easy custom module builds Add exemplary kernel module doc/user_manual.md | 6 +- meta-isar/conf/distro/debian-jessie.conf | 2 + meta-isar/conf/distro/debian-stretch.conf | 2 + meta-isar/conf/distro/debian-wheezy.conf | 2 + meta-isar/conf/distro/raspbian-jessie.conf | 2 + meta-isar/conf/local.conf.sample | 2 +- meta-isar/conf/multiconfig/qemuamd64-jessie.conf | 2 +- meta-isar/conf/multiconfig/qemuamd64-stretch.conf | 3 +- meta-isar/conf/multiconfig/qemuarm-jessie.conf | 2 +- meta-isar/conf/multiconfig/qemuarm-stretch.conf | 3 +- meta-isar/conf/multiconfig/qemuarm-wheezy.conf | 2 +- meta-isar/conf/multiconfig/qemui386-jessie.conf | 2 +- meta-isar/conf/multiconfig/qemui386-stretch.conf | 3 +- meta-isar/conf/multiconfig/rpi-jessie.conf | 3 +- .../recipes-app/example-hello/example-hello.bb | 2 +- meta-isar/recipes-app/libhello/libhello.bb | 2 +- .../recipes-core/images/files/multistrap.conf.in | 1 + meta-isar/recipes-core/images/isar-image-base.bb | 6 +- .../example-module/example-module.bb | 5 + .../example-module/files/src/Makefile | 11 + .../example-module/files/src/example-module.c | 19 ++ meta-isar/recipes-kernel/linux/files/defconfig | 308 +++++++++++++++++++++ meta-isar/recipes-kernel/linux/linux-cip_4.4.bb | 10 + .../recipes-kernel/linux/linux-mainline_4.14.17.bb | 8 + meta/classes/dpkg.bbclass | 3 +- meta/recipes-devtools/buildchroot/buildchroot.bb | 4 +- .../buildchroot/files/isar-apt-prefs | 3 + .../buildchroot/files/multistrap.conf.in | 1 + .../linux-module/files/debian/changelog | 5 + .../linux-module/files/debian/compat | 1 + .../linux-module/files/debian/control | 11 + .../recipes-kernel/linux-module/files/debian/rules | 8 + meta/recipes-kernel/linux-module/module.inc | 17 ++ meta/recipes-kernel/linux/linux-custom.inc | 91 ++++++ meta/recipes-kernel/linux/linux-distro.bb | 14 + 35 files changed, 549 insertions(+), 17 deletions(-) create mode 100644 meta-isar/recipes-kernel/example-module/example-module.bb create mode 100644 meta-isar/recipes-kernel/example-module/files/src/Makefile create mode 100644 meta-isar/recipes-kernel/example-module/files/src/example-module.c create mode 100644 meta-isar/recipes-kernel/linux/files/defconfig create mode 100644 meta-isar/recipes-kernel/linux/linux-cip_4.4.bb create mode 100644 meta-isar/recipes-kernel/linux/linux-mainline_4.14.17.bb create mode 100644 meta/recipes-devtools/buildchroot/files/isar-apt-prefs create mode 100644 meta/recipes-kernel/linux-module/files/debian/changelog create mode 100644 meta/recipes-kernel/linux-module/files/debian/compat create mode 100644 meta/recipes-kernel/linux-module/files/debian/control create mode 100755 meta/recipes-kernel/linux-module/files/debian/rules create mode 100644 meta/recipes-kernel/linux-module/module.inc create mode 100644 meta/recipes-kernel/linux/linux-custom.inc create mode 100644 meta/recipes-kernel/linux/linux-distro.bb -- 2.13.6