From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6755821036247187456 X-Received: by 2002:a2e:3313:: with SMTP id d19mr32114940ljc.240.1574869823521; Wed, 27 Nov 2019 07:50:23 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:cbce:: with SMTP id b197ls2449464lfg.5.gmail; Wed, 27 Nov 2019 07:50:22 -0800 (PST) X-Google-Smtp-Source: APXvYqzF1NL8svWSPDAoFcDNLyO2451D4tN6vVuz4uJRWUrNzsLHROBDnSLrgtN153CprrYASOnO X-Received: by 2002:ac2:55a3:: with SMTP id y3mr18446330lfg.108.1574869822847; Wed, 27 Nov 2019 07:50:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574869822; cv=none; d=google.com; s=arc-20160816; b=ktpKb+CMVtThMZKIOS7Ag68cNTcbzGREoFQdlcwZdVH48gfWuPSHuZpGKDQ/AVLarr ovbzSkiefGKgmls45RLJmRsqwZjaxxAz57gpEH7E2sPdF6fYpYFFPL41LyqBvcuYSexX Q9kj8MMZPYppUwrUgvoLiTq4YDkCDnd3AkYDNXCrRG/F70OTK5IcT+xnqsRcIv2qlD7P V+1MjRO1nmmV+aSmBO91dFCjZLceuxo2NJIb9wp3bRjKLgGdW0kR2rGOAPiKlYraJ7dg dmvIT5aVuvJcHZVVZWUAte+Do9AcUarW5UYsMVxO4gJYwVtK58giANidd5hD/jYM7pqD T1ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject; bh=aTWOpwy2IkCMYVR6xy7H2iVha6IiAiRe1CZ6i8Kj418=; b=BgQ8SauRrjLpEnAFuVvBiTkJaB3g583CtkU2UVY9A4J/TvZZ178c9BFS+ndHaOMuoo 6Cvflx0EcjS4ldkbCz8Dt+B+65GNSifR0KX1wucbjwEd1c+W7NyAFDrGAi+Jrp1S7UJD G7Qx/w33X6HlYghye50H8X4A18u3dS9Yr6ewow+vdHNCRI1kDX1ugdr30OtUJVLTksPS zEm2dLnGWaC5QRTXVFDHlfbARKCamcGqu6zE0VPTLWN1f7o2m+kH/zMmSLP71VVt3uPX HCmfRPs77SfxgGpHDbMj7D2GeICU4NNxjdxDbWCMKSeSTiM48STCBeZQlWVZ85WCZwaX df+Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of quirin.gylstorff@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=quirin.gylstorff@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id b5si255788ljo.0.2019.11.27.07.50.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Nov 2019 07:50:22 -0800 (PST) Received-SPF: pass (google.com: domain of quirin.gylstorff@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of quirin.gylstorff@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=quirin.gylstorff@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id xARFoLaA010452 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 27 Nov 2019 16:50:22 +0100 Received: from [139.25.69.120] ([139.25.69.120]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id xARFoLZU022770; Wed, 27 Nov 2019 16:50:21 +0100 Subject: Re: [PATCH L-C v4 0/5] linux-custom recipe rework To: isar-users@googlegroups.com, Cedric Hombourger References: <3c232836-fc03-b784-33e2-cc21393dfad7@siemens.com> <1574697894-825-1-git-send-email-Cedric_Hombourger@mentor.com> From: Gylstorff Quirin Message-ID: Date: Wed, 27 Nov 2019 16:49:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <1574697894-825-1-git-send-email-Cedric_Hombourger@mentor.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: djgpOhCX07k2 On 11/25/19 5:04 PM, 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 4 of this changeset was tested against ci_build.sh and some images were > booted on hardware available (including the de0-nano-soc). No regressions were > detected (to date). > > This version is still relying on qemu-user-static being in the buildchroot-host > I am unfortunetely getting little time to work on removing this dependency (for > the avoidance of doubt, I understand the views of the maintainers). The purpose > of this submission is to share progress. > > Changes compared to v3: > Ship device trees where they can be found (checked on de0-nano-soc) > Initialize LOCAL_VERSION from the recipe PV & PR > > 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 (5): > 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 > 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 +++++++ > ...ne_4.19.0.bb => linux-mainline_4.19.80.bb} | 4 +- > .../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 | 213 ++++++++++++++++++ > .../linux/files/debian/isar/version.cfg.tmpl | 2 + > .../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 | 209 ++++++++++++----- > 17 files changed, 761 insertions(+), 185 deletions(-) > create mode 100644 doc/custom_kernel.md > rename meta-isar/recipes-kernel/linux/{linux-mainline_4.19.0.bb => linux-mainline_4.19.80.bb} (73%) > 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/isar/version.cfg.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 > I tested this build with isar-cip-core[1] and the iwg20m build fails as it uses a 4.4.X kernel. ARM builds with Kernel version 4.4 don't copy the zImage to the build directory(build-full/.). The image stays in arch/arm/boot/. [1]: https://gitlab.com/cip-project/cip-core/isar-cip-core Kind regards Quirin