From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6755821036247187456 X-Received: by 2002:a1c:7c06:: with SMTP id x6mr7094298wmc.34.1573197151389; Thu, 07 Nov 2019 23:12:31 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a5d:4645:: with SMTP id j5ls5360933wrs.0.gmail; Thu, 07 Nov 2019 23:12:30 -0800 (PST) X-Google-Smtp-Source: APXvYqxDJqkN9pBKTeynfthEP0Q1fWjiMGwOdzPvoEgg0zxePOLChhcT2a/pDvUxBdMtmHBkwTvN X-Received: by 2002:a5d:4a45:: with SMTP id v5mr7259144wrs.288.1573197150713; Thu, 07 Nov 2019 23:12:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573197150; cv=none; d=google.com; s=arc-20160816; b=VGY6tb2bOqRygrSHit8M98J7+XjBALF2WUBSyqh5Apk7CBzi9HMI4e/zNoOBDMRSPD GS3q+TLMqEF9431YpVs3ilynoH5MYwFa+fFK26/iO6KjQIGmZuZv+pGaDV3vsApRi+cg pN3L2eO31ETK317b3wu4TDg8F7oSDM7KpiCqZ14WifPxmKw7cPLR5H9mVDU1aRSygTtj pmVUcem+fPsq1SRIlHzomIvPMGCAM3XBamNpQpiSqtTzolaJbBp9+4+cJj7TC2Lvb2W8 /26x8UQLPtEsyuWokm8Xmy0mCjx5UM+fimKre9kd6d79t54Lesd7pi4LStqp1qIK4Qen jtfg== 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=JgXijlEmXkldm242iRfqshGK5i/rhBe30jByAcU4mMw=; b=av4vUSYYDQS/qK4G9+WvS8usx+Vg1i+YKG1hse3atmPgRM+C/TWosJMUKDUJtRkmvr XpBAXpYHdgL412MmeB9Ze3xwMKDXHrQ2CIQ80LljBfE0DbDstqb5f6VHm6oyIbQ5HVbi SWfrkLJLcC7wSeb2aGDJRDh9h8pmRpi1q2AvpTDbLaPT3G/im0TyKItpMjIh9QxMxGSY +Wf6E7hx/zDHai7utL0TyFh2Kc23DxbxLS75BSDOE290919VSPai6besMpQtyQG+xIPH hYxLq3Fqz6fZrphcrUsmBeufuyEx5l4qjpS/mIaZuvkkWE58+gWfWnei1bTXYZNDo2sV unyQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id y188si283573wmc.0.2019.11.07.23.12.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Nov 2019 23:12:30 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) client-ip=194.138.37.39; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id xA87CUWi018674 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 8 Nov 2019 08:12:30 +0100 Received: from [167.87.14.235] ([167.87.14.235]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id xA87CTpT009249; Fri, 8 Nov 2019 08:12:30 +0100 Subject: Re: [PATCH L-C v3 0/7] linux-custom recipe rework To: Cedric Hombourger , isar-users@googlegroups.com References: <1573118604-909-1-git-send-email-Cedric_Hombourger@mentor.com> <1573196839-1143-1-git-send-email-Cedric_Hombourger@mentor.com> From: Jan Kiszka Message-ID: <0c09512b-6cfa-ac03-7b5b-a5e6a61b323a@siemens.com> Date: Fri, 8 Nov 2019 08:12:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <1573196839-1143-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: y20fbCFZUHm+ 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. 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 > -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux