From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6755821036247187456 X-Received: by 2002:a54:4481:: with SMTP id v1mr7763221oiv.152.1573198059928; Thu, 07 Nov 2019 23:27:39 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6830:1da7:: with SMTP id z7ls1751008oti.10.gmail; Thu, 07 Nov 2019 23:27:39 -0800 (PST) X-Google-Smtp-Source: APXvYqz0qy/M8dUp9XVaDqlyB312TgsuwFt0ejQZjVuHNrALd/Q2+8fVct+dwzuPuHgF9g+L7+gf X-Received: by 2002:a9d:53c4:: with SMTP id i4mr7513534oth.151.1573198059625; Thu, 07 Nov 2019 23:27:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573198059; cv=none; d=google.com; s=arc-20160816; b=J8vZsJB8ulwXqKUfOalpAEW2jxV6lbyp/X+stFdvuRP7WhIa0KLTLs6EisNghQYdLu PdvNHPxAjvRdUcXfffm0VgZNWLwRskR+cG0s5Utj9cbqUz8Q7SVDHumQ0OZnbDJPxuj/ JL4sRC5MFeL5+mIyDJMHRnxnhdvp9hiYxX3+Hq8HyL9qPQmd0dBhK55w4+NeD3ZgWb4V SSiC3njNgGaOv7nIcq/+FE1ojBqAozXOJmmSd3im3dP8hWDgm8S2F//A19K2E/wP6A+z w2mF+wpH/RRXWyqtoLSqebR0rMrcg6Lp8vgtwVo3rv2tpzebbBOzDgm8XFbUoDIzptnt sfoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject:ironport-sdr :ironport-sdr; bh=ARfdXC1SobkxVyRjBZi4l3VfaceDbjouSeblTwxrhLs=; b=I6PkU1FvIs6GMKwSjI42FATcXADixn07mSqxxDv5jnFpkTL84LknLqa7+JQ332+MnM 70E04sajzQQHhfZuZDWS2fCob0Z8gw0KDyokfkx2lm9Tk/ShS+X4kJWhMTY47/J8T3tC 2iya+8ieIRXypciXT304sdjHTtADrbMeM2KmMppoP3r/vc1fAVuWDFGWZ5Qtai8DZhml bN0OqOMNqb6LbIK0GWfOHL3KoJ2OUpxKaacVRSdSZkmHEDQdzBBeEAjNF1uJPgrhh3ik zdcanYPDOY8pUcmOazj+aMs77X6yZKbMFKYmgnmnzpgN7RW00ZM7sq/jUzGrhWbDFLT4 lVag== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.129.153 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Return-Path: Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com. [68.232.129.153]) by gmr-mx.google.com with ESMTPS id n18si292684otr.3.2019.11.07.23.27.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Nov 2019 23:27:39 -0800 (PST) Received-SPF: pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.129.153 as permitted sender) client-ip=68.232.129.153; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.129.153 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com IronPort-SDR: 2hTj+MUuXA8jLW7MI/0IFKcKNC6DYH3OkKQxWZj/ICmpoD8VcJEvcAe1itfrJ49MpeNF9NekAL +W8Z3odtEYTLGDqQwyZgCE7ScydXCZxip4iowsQ85YF8G0jFyHyDeMKxcGkyWPgZ8J2/xZqlj4 rSHJRXJYyY6qkggZlxajqe1phDJDtYNwRrLR4KH6bZjvkKSQI5/wMtaUIhvaX0cwTJxQHx9aX0 P4WUfm1mPb/aliV0ytjDr71WZ4MxnXZ+t04Q8ZwyO7w9H6o/g8OBaIUVNAvhSkpC+qS6Vt3qWy pXA= X-IronPort-AV: E=Sophos;i="5.68,280,1569312000"; d="scan'208";a="44844411" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 07 Nov 2019 23:27:38 -0800 IronPort-SDR: CvDaZYtY/xv6D9z+B/5Bm0zrYmznHLKMomVNfrlFGM67ctZV9q4beAZ6R4klIdp9l1peElY6Pu MZthtLWE2o064Xv7EEoyJfKhzJe0sQdAWTwRl9KhBjmFmhyxEFQRGjox2ZC2KPLUpqAo3/hMiw MUKH+z2dpXjJNE8iQGPFBRPvLp355Bjt9WHWmIE5xPGM76v578W7+Ag3pG7901nXI/taFabcQ8 z2MwBkTemxyK8ZZleFaBZXgaWqrvKuBeS9GiCvtrp39BSpEixZ7vR8CdaMb7WKfHhG9JkUEJh8 4bI= Subject: Re: [PATCH L-C v3 0/7] linux-custom recipe rework To: Jan Kiszka , References: <1573118604-909-1-git-send-email-Cedric_Hombourger@mentor.com> <1573196839-1143-1-git-send-email-Cedric_Hombourger@mentor.com> <0c09512b-6cfa-ac03-7b5b-a5e6a61b323a@siemens.com> From: Cedric Hombourger Message-ID: <73ca92d2-1f56-5f53-e874-4e747838832f@mentor.com> Date: Fri, 8 Nov 2019 08:27:30 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <0c09512b-6cfa-ac03-7b5b-a5e6a61b323a@siemens.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Return-Path: Cedric_Hombourger@mentor.com X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-03.mgc.mentorg.com (139.181.222.3) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-TUID: bz20DymJE7fm On 11/8/19 8:12 AM, Jan Kiszka wrote: > On 08.11.19 08:07, 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. >> >> Version 3 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). > > dts files weren't tested so far. They end up in the wrong directory on > the target and, thus, will not be found by the boot loader. I can > likely tell you in a moment which part exactly is wrong. ok thanks. the boards I tested either do not use dtb files or require a custom dtb path setting anyway > > Jan > >> >> Changes compared to v2: >>    Rework custom_kernel.md >>    Compare PV+/-LOCAL_VERSION and kernelrelease string >> >> 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                          |  80 +++++++ >>   .../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           |  37 ++++ >>   .../linux/files/debian/isar/build.tmpl        |  45 ++++ >>   .../linux/files/debian/isar/clean.tmpl        |  21 ++ >>   .../linux/files/debian/isar/common.tmpl       |  50 +++++ >>   .../linux/files/debian/isar/install.tmpl      | 206 ++++++++++++++++++ >>   .../files/debian/linux-image.postinst.tmpl    |  29 +++ >>   .../files/debian/linux-image.postrm.tmpl      |  35 +++ >>   .../files/debian/linux-image.preinst.tmpl     |  25 +++ >>   .../linux/files/debian/linux-image.prerm.tmpl |  21 ++ >>   .../linux/files/debian/rules.tmpl             |  39 ++++ >>   meta/recipes-kernel/linux/linux-custom.inc    | 204 ++++++++++++----- >>   17 files changed, 752 insertions(+), 186 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/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 100644 >> meta/recipes-kernel/linux/files/debian/linux-image.preinst.tmpl >>   create mode 100644 >> meta/recipes-kernel/linux/files/debian/linux-image.prerm.tmpl >>   create mode 100755 meta/recipes-kernel/linux/files/debian/rules.tmpl >>