From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6755821036247187456 X-Received: by 2002:a7b:c24b:: with SMTP id b11mr1890675wmj.125.1573118621334; Thu, 07 Nov 2019 01:23:41 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:387:: with SMTP id 129ls1339228wmd.3.canary-gmail; Thu, 07 Nov 2019 01:23:40 -0800 (PST) X-Google-Smtp-Source: APXvYqxxor57q9FPR2/7XTOINySiqPGQoIMMlSwTfWzM3qDM+5QMaEcUiNuSF5NjYT5zrY6OwMYq X-Received: by 2002:a05:600c:12:: with SMTP id g18mr1964857wmc.44.1573118620670; Thu, 07 Nov 2019 01:23:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573118620; cv=none; d=google.com; s=arc-20160816; b=GsID2OF8iqwuNaJmLLZxpjFLYC3Ikn2yT315UcGCWkb7/fp8OTkYuC7SNZRPCA6OAe YzemZNol8Zhu0MC7EjUTSjfTpRUx9E952xVFzVlZWZLG+73mG9Tb2O94YdZFBRqXmTUs asyz9b6Xot3hg/4dmbI2S0sKH9aiSKLCGuGyrFtO7ZoJWQIEwFCa2/WUdecsYeclTW02 3kplMprqmouFIfdYOfmqqnlFOqM2q8jby8kKcUGl2+/PviaXllbJ4/n33flebBM7VK6U EoH4dGEHFfR7LPqfFMJlfLqAmsx28ckeS+GEaOtBSAkAkpjlcLQpGJyyzvyYCWtwtNLy C0yQ== 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=J/Xat1cVbLFgMEUFi7N1O6pqiD+Uo4/PF4MaT2oNKEg=; b=LFxtruAwaWkjM4hl0re5nJw6KG71rgZBkehd6Ibr3dkk7RjxAv5wyJ14kNdxGJIQpv vqgN3xS2wSinr/h5P0B4xU32orHwl2s+0KILvTytPlvHiyA6HTKSdEnsSRwrwJpZExJX 09PFZwOn9n0mxdzuFd3m26dp/pWVssu/kchVehBTv73QdQpAuKUlDbyDn1cwDHP9wqpi PCYxCzYME8GIHjkfV5oOTG+Z8cNg39cHOhJlGfFkA7qZ6WtFHz3uMfiw3JYt8MvQQ5u9 X/d89+IW9z5ARaoku0/7xgxQqyiOMP5cmubrAATC7lN9twZ1g4g3tDvWLOfqOTFAkNeS uzaw== 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 q22si267335wme.2.2019.11.07.01.23.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Nov 2019 01:23:40 -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: ImSWj5A4zu+ecJ+g94b47BzGQtQcyNTh6F/UxcyvRSPsuuwnvRk6vDwGYgwOcYtS5qO4gxQz+P eZT5Yny6DQwUauhNMeSE62EIOVbh46Gf4U5dsn+pnrQPStDuIdY2ZNFwPVp95yO3DYMUNloU7y RYSaLMGZ87UqepVkIlYF/ibUc8O6IEgNwiR680GT5bEBcGgQLBoHx3htm3SKURzXVAABMagp5h A7DtLCGXzSXTZGg/ooSDSRbQ2WHIiGnd4Thf5khdigSPIlymnLMybYGptcquxFMFwy+EYta0FB dbA= X-IronPort-AV: E=Sophos;i="5.68,277,1569312000"; d="scan'208";a="42988922" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 07 Nov 2019 01:23:38 -0800 IronPort-SDR: YAUHjhZiBB6BvOABMkJIpPurCDwJQXGf4cc306GSJpjq0kLyYL/MxWEUr7LYUGHfth7o6iPih6 ANGWtZfnMpHdLKoqpfED4lGpxENZZeG3CYsMITSBW2qZLmI1ZCydtK5RS/FJbmc2Q0op/PLG5t b5VMsrrGjMxZzRwIMlIlcIv/RSUw3Irwa4FjPUPsLG5hqws3hCf8XMvq21L7YTJ/gmuPRXp1qy 6Phvvw3pBQ614i6nWR0oq2W45D/tuINbCG2ZGITaV0p9frANqFerXvgWSddVRjtXwbVPMVN26c YEc= From: Cedric Hombourger To: CC: Cedric Hombourger Subject: [PATCH L-C v2 0/7] linux-custom recipe rework Date: Thu, 7 Nov 2019 10:23:17 +0100 Message-ID: <1573118604-909-1-git-send-email-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1572962145-318-1-git-send-email-Cedric_Hombourger@mentor.com> References: <1572962145-318-1-git-send-email-Cedric_Hombourger@mentor.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-02.mgc.mentorg.com (139.181.222.2) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-TUID: R+8s/NDqt3C4 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. Version 2 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). 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 | 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