From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6755821036247187456 X-Received: by 2002:a1c:2745:: with SMTP id n66mr2440306wmn.171.1573127333511; Thu, 07 Nov 2019 03:48:53 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:1:: with SMTP id g1ls1715013wmc.2.canary-gmail; Thu, 07 Nov 2019 03:48:52 -0800 (PST) X-Google-Smtp-Source: APXvYqw83ppkHBVm2NlN8x4vEKGYkyyOLgURMpkE/V2JpR3ljgGOplG1RGtdE6jwcDXvnUfRc5ni X-Received: by 2002:a1c:1f03:: with SMTP id f3mr2459339wmf.131.1573127332892; Thu, 07 Nov 2019 03:48:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573127332; cv=none; d=google.com; s=arc-20160816; b=Md0KyrQZvT22h7FtjbqpQvAh7pc14VoXRw+UwaKu8daMBCYgED//ztkiEDIF95pwRC 6e8OwUCaOfQEllb0n0efCBWnJZSY0JvuL0hmcYV2kUSE8rINa9whOiuOVun2kS4o8iBc VQszALB41xeqG0tJLgfaGnThp8dCRUtBuT0EflBJKJB9UeINHjKse5fSXvoKFwqJ4Wwh Y7fmxr8QWe6j+C5mzv1x/5Kvi9Rqmr/iRRg5/oZgt+F+AI8LmqBn+xATFVMCGDsqx5Xr wI/4F6iRvKtCAV5xYtZlG60QHnHbRAg9tA6PMWYqvEDW08dIeKRKi/xqfb0YqNG/2nnU khCQ== 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:references:to:from:subject; bh=F3jdJCIjMgP7w1Jtm8k5+91rbV1sAQwToP8bF06TRu4=; b=fwKoPmTIocik4Fvm0m1igzA+318jqlWUuUQV4qxtnXuDHNBp8io8NKD2w/Cxf8zO34 w3g/+Zh4o2QVRweCiTfqBv6JhHSyCXdR9WqpCkSgCT6sXMlD6nkdkSnN4UJK1NzIlrjo yJuABztT7LxUThC6L/TjjDA4FMjhJ9Med9YSQ9zBZueb3uJzP8FGoEK7h33ok0BDhEKa a6IfRCTPv0k+trFy5COSMiBXZY0KBCuMKai+nAp/WimuqLJ0z0mWIqEn+HDxzstekC32 ztb2vrajydm8PZRsEiXCSHDMAXrRZMFMCvFfwuWs4IhQu46QvNeuxSlDuFFV2QSXt+aN K8wg== 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 q3si134775wrp.5.2019.11.07.03.48.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Nov 2019 03:48:52 -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 mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id xA7BmqvW021169 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 7 Nov 2019 12:48:52 +0100 Received: from [139.22.44.120] ([139.22.44.120]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id xA7Bmprq009391; Thu, 7 Nov 2019 12:48:51 +0100 Subject: Re: [PATCH L-C v2 0/7] linux-custom recipe rework From: Jan Kiszka To: Cedric Hombourger , isar-users@googlegroups.com References: <1572962145-318-1-git-send-email-Cedric_Hombourger@mentor.com> <1573118604-909-1-git-send-email-Cedric_Hombourger@mentor.com> <7c42c7f6-72d6-35bb-62e1-07c501c53b87@siemens.com> Message-ID: <2c2bfb8d-52d3-0413-0208-78bf331fbbad@siemens.com> Date: Thu, 7 Nov 2019 12:48:50 +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: <7c42c7f6-72d6-35bb-62e1-07c501c53b87@siemens.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: D2nzWS9wXbNa On 07.11.19 12:39, [ext] Jan Kiszka wrote: > On 07.11.19 10:23, 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. >> >> Version 2 of this changeset was tested against ci_build.sh and some images were >> booted on hardware available here. No regressions were detected (to date). This >> was also tested on the creator-ci40-marduk machine (subject of another patch >> series). >> >> Changes compared to v1: >> Add missing reference to KERNEL_DEFCONFIG in requirements list >> Amend postinst/postrm scripts according to CONFIG_BLK_DEV_INITRD >> Remove (unused) pre/post host hooks from debian/isar scripts >> Add preinst/prerm scripts shipped by the kernel >> Align {pre,post}{inst,rm} scripts with upstream >> Add ${BASE_DISTRO} to Build-Profiles >> Add nolibcdev to Build-Profiles if KERNEL_LIBC_DEV_DEPLOY != 1 >> Only build the libc-dev packages if it is needed >> >> 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 >> > > What's the baseline of this series? It's not next. > Found it, it's your "misc" series. Please point that out in the future. Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux