From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6755821036247187456 Date: Thu, 7 Nov 2019 03:47:27 -0800 (PST) From: chombourger@gmail.com To: isar-users Message-Id: In-Reply-To: <7c42c7f6-72d6-35bb-62e1-07c501c53b87@siemens.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> Subject: Re: [PATCH L-C v2 0/7] linux-custom recipe rework MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2813_940955028.1573127247397" X-Google-Token: EM-IkO4FXJCn0HkCOf00 X-Google-IP: 77.130.253.234 X-TUID: z6zcQixlNogE ------=_Part_2813_940955028.1573127247397 Content-Type: multipart/alternative; boundary="----=_Part_2814_828145476.1573127247397" ------=_Part_2814_828145476.1573127247397 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 > ------=_Part_2814_828145476.1573127247397 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable


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 vari= ants
> and in particular for the perf package(s) in Debian vs Ubuntu. Sin= ce
> there is no way the kernel build scripts would ever get distro spe= cific
> 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.
>=20
> Version 2 of this changeset was tested against ci_build.sh and som= e images were
> booted on hardware available here. No regressions were detected (t= o date). This
> was also tested on the creator-ci40-marduk machine (subject of ano= ther patch
> series).
>=20
> Changes compared to v1:
> =C2=A0 Add missing reference to KERNEL_DEFCONFIG in requirements l= ist
> =C2=A0 Amend postinst/postrm scripts according to CONFIG_BLK_DEV_I= NITRD
> =C2=A0 Remove (unused) pre/post host hooks from debian/isar script= s
> =C2=A0 Add preinst/prerm scripts shipped by the kernel
> =C2=A0 Align {pre,post}{inst,rm} scripts with upstream
> =C2=A0 Add ${BASE_DISTRO} to Build-Profiles
> =C2=A0 Add nolibcdev to Build-Profiles if KERNEL_LIBC_DEV_DEPLOY != =3D 1
> =C2=A0 Only build the libc-dev packages if it is needed
>=20
> Cedric Hombourger (7):
> =C2=A0 recipes-kernel/linux: make KERNEL_DEFCONFIG support in-tree= defconfigs
> =C2=A0 linux-mainline: fix stripping of .0 from the kernel version
> =C2=A0 linux-mainline: update from 4.19.0 to 4.19.80
> =C2=A0 linux-custom: add support for kernel config fragments
> =C2=A0 linux-mainline: disable support for HFS to demonstrate use = of config fragments
> =C2=A0 buildchroot-host: install qemu-static to support hybrid cro= ss-compiles
> =C2=A0 linux-custom: rewrite to no longer depend on the kernel'= ;s builddeb
>=20
> =C2=A0doc/custom_kernel.md =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| 181 ++++++++++++++++
> =C2=A0.../recipes-kernel/linux/files/no-fs-hfs.cfg =C2=A0| = =C2=A0 2 +
> =C2=A0...ne_4.19.0.bb =3D> linux-mainline_4.19.80.bb} | =C2=A0 8 +-
> =C2=A0.../buildchroot/buildchroot-host.bb =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 | =C2=A0 6 +
> =C2=A0.../linux/files/build-kernel.sh =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 | 129 ------------
> =C2=A0meta/recipes-kernel/linux/files/debian/compat | =C2=A0 = 1 +
> =C2=A0.../linux/files/debian/control.tmpl =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 | =C2=A036 ++++
> =C2=A0meta/recipes-kernel/linux/files/debian/files =C2=A0| = =C2=A0 5 +
> =C2=A0.../linux/files/debian/isar/build.tmpl =C2=A0 =C2=A0 = =C2=A0 =C2=A0| =C2=A036 ++++
> =C2=A0.../linux/files/debian/isar/clean.tmpl =C2=A0 =C2=A0 = =C2=A0 =C2=A0| =C2=A020 ++
> =C2=A0.../linux/files/debian/isar/common.tmpl =C2=A0 =C2=A0 = =C2=A0 | =C2=A060 ++++++
> =C2=A0.../linux/files/debian/isar/install.tmpl =C2=A0 =C2=A0 = =C2=A0| 197 ++++++++++++++++++
> =C2=A0.../files/debian/linux-image.postinst.tmpl =C2=A0 =C2= =A0| =C2=A022 ++
> =C2=A0.../files/debian/linux-image.postrm.tmpl =C2=A0 =C2=A0 = =C2=A0| =C2=A018 ++
> =C2=A0.../linux/files/debian/rules.tmpl =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 | =C2=A039 ++++
> =C2=A0meta/recipes-kernel/linux/linux-custom.inc =C2=A0 =C2= =A0| 196 ++++++++++++-----
> =C2=A016 files changed, 772 insertions(+), 184 deletions(-)
> =C2=A0create mode 100644 doc/custom_kernel.md
> =C2=A0create mode 100644 meta-isar/recipes-kernel/linux/files= /no-fs-hfs.cfg
> =C2=A0rename meta-isar/recipes-kernel/linux/{linux-mainli= ne_4.19.0.bb =3D> linux-mainline_4.19.80.bb} (67%)
> =C2=A0delete mode 100644 meta/recipes-kernel/linux/files/buil= d-kernel.sh
> =C2=A0create mode 100644 meta/recipes-kernel/linux/files/debi= an/compat
> =C2=A0create mode 100644 meta/recipes-kernel/linux/files/debi= an/control.tmpl
> =C2=A0create mode 100644 meta/recipes-kernel/linux/files/debi= an/files
> =C2=A0create mode 100644 meta/recipes-kernel/linux/files/debi= an/isar/build.tmpl
> =C2=A0create mode 100644 meta/recipes-kernel/linux/files/debi= an/isar/clean.tmpl
> =C2=A0create mode 100644 meta/recipes-kernel/linux/files/debi= an/isar/common.tmpl
> =C2=A0create mode 100644 meta/recipes-kernel/linux/files/debi= an/isar/install.tmpl
> =C2=A0create mode 100644 meta/recipes-kernel/linux/files/debi= an/linux-image.postinst.tmpl
> =C2=A0create mode 100644 meta/recipes-kernel/linux/files/debi= an/linux-image.postrm.tmpl
> =C2=A0create mode 100755 meta/recipes-kernel/linux/files/debi= an/rules.tmpl
>=20

What's the baseline of this series? It's not next.

next +=C2=A0https://groups.google.com/= forum/#!topic/isar-users/mz1g6elBs74
=C2=A0

Jan

--=20
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
------=_Part_2814_828145476.1573127247397-- ------=_Part_2813_940955028.1573127247397--