From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6520199916203016192 X-Received: by 10.80.243.144 with SMTP id g16mr627615edm.11.1518110580961; Thu, 08 Feb 2018 09:23:00 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.80.171.6 with SMTP id s6ls2549190edc.2.gmail; Thu, 08 Feb 2018 09:23:00 -0800 (PST) X-Google-Smtp-Source: AH8x224wo+3wRTWVNJYD+AwPmcPROT52qTZaR+3/xp/gI3EzIGGGrwGtV7ImXNZV59EZ/rRgD+gH X-Received: by 10.80.202.11 with SMTP id d11mr635478edi.9.1518110580387; Thu, 08 Feb 2018 09:23:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518110580; cv=none; d=google.com; s=arc-20160816; b=nL2pvm6lDw5UYwAtihSD8wHaqd/lRgPKfAohuqyPlTBKqD/IA18ZHq6mAzVtXHxpeP x8MiSoWlxY2/Af4Qd6/lY/RwcmLa60SoZbYpwbl3xK564QSX6cgLIxxdgRXjabiVztyS 9PoEKUvmkKex0XOkO+Kwxk++dar8z+48OpjvKIz5cP8yEZTrAzy9mR2q+Dpdlho/XFps TXKea1n4Bj3IPALZr+5r0d7j0U7J4u0V7HweeeTz2aN+6U/b0e0oGoD9TeDMULH5hHLU f2ubIkbcd5pMAlawfZic3EDfHxh3okrmadQuv/3S3K2VLfCuDrgrAt7Tb/iT2EY3wPbN vY/w== 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=3RV/6JdJXZYEFIhlMzKDOk37spglor3xTCivN4f7uf4=; b=ir0KCEVKEjm5xZUlEXPquq6tiCQYYvLznmIYPobAm+75ChWQ2IMGVdwLI1v/TQ+C2+ Bn4jGax+hswbTZ4CmXHkQxgCFkIQiKQUrD4S3nfULJGui8BefaSKI2rfjfHULAkfviEg pFtH2siibvzodQzjOamUpHBEARwLkbHPbDhFme0zFHJ5DYjp0lCuJ+bRCCzuXoUDbmz1 ACGq1VRAOcQ3xfuZ5+iZojMlavTj3+VSBFqScwi3qRDkxEJF3daIiX7oQU9ybjNlNE2a kweZ2c+4Vtdh+uAlsokhncIMCT231iWUs0I5leIjeE6wc7Xsja3FVzHCySKbrTZLcx9/ lwNg== 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 g45si25633eda.0.2018.02.08.09.23.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Feb 2018 09:23:00 -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 w18HMxIQ014733 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 8 Feb 2018 18:22:59 +0100 Received: from md1f2u6c.ad001.siemens.net (md1q0hnc.ad001.siemens.net [139.25.68.37] (may be forged)) by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id w18HMxfe025766 for ; Thu, 8 Feb 2018 18:22:59 +0100 From: Jan Kiszka To: isar-users Subject: [PATCH v2 0/8] Provide infrastructure and examples for custom kernels and modules Date: Thu, 8 Feb 2018 18:22:51 +0100 Message-Id: X-Mailer: git-send-email 2.13.6 X-TUID: 4e99QlEJQBd5 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 Changes in v2: - added copyright headers and license statements - "update" to kernel 4.14.18 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 | 12 + .../example-module/files/src/Makefile | 18 ++ .../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 | 17 ++ .../recipes-kernel/linux/linux-mainline_4.14.18.bb | 15 + 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 | 15 + meta/recipes-kernel/linux-module/module.inc | 24 ++ meta/recipes-kernel/linux/linux-custom.inc | 98 +++++++ meta/recipes-kernel/linux/linux-distro.bb | 16 ++ 35 files changed, 600 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.18.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