From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6755821036247187456 X-Received: by 2002:a54:4e8a:: with SMTP id c10mr4266366oiy.65.1572962160551; Tue, 05 Nov 2019 05:56:00 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6830:1e94:: with SMTP id n20ls235764otr.12.gmail; Tue, 05 Nov 2019 05:56:00 -0800 (PST) X-Google-Smtp-Source: APXvYqz8KGdkfDR2gSbzvKXiH8oRlqJqR4a6sJnXAftm6/RpF8nQSXqX8zt5Ho8VpYb3C/6UgX7n X-Received: by 2002:a9d:5f16:: with SMTP id f22mr23725605oti.78.1572962160118; Tue, 05 Nov 2019 05:56:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572962160; cv=none; d=google.com; s=arc-20160816; b=L0ikGL/u+NgYbBiHcqMBDUGZgQia/r6duL29UVrT5ZpAL9nE/jX/N9pux7NDvAdEJI 3m5A+Zj2ojtJqikwsCsXDbWg0dSR1ifjhg2bASoWtbKZBRbIjQA+xaoEV7R4Dru5JpMn 4/UcS+RzjlDdiOIW1+G91oJvPs5XhrImAmmguIAGuBMMLoOSDEuoUMwA23AFTBwbiGjZ 7ot4Vi90HhmnfCEC0SkNlOPnj5a0P1bf6shHzFJgw/L0lme/5YkvQDVH+Nl9x+mFdnTD j+euDeI9Qb3ie2bPeweUEGYYgAmYR/Jo1M8j1aBy0u6Cwo6BePqKf8XBuj6KFUVGhMtC 3X7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:subject:cc:to:from:ironport-sdr :ironport-sdr; bh=Hl7ebF5tGe4SBEnZiprPj3i3puU+rWp4yiRyozDEo1I=; b=bq8+hq09jGXEqEwVNvGueGHCoTkoafZBeomLS6Kpy+aqIHoqQfVFr/Ia2n5VA5LlUN 8OKBqr8pq/UYb3ZF4V6hCfhNGg6i7PjYi/LxSfM54UasbXmcDb380HUPkJwVOMk92LWO Ern6MWZ3EUsX75/x9KuL29W1B1DQKpi/WR6k2oMGhHuUt1GZbEn444u6QCxoXa/oPymc n2niftc27QcmVn4zZf6EYOgoiMvmokY2b8gqU4zjV9vu9tg3ZbNS1yF63v+UBkh2SxU/ eHBI/ipbzkHtyTgngOMhALmNjcy8OM7UDl4XqNShcff+Z1dFySWmwxtYMtGLANMHvBWz z7/g== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.141.98 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Return-Path: Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com. [68.232.141.98]) by gmr-mx.google.com with ESMTPS id e3si896752oti.0.2019.11.05.05.55.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Nov 2019 05:56:00 -0800 (PST) Received-SPF: pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.141.98 as permitted sender) client-ip=68.232.141.98; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.141.98 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com IronPort-SDR: 9qvxjdExZosvITUxHjooUbVrVPmRxCF7hKYcsc5DhoOGyNSftRST4CT9GqIqXCkpIcOhKF59Wk Nz4B+rC2L4Uaif+ChuH24foUsdLFKEl5qzJl5deaFldT7Abr5WGIp5Y5VMakC5Bpyi2IfWA4L+ QzDAg8Y3SKiWrYyz4SuQX9pcmrykxhouBOWpHU8pwhCI6Kp/fIkAIPzrjxEKkjrDYhdfQkqr0a TLbANuc+mRSP7k/tUOrQj5rQUJ1l76/ro+4Y5hVvigXarncfNBVgcINJQXNpMUZ0qP1hMoDs1T Fn0= X-IronPort-AV: E=Sophos;i="5.68,271,1569312000"; d="scan'208";a="42817984" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 05 Nov 2019 05:55:58 -0800 IronPort-SDR: ZZCTRBsffNaywrfJQf0DBAbEeYXgkCFLHaGnvvvtJLTXjl+9C8rE8gCG9W0vDkLmlMXROLx/Or 5aljC0f8gJKhKyFb0THgtSPo0HXFKKIl5iklBXlFy3BD8f7bxhMoD8UxHf6WMSpo8OOxxqODHX El1Gc/TBFRBjEYS63ixv/s/kyD2gAWy/U1MdOqDFC2iVSGFl8qm1XrJerrOeQ8ae0RywTuwzZz bB85Qwd+YNOP7BXhi+QoSiZ3y6uFIGMrSIl8Ty1fkXnCCD0iLlcSmNSSO03M40P3I7eNBX1in2 Gao= From: Cedric Hombourger To: CC: Cedric Hombourger Subject: [PATCH 0/7] linux-custom recipe rework Date: Tue, 5 Nov 2019 14:55:38 +0100 Message-ID: <1572962145-318-1-git-send-email-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.7.4 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-06.mgc.mentorg.com (139.181.222.6) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-TUID: ryrf3YzEU2sA 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 -- 2.20.1