From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6755821036247187456 X-Received: by 2002:a1c:2342:: with SMTP id j63mr4673803wmj.56.1572969644794; Tue, 05 Nov 2019 08:00:44 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a5d:5512:: with SMTP id b18ls9050096wrv.16.gmail; Tue, 05 Nov 2019 08:00:44 -0800 (PST) X-Google-Smtp-Source: APXvYqySpjVWpoc1V/bLdAJ909qHbSLtgHtYzfo2Gt3M+XgpDoQoV6E0pRbRlkK1+YdBCja1Vjfb X-Received: by 2002:adf:e5cf:: with SMTP id a15mr651564wrn.143.1572969644070; Tue, 05 Nov 2019 08:00:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572969644; cv=none; d=google.com; s=arc-20160816; b=c5OXc0YXQbxz75dlAgX0J8nzLzGvTuDNzh+TjLYg0CgkYr7Cn3WNHJqlApQKlY58uS d4sAFHY8Sp8u5RNwb16NYGfsHhR/ChCcUE1wAK6pAh5GJgpHvMoDEaaFdIIFl54uPNX2 SRXM4NMhuaRpA/uDRmP1W1FMEJ8yOwRaA68N2AcqB8lcrVWYRCLlApz6VuLzxfb1vvf6 A3kiKn6CdA3ONCJwTZP4vGVAfdQ5U6gNQqxlwdQc1xo3PDgcrFSPZNCwtviIAsINcAqX 7PZ3dUIT4IGtKYVJTPkkNjkOTLporpCjtG4TyuwchtW7FODBIOYMmdSmCykzvcQxEhPo ZjdQ== 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:cc:to:subject :ironport-sdr:ironport-sdr; bh=R64Kru208Cy6APrqmci9X1QP51JAyUKkrWkddzaVwQM=; b=EYdw57+/b7TNgPpbGozZ1DLUoQCBCwyrJXSiQKDIn/wVypTsD6cGxZYaP+BJkYW9jC eVQB13mdya4jgsyGHQ/8pdyDjnAeCY7zRXfm57jkcvgEP/jjaIf20iUq9G8pFFp/HoHR aatkfMXH+fJO6vo/wk1USvM3BaLX9t2rh41KS88iLOMrU/8pAl5A/pHEpm0M//LMNYyH aCMIwhceQKDo8wfyW5HTXmcx9bE+6xHdJ5jCmDI7zEX8FWlLPEdryTbRiDojwxJiZ1HT oIaJCheL3YFRximAFmMy1POV0XVJIGEH1FLCBzC+QC30KCupMFxRzFj4x0osN+huet8t rx+g== 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 q22si11960wme.2.2019.11.05.08.00.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Nov 2019 08:00:44 -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: mDFkaNCN9ZiO9+zVsnTKgr3RkBowU40guVdSgdXtAQFxMGoFNFLMy8s3pII23XRulhHlNclzMf f/jO1okYwbtcpE61IA7kyTJGLGej6X5euOaanxziQGnkjyTYwxX7R0UV8owLmteeH1SE1Rr/Ce OiIa1BhA5E2lk3cJZEGOZiA93hTWIeRzhK8vBZ/UZM9x2ONa2IkP+OaB/qFnOlGstFrVo2b2V0 A45WKN5ChS0AtutTbHkaRwYxitj06dcnsgOV7NnEtXO+lpiKUyBAwSwJh4iPUc2X3JWWz8Kz1a Y4Q= X-IronPort-AV: E=Sophos;i="5.68,271,1569312000"; d="scan'208";a="42919892" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 05 Nov 2019 08:00:42 -0800 IronPort-SDR: 5ZyHMFvKSOKCwir0rYKVs/fHVIOWFcp2clxIhih4jFFLI5A/Cho3iJDKHDOxHHTCNEAoze9KN8 w3mIH+c8fQ31LlYb1u7+wLTaC+WEF0nIIr8gCgUclZb5t60PxcbzQhy4/egIH5OIvM0UyYk8+1 nHl58uVM14rEQWejCaVaG1DEXL0JBLi7b81fltPWHSSh7QsY3b9YlF8HsTGM+GP8C4WOPtlLBz YyPn7uepGcZ+EIndRColFJsHZNvjdlrPby8Beh3wq6Pwin0guw5KpVaHIv0JDdy28BgPSFqQvM kB4= Subject: Re: [PATCH 0/7] linux-custom recipe rework To: Henning Schild CC: References: <1572962145-318-1-git-send-email-Cedric_Hombourger@mentor.com> <20191105165547.620087b1@md1za8fc.ad001.siemens.net> From: Cedric Hombourger Message-ID: <89e0574f-99c2-0155-0828-328f02c4cde8@mentor.com> Date: Tue, 5 Nov 2019 17:00:32 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191105165547.620087b1@md1za8fc.ad001.siemens.net> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit 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: 6wPfMkjE79PH On 11/5/2019 4:55 PM, Henning Schild wrote: > Is that not v3? and what has changed since v2? this is the first time the reworked linux-custom recipe has been submitted (definitely a v1) I have included other patches that got me there and were previously submitted as mean to give you guys a single set to review but I can go either way and keep the little tweaks I worked on before separate and have this PR only contain the 2 patches that were added. I leave it up to you.. whatever is easier for you guys. > > Henning > > On Tue, 5 Nov 2019 14:55:38 +0100 > 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. >> >> This changeset was tested against ci_build.sh and some images were >> booted on hardware available here. No regressions were detected (to >> date). >> >> It is probably a good time to seek comments on the changeset and >> ideally get it merged before starting some of the work-packages such >> as getting perf packaged for Debian and Ubuntu distros. >> >> 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 >>