From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6755821036247187456 X-Received: by 2002:a19:8c1c:: with SMTP id o28mr1922688lfd.105.1572967964911; Tue, 05 Nov 2019 07:32:44 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:9c97:: with SMTP id x23ls2397734lji.2.gmail; Tue, 05 Nov 2019 07:32:44 -0800 (PST) X-Google-Smtp-Source: APXvYqx7CCNZlZtaDBNVb4z87xgRZILUB90MZo/gX3c9mMZ7Wtpp1FU5cXjvp7c8EIdLvQ7aDTj2 X-Received: by 2002:a2e:b5d0:: with SMTP id g16mr23934067ljn.88.1572967964155; Tue, 05 Nov 2019 07:32:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572967964; cv=none; d=google.com; s=arc-20160816; b=ZgwV3x3yj9Hsk5dYK3Su4yzdzxgD/lUC43+ETun+AnGB5LQnJPYnZlViem9JRZH7ZF 5RflNjKqYubigf09ZRSYwDUyXPF0g4EN1rDFOoc8gkuUE26Lgv+U2qyKvVPXS3gukiCC KVEJGLsqT1M2JuEA2Z5ZfTPDIqC2tspFWGna72yk1+dJhakZ+eBf1khkBZbr2IpiWum+ UMDiqedKtATzLb8icgNw72fYLrcAbDzbxvSerjaHyYomuJILD3f1k9T9miKiOic4yBu3 GuuM8+PFcYq/RsvSkcbO6wI+yhvT1wJ5vfsMeE/3lUUtFJSC2idedhRL6KIUh7XgZu3i rjeA== 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; bh=YIFI63BwnZLgAXCVO0ycBRCYF0p0rVDlq7jSJ2U6vss=; b=bfoKTKBqsSBQ7nRGETgrejLZ6/n4wauZTUhKeKy8fxu/mH5TB+pUGCjc7JcQ6tL+jQ p80Cf3MI/t7Wc5u/AUlfq9Rp8OX6jpi43OBxxnJlKlz2zFVPmbUvO13PzIssubaoGZYG /K590sRmPhHKZfytWkkGJkRuhLgQROFH2VDHRzacvaPi2n6NVyt9shqGRmOuZV9lcEmM 7lF8T31JdJqrPARGjEhem+q4rLFqo2OfgAZSYLjkHGU38TYUdy7z2iFWwalRh0xTyTHt LsAbobqoFxLD4KJA5CuzRgJ5BsaT4m8SPwYfPk9Y4XW/oT25IVX/JxYNDuu88WHvRiqS kPHg== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id c25si956014lji.2.2019.11.05.07.32.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Nov 2019 07:32:44 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id xA5FWhsE017081 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 5 Nov 2019 16:32:43 +0100 Received: from [139.25.68.37] ([139.25.68.37]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id xA5FWhuV032682; Tue, 5 Nov 2019 16:32:43 +0100 Subject: Re: [PATCH 0/7] linux-custom recipe rework To: Cedric Hombourger , isar-users@googlegroups.com References: <1572962145-318-1-git-send-email-Cedric_Hombourger@mentor.com> From: Jan Kiszka Message-ID: <37650d73-d0c0-b0e4-1466-2214af558f8e@siemens.com> Date: Tue, 5 Nov 2019 16:32:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <1572962145-318-1-git-send-email-Cedric_Hombourger@mentor.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: Bp2kTR5sJESe On 05.11.19 14:55, Cedric Hombourger wrote: > The Linux kernel is packaged a bit differently between Debian variants > and in particular for the perf package(s) in Debian vs Ubuntu. Since > there is no way the kernel build scripts would ever get distro specific > support for building more than the kernel and headers, we need our own > build/packaging scripts. The approach is documented in the custom_kernel.md > file included in this patch series. > > This changeset was tested against ci_build.sh and some images were booted > on hardware available here. No regressions were detected (to date). > > It is probably a good time to seek comments on the changeset and ideally > get it merged before starting some of the work-packages such as getting > perf packaged for Debian and Ubuntu distros. > > Cedric Hombourger (7): > recipes-kernel/linux: make KERNEL_DEFCONFIG support in-tree defconfigs > linux-mainline: fix stripping of .0 from the kernel version > linux-mainline: update from 4.19.0 to 4.19.80 > linux-custom: add support for kernel config fragments > linux-mainline: disable support for HFS to demonstrate use of config fragments > buildchroot-host: install qemu-static to support hybrid cross-compiles > linux-custom: rewrite to no longer depend on the kernel's builddeb > > doc/custom_kernel.md | 181 ++++++++++++++++ > .../recipes-kernel/linux/files/no-fs-hfs.cfg | 2 + > ...ne_4.19.0.bb => linux-mainline_4.19.80.bb} | 8 +- > .../buildchroot/buildchroot-host.bb | 6 + > .../linux/files/build-kernel.sh | 129 ------------ > meta/recipes-kernel/linux/files/debian/compat | 1 + > .../linux/files/debian/control.tmpl | 36 ++++ > meta/recipes-kernel/linux/files/debian/files | 5 + > .../linux/files/debian/isar/build.tmpl | 36 ++++ > .../linux/files/debian/isar/clean.tmpl | 20 ++ > .../linux/files/debian/isar/common.tmpl | 60 ++++++ > .../linux/files/debian/isar/install.tmpl | 197 ++++++++++++++++++ > .../files/debian/linux-image.postinst.tmpl | 22 ++ > .../files/debian/linux-image.postrm.tmpl | 18 ++ > .../linux/files/debian/rules.tmpl | 39 ++++ > meta/recipes-kernel/linux/linux-custom.inc | 196 ++++++++++++----- > 16 files changed, 772 insertions(+), 184 deletions(-) > create mode 100644 doc/custom_kernel.md > create mode 100644 meta-isar/recipes-kernel/linux/files/no-fs-hfs.cfg > rename meta-isar/recipes-kernel/linux/{linux-mainline_4.19.0.bb => linux-mainline_4.19.80.bb} (67%) > delete mode 100644 meta/recipes-kernel/linux/files/build-kernel.sh > create mode 100644 meta/recipes-kernel/linux/files/debian/compat > create mode 100644 meta/recipes-kernel/linux/files/debian/control.tmpl > create mode 100644 meta/recipes-kernel/linux/files/debian/files > create mode 100644 meta/recipes-kernel/linux/files/debian/isar/build.tmpl > create mode 100644 meta/recipes-kernel/linux/files/debian/isar/clean.tmpl > create mode 100644 meta/recipes-kernel/linux/files/debian/isar/common.tmpl > create mode 100644 meta/recipes-kernel/linux/files/debian/isar/install.tmpl > create mode 100644 meta/recipes-kernel/linux/files/debian/linux-image.postinst.tmpl > create mode 100644 meta/recipes-kernel/linux/files/debian/linux-image.postrm.tmpl > create mode 100755 meta/recipes-kernel/linux/files/debian/rules.tmpl > Should have been v3? ;) Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux