From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6755821036247187456 X-Received: by 2002:a1c:7905:: with SMTP id l5mr7118409wme.76.1573196855359; Thu, 07 Nov 2019 23:07:35 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:9125:: with SMTP id j34ls5336517wrj.2.gmail; Thu, 07 Nov 2019 23:07:34 -0800 (PST) X-Google-Smtp-Source: APXvYqz+UOk+OVOM/g517q96p0HJwpmU0ERYaQHt+ysAydzfexj1yEfuy5QQyinvW6ReJip6MCT8 X-Received: by 2002:adf:dbc3:: with SMTP id e3mr4652844wrj.185.1573196854866; Thu, 07 Nov 2019 23:07:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573196854; cv=none; d=google.com; s=arc-20160816; b=vvxhHp4NdtL6LckjS/nfAMvxyytcjMGC3fqtJY3GE0UA7QOMbl6VPtRMbtbTNKawAd QZ+OK2ckOEOQxVNuyrd1aJf/QYIX1jJGYqFcsqqPSBALP4H0PcMUw36xYe11Z9TyG4nd OepcjK/p5/RWw//Pm0prDE4tEHLbNiS26s/ZQH14m8vrfJhIcR1+BOenCo2hbOXj4S8Q 9mtk2QnU6uRTa4YFE5rbJgWQz/NsB5fQ3O+qxb9SZshcQAhBplpXb/xLzZhDYvXkfoyW xYPGJx3tEZAdqYhwIXtCWmjZWnrzB9mihgsj0heN8zFc85MDKrL2Sy/k4+OdOo7kPFGq 7hTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:ironport-sdr:ironport-sdr; bh=TJEQAfv8OmXnUnUag/gMICSGYvsM3jIJX2H2xrAH6bA=; b=lkXGi5Ihlm8+KvSMHqsY9ruHUhj+FKWQ5J0c2hJ0x/sM9GJ4Ytgtuc0bG1GBLH6Vpf Jbrn9P8ISt0/w3aJ5zHecyTvKjjmLywSQlDN7DMpNHZbs/rrDnLMkykKLNGLDRX3go1H U9x/TTpYOX7WB8JCr++3g0PsYWMv6JAevnwJoNfFnibAjjJyewzr02vS9s81s1TPOTy0 NZgbm0ca0BotcTSa6ltnz2CIAVvSo6ZgeCQNvpiPh+IM2IwG3GOmUjuxFVTj4ovISy50 81nrm315o8A/2NM0AxqKlu3OzJFdJwnYGhJ1/36oAVE/gbcl9StqbRSAKxTLTlTdz/cX 1rlA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Return-Path: Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com. [68.232.137.252]) by gmr-mx.google.com with ESMTPS id s126si923030wme.1.2019.11.07.23.07.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Nov 2019 23:07:34 -0800 (PST) Received-SPF: pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.137.252 as permitted sender) client-ip=68.232.137.252; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com IronPort-SDR: piwsISMWHRO3OpbMjyV9taEsTQHi/u4Mmn374qxF7ho8ZBpgnRpHhyAcunUy3Jkdl3KG5hHm/p g7OC11TxjKG79NFfGzAZ78hOwPuRECk668naHwnCkmjfyAPQIjGw5Hil8xZgcV+/nYXY9jsFFR x9N/8+cNJO5fhV8i0hERh4NDQL2zB5jP61eCfutmxAVi9vBSJ+7QnUZEWRbIqTkyxV7MZtq3wc 8Nt+HsE7lJ4OEtmuwPk4oGGDW5s5CDzODnRMmRGHIhGisQSw18SouzkM1kcWNF7FS6ZTsPZAQy A54= X-IronPort-AV: E=Sophos;i="5.68,280,1569312000"; d="scan'208";a="43028234" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 07 Nov 2019 23:07:32 -0800 IronPort-SDR: FvtwoIo9/CGJjCTdrCNa91/7VzaF6qK3kE1I8/yy3puNB0DYtWTwTkLvXqXpwEBbrm5/2aLEan OTS0fUHitaJ+qLnX2rCqsy8FiJAoCBXjbuLS0Dz2PbBVib07iUpvuRj9FB4W7/Rua3BmYyNUCQ BQGsWU23/zR7DeAnRTt6DmbjAartgwmPx4rMp/d/Ygr8zRPRLccyP3KRxnwoDdqMiqq5lp7EOv xfYRl6UOgjRSeS3rxbz4xv6qAPccHPruI75ytUhw61Xg+Eims3SKfSWMxXnoqFE7agXfKCKrwx 7V0= From: Cedric Hombourger To: CC: Cedric Hombourger Subject: [PATCH L-C v3 0/7] linux-custom recipe rework Date: Fri, 8 Nov 2019 08:07:12 +0100 Message-ID: <1573196839-1143-1-git-send-email-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1573118604-909-1-git-send-email-Cedric_Hombourger@mentor.com> References: <1573118604-909-1-git-send-email-Cedric_Hombourger@mentor.com> MIME-Version: 1.0 Content-Type: text/plain Return-Path: Cedric_Hombourger@mentor.com X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-TUID: V8In+N6Fa/Lp 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). 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 -- 2.20.1