From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6520199916203016192 X-Received: by 10.25.113.16 with SMTP id m16mr305081lfc.3.1518599599452; Wed, 14 Feb 2018 01:13:19 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.46.108.2 with SMTP id h2ls1719492ljc.2.gmail; Wed, 14 Feb 2018 01:13:18 -0800 (PST) X-Google-Smtp-Source: AH8x224Ww8zvCXuJJ7P32bb8lzW0yK4M1SsPxfzk2Cc7dbl5wSOk/jfvs/CB07sgKg9QAp2m9yk0 X-Received: by 10.46.56.10 with SMTP id f10mr263436lja.22.1518599598545; Wed, 14 Feb 2018 01:13:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518599598; cv=none; d=google.com; s=arc-20160816; b=lkpjL94w15RN/YopbVZtUbFVRLB7Q9PRwezxOT/mLbJJdLX/49PVZvJ98ts2eFqAme XV1MDA6XYg9WF7Yy5ZOiNjFhS851Xdfi0beeOBmETE1aw6GaAemZ4cXGG3Kp8dhzdpa+ 4sjBod5TZvr6BRhFMKY80auM9NcRyGGPrMAna+7SI34ySm89p1WdI78gWRS4gXweIq3g aJGrE9IBKAO8pQpfTWxH2YiCTHB/v/DBbrucBlfgZfD3qjdBUbRVnPUHlIjtxmvb9ltC +G+uLVkyIP0Id9u+d1XP2f0BQyH0rHI0uOrpn9K5TSk9BT9EfN09lEBvTBbK8vS8VZRQ crww== 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=e+4Crc/XAWfmHvsmX3vtdW25JTcMLAvzZSksAoWiXhY=; b=tI+DXs63G2za8NWpci/pRIApKxlhihtZq1Mlo8YTfN/VN7fJQ6k/ps8cttRQKdclCG C/mNFt7/Eb5x7pppTKDZbU5AhuRu+pAJkQDaohyEvfSgIwCrOiT+p0XYD/GqabXWIvHe du6lE8dK3A7hfYrGtYT9T7LOI1af94f+woNcRADNx3zHxTWFKkhiaBqbPNX+TVVW9Ug/ MSWeABugEtKzXh1FhaXoBZmKwOpaERgShz1qWsVUEwafHpvtKCr//P866j5SGRv1vD2X /zQ5kUffzXyIw/vfxSxYlbcoDDxW5hOrsO93QkAWttCK4aX6VtGibwDYOYZzIRGz/m6I jxdg== 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 25si726930ljt.1.2018.02.14.01.13.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Feb 2018 01:13:18 -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 mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id w1E9DHPT025012 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 14 Feb 2018 10:13:17 +0100 Received: from md1f2u6c.ww002.siemens.net ([167.87.36.169]) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id w1E9DHSY028726 for ; Wed, 14 Feb 2018 10:13:17 +0100 From: Jan Kiszka To: isar-users Subject: [PATCH v5 0/5] Provide infrastructure and examples for custom kernels and modules Date: Wed, 14 Feb 2018 10:13:10 +0100 Message-Id: X-Mailer: git-send-email 2.13.6 X-TUID: KYNutlmZgxhQ 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. Changes in v5: - dropped merged patches - reworked kernel packages naming and selection mechanism to use flavor/arch rather them overwriting upstream names - fixed rebuilds of the kernel (.version was causing problems) - moved kernel build into script - and switched back to include pattern - provided note on origin of exemplary defconfig - add KERNEL_DEFCONFIG variable Jan Jan Kiszka (5): Make distro kernel replaceable Provide include for easy custom kernel builds Add custom kernel examples Provide include file for easy custom module builds Add exemplary kernel module meta-isar/conf/distro/debian-jessie.conf | 4 + meta-isar/conf/distro/debian-stretch.conf | 3 + meta-isar/conf/distro/debian-wheezy.conf | 2 + meta-isar/conf/distro/raspbian-jessie.conf | 1 + meta-isar/conf/local.conf.sample | 2 +- meta-isar/conf/multiconfig/qemuamd64-jessie.conf | 2 +- meta-isar/conf/multiconfig/qemuamd64-stretch.conf | 7 +- meta-isar/conf/multiconfig/qemuarm-jessie.conf | 2 +- meta-isar/conf/multiconfig/qemuarm-stretch.conf | 7 +- meta-isar/conf/multiconfig/qemuarm-wheezy.conf | 2 +- meta-isar/conf/multiconfig/qemui386-jessie.conf | 2 +- meta-isar/conf/multiconfig/qemui386-stretch.conf | 7 +- meta-isar/conf/multiconfig/rpi-jessie.conf | 3 +- meta-isar/recipes-core/images/isar-image-base.bb | 2 + .../example-module/example-module.bb | 12 + .../example-module/files/src/Makefile | 18 ++ .../example-module/files/src/example-module.c | 19 ++ .../recipes-kernel/linux/files/x86_64_defconfig | 310 +++++++++++++++++++++ meta-isar/recipes-kernel/linux/linux-cip_4.4.bb | 19 ++ .../recipes-kernel/linux/linux-mainline_4.14.18.bb | 17 ++ .../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/files/build-kernel.sh | 75 +++++ meta/recipes-kernel/linux/linux-custom.inc | 47 ++++ meta/recipes-kernel/linux/linux-distro.bb | 13 + 28 files changed, 614 insertions(+), 18 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/x86_64_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-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/files/build-kernel.sh create mode 100644 meta/recipes-kernel/linux/linux-custom.inc create mode 100644 meta/recipes-kernel/linux/linux-distro.bb -- 2.13.6