From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6755821036247187456 X-Received: by 2002:adf:82a7:: with SMTP id 36mr4807965wrc.203.1576696267334; Wed, 18 Dec 2019 11:11:07 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:e913:: with SMTP id q19ls1018248wmc.3.canary-gmail; Wed, 18 Dec 2019 11:11:06 -0800 (PST) X-Google-Smtp-Source: APXvYqzccetW4Rp4/jSxVfrswdaUPBFZwwWDBETizBoEtiiAzq9UrxFHiMWKZpLwSfeC2XRVfceC X-Received: by 2002:a1c:44d5:: with SMTP id r204mr5217713wma.122.1576696266502; Wed, 18 Dec 2019 11:11:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576696266; cv=none; d=google.com; s=arc-20160816; b=YGuHFL0YlPdmMTBMHzD9eWSPMbOFzIbBJGTSVjq3gWPhZIDh60gX+e1VOS1n1gfVGN UxtAucZimBkABQmPEU+AQwSyM8O3dF6O8qSVKzrqlvFhUwtj30z7vWRze1cH+WZwhdnf v9EVYhhQ5DGhIvLlJ71sq6k/GTNlg/k9ksKurldjFTjsnez1j0eN7fK8XiJZMsS13PYV KPzxkut/5F5LVZFyh72a+d53Td6PvyZYBu2DMosCmjIEnWA56/pxhfAEcXYKc2B9V1gz FeqRhd3jwyaSh/d3NWC2xePzQbaKcA/uvyhj1hku0jH38zwjhI9ND1X0FZZyULKfuIXG YeEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from; bh=eobIOd4zCn20w8jrpocXcYOzKZ0UjLx5oTqIomsZi14=; b=i3+qYAHW0LJLoSxM18I+MM+nmwu3I9/s0OIfaqbuKuFVoHUh9ecRcEaQwOmFr+rNTG PVtwZUHGA/lXPQz9jeILkuW0QzgODVN8cBwwPcACtix+wX2MwRfTWWNHP62UDpHZkVIl +R0aGWJK72x1IKIjyo4xbmNhiw5IZl5UyLlaOdzOOJkUGaiyE8TOlRFoL2QxF6tVk4nN M5LaQHJqgAzJtm1BrkPC9cOXSF9/tABqrvhmI1gk9bwV5UX3I/YNZHpE3RGb+zpDmYjS O+H7n1yBwci01nS0Rja43F4ue72Xs1qtzB+4zW/5mNjXHFbm6oAxdmT0AndA16y8waGG 4nvw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 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 thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id m12si148391wrq.1.2019.12.18.11.11.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Dec 2019 11:11:06 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@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 jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@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 xBIJB6Po008614 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 18 Dec 2019 20:11:06 +0100 Received: from md1f2u6c.ad001.siemens.net ([139.25.68.37]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id xBIJB5xw012070; Wed, 18 Dec 2019 20:11:05 +0100 From: Jan Kiszka To: isar-users Cc: Cedric Hombourger Subject: [PATCH v6 0/5] linux-custom recipe rework Date: Wed, 18 Dec 2019 20:10:59 +0100 Message-Id: X-Mailer: git-send-email 2.16.4 X-TUID: Jj/7gGgmnKDU Changes in this round: - decoupled recipe version from kernel version (permits also "latest" recipes) - renamed KERNEL_LOCALVERSION to LINUX_VERSION_EXTENSION (aligns us with yocto) - made LINUX_VERSION_EXTENSION optional and empty by default (backward compatible) - removed KERNEL_DTB_DIR and KERNEL_HEADERS_DIR customizability (simplifies the decoupling of versions, but also lacks use case) - added RECIPE-API-CHANGELOG for LINUX_VERSION_EXTENSION - set LINUX_VERSION_EXTENSION in linux-mainline recipe as test case - added GPL reference and stable URL to Debian install scripts As the deviations in patch 4 are too significant by now, I've adopted it completely, providing credit to Cedric's foundation work in the changelog. Jan CC: Cedric Hombourger Cedric Hombourger (3): 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.88 Jan Kiszka (2): linux-custom: rewrite to no longer depend on the kernel's builddeb linux-mainline: Test config fragments and LINUX_VERSION_EXTENSION RECIPE-API-CHANGELOG.md | 15 ++ doc/custom_kernel.md | 83 +++++++++ .../recipes-kernel/linux/files/no-root-nfs.cfg | 1 + .../recipes-kernel/linux/files/no-ubifs-fs.cfg | 1 + .../recipes-kernel/linux/linux-mainline_4.19.0.bb | 22 --- .../recipes-kernel/linux/linux-mainline_4.19.88.bb | 35 ++++ meta/recipes-kernel/linux/files/build-kernel.sh | 129 ------------- meta/recipes-kernel/linux/files/debian/compat | 1 + .../recipes-kernel/linux/files/debian/control.tmpl | 37 ++++ .../linux/files/debian/isar/build.tmpl | 40 ++++ .../linux/files/debian/isar/clean.tmpl | 21 +++ .../linux/files/debian/isar/common.tmpl | 49 +++++ .../linux/files/debian/isar/install.tmpl | 191 +++++++++++++++++++ .../linux/files/debian/isar/version.cfg.tmpl | 2 + .../linux/files/debian/linux-image.postinst.tmpl | 30 +++ .../linux/files/debian/linux-image.postrm.tmpl | 36 ++++ .../linux/files/debian/linux-image.preinst.tmpl | 26 +++ .../linux/files/debian/linux-image.prerm.tmpl | 22 +++ meta/recipes-kernel/linux/files/debian/rules.tmpl | 39 ++++ meta/recipes-kernel/linux/linux-custom.inc | 207 +++++++++++++++------ 20 files changed, 782 insertions(+), 205 deletions(-) create mode 100644 doc/custom_kernel.md create mode 100644 meta-isar/recipes-kernel/linux/files/no-root-nfs.cfg create mode 100644 meta-isar/recipes-kernel/linux/files/no-ubifs-fs.cfg delete mode 100644 meta-isar/recipes-kernel/linux/linux-mainline_4.19.0.bb create mode 100644 meta-isar/recipes-kernel/linux/linux-mainline_4.19.88.bb 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.16.4