On Thursday, November 7, 2019 at 12:39:29 PM UTC+1, 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.

next + https://groups.google.com/forum/#!topic/isar-users/mz1g6elBs74
 

Jan

--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux