From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6755821036247187456 X-Received: by 2002:a05:600c:28c:: with SMTP id 12mr2404070wmk.25.1573126769780; Thu, 07 Nov 2019 03:39:29 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a5d:4050:: with SMTP id w16ls1269700wrp.13.gmail; Thu, 07 Nov 2019 03:39:29 -0800 (PST) X-Google-Smtp-Source: APXvYqz6dpxng+634o2vssgMhS2k/0HhhpS2XyBnhEVntMNXmS/YQPV9vMGID06vmt5K98vswYT8 X-Received: by 2002:a5d:6b04:: with SMTP id v4mr2627945wrw.219.1573126769110; Thu, 07 Nov 2019 03:39:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573126769; cv=none; d=google.com; s=arc-20160816; b=MZLFggB8FoIFXEfF2x94euqA4mnW/jQdRm4bKJiP7hQgQBzwskrzLMkIBcmF11OhZJ eDzTbDgtyS6NaNih6y+N09qVXvrKYdsaPhpGB0vUgVudron3NaBQGHcOxnJKJWkWeHgr xq+OPZAW8g5kowKg1eZIK0TMTu7w79EK3a1WjmtzrPx8jOCwAydm/iFfE9NdfFDxA1C4 RUmJXcMW7a8tMVvK0NpT6CI8twbHSaSqW9EvaYJKmK4bByU0nWJErGWFChlGPMu1ws5J A2UP1vlnmdXzGcHsTDEtUxFDvMYT2ts5l66P5qyiaTR4vtEERHJEOmpY3WskWquJ2aJS /h5A== 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=hJJ1DIudHpffPXA7fvey+BurksZvIkIEtO7q6YsFJI0=; b=SurvTWPVWoNC1jmc1BZS3fujzH/6+h3cFfSPwLCGMUwrwqzAD2WD1CERu2a2tghTHp eEPReaksqLp0o/bwBxeOiqs/X8AO30WM5fcG5qb636+7d8SxOgS/WDmQvDE5Ht4emt7h 9bO57GI18UR5zEmzws3i2qQnItlWMq4czNqmgdQEN6ealTkBdX3KEFb1bhWULwhNUXEd QWh80Xra73jg87gfBDlDN72gUzG7qcXL9bP5FJ5FwwJMP9USRNSFEtfiwBIQKyhAjlWS qTUkagxE94zu76i7j6+WS1lOvBSesIUDDHd+LXtfN6XcGWRWbS2jXNuF3CLj9F2nRJ+G UROw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 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 lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id q73si205005wme.1.2019.11.07.03.39.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Nov 2019 03:39:29 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) client-ip=194.138.37.39; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 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 lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id xA7BdSFv009126 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 7 Nov 2019 12:39:28 +0100 Received: from [139.22.44.120] ([139.22.44.120]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id xA7BdRO4024584; Thu, 7 Nov 2019 12:39:28 +0100 Subject: Re: [PATCH L-C v2 0/7] linux-custom recipe rework 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> From: Jan Kiszka Message-ID: <7c42c7f6-72d6-35bb-62e1-07c501c53b87@siemens.com> Date: Thu, 7 Nov 2019 12:39:27 +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: <1573118604-909-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: krTK+YoK1PI9 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. Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux