From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6755821036247187456 X-Received: by 2002:a5d:6887:: with SMTP id h7mr2519307wru.397.1574697910726; Mon, 25 Nov 2019 08:05:10 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:f10c:: with SMTP id r12ls7757347wro.11.gmail; Mon, 25 Nov 2019 08:05:10 -0800 (PST) X-Google-Smtp-Source: APXvYqzUFY7RHoFLb1TD33YXlMjthC1UiYSjEeRm/U57wwWkt/IL2rR8laLgXKrbo/Geqax4qb8N X-Received: by 2002:adf:e8cf:: with SMTP id k15mr34014034wrn.256.1574697909948; Mon, 25 Nov 2019 08:05:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574697909; cv=none; d=google.com; s=arc-20160816; b=mmKlNkrUmwmYTabHiN8/qNhqhGZy4clzdnJeiasrfovujHyssE6nXImt4H4WTu8pkv M2RV/qYILJXlrdy9SOMFcRGvwXGUqqkToeJ/6O9RIZfLoqt1JgW9fRjjdH+2Ojp60wu3 IkPObLNnEWvt/52f1b7Hd/toI6Hw63j3wdLOQnOFMzt+5a1ItB6ObPVzbLsEB/XyzoBc ut1j5veWAi3L3yHMGKBN0MHL+Tp/DmVO+KcHNsfuiU/RgtAHiHxTcg4bu+iwsALQj3z3 N3cOFHZEoU/r/D6X15CTejDLingX+Mrlvv8RP1gIC5xK/4MdudKTUApxJdq757Zum5K5 HVNw== 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=602zMp+micYkmMu6qnY4cLUIs0zlXOXyi0XnQtcGCBs=; b=IqXIJEIUx68vPZ2IQisfA7mgndm2o3T3Uha0TGi2glY+Lvjw8xJ1CeA9Rt6ksXk+3f w/R5Su+HuhbuBg70nam81P+9jJ6GCK2KER/e3yo9vYPyz7BmPv0cO+ikBYFPN6nlWcH3 amjce0u/THspBwt1YTwZQPY+BljCXr+FFJj4B0BqJ02+oZNKxM6iQncIJWdrFvg/Tb39 V5zVbGXhjEPbFaxbWNcFiwfUBoY0iO8LSVE9rCiMECx5FCX22asuBBiv75hYYZaLBlxD iCkuHGKL0P0/oH9hEFUmlJm0t1qhN74+k7Y8MEej8YkRJJ/nrCDZuE20RW34yczAFbHi p9iw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.137.180 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Return-Path: Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com. [68.232.137.180]) by gmr-mx.google.com with ESMTPS id h2si291823wre.0.2019.11.25.08.05.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Nov 2019 08:05:09 -0800 (PST) Received-SPF: pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.137.180 as permitted sender) client-ip=68.232.137.180; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.137.180 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com IronPort-SDR: zOvFbCsnBevLfz2X2c1I61RQXZPl4DoRt4jqLYtHKqI2nvVIpTuubn1RX42DfjRwofgy7hR4tv KE3gfBtPLNg++XlBDcMBXo5W6uSHTIN4C49umi6TpKukVxJg7146a3Zls2nGRTsQ1ApRc/OB/R VwwZi4b2htCk4HH/1B398K8t4erO1/LTNpf9N3J+5Sf+NxcTn7zQdaTKxXpTYf1ehLPrEFNsD9 e2nlHYuwDvXTWm758SAtbhIQDJcWsa0T8uMHdd2G9nHFGxrxzQiYaGCzRdY1YLSkSvDuvsbKne UAE= X-IronPort-AV: E=Sophos;i="5.69,242,1571731200"; d="scan'208";a="43486754" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 25 Nov 2019 08:05:07 -0800 IronPort-SDR: OnH8ZjcCZq3X961zOC9DVqUZRbIHphXSkqvThQjDicIBFK0OtlOxkPpXb7MmhITv6seqky4ONB gIOyQ4THOU2guLd+8GWiH01y2JBdUsrC1TUJSjhSMKzWrfkQLs0wQEoOey8oDfMemz5Zg532ge /wtW4PqpnbAx8BrDN41/RAf2FmRIQsE3AsFM8MjdqNsqKfO2TJ6779TWrXMaLSnqOM8dsNPQQ3 phi9xXUwHsC9KCggWjg58mkdwO6QajDor5criHrlxXKpFEZg0oZERkwvfn2nPIMQQJs5SZP2WB b/c= From: Cedric Hombourger To: CC: Cedric Hombourger Subject: [PATCH L-C v4 0/5] linux-custom recipe rework Date: Mon, 25 Nov 2019 17:04:49 +0100 Message-ID: <1574697894-825-1-git-send-email-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <3c232836-fc03-b784-33e2-cc21393dfad7@siemens.com> References: <3c232836-fc03-b784-33e2-cc21393dfad7@siemens.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-07.mgc.mentorg.com (139.181.222.7) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-TUID: VWIFRXa7i/Gv 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 -- 2.20.1