Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7675B20ED for ; Mon, 3 Jun 2024 20:31:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.118.77.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717446666; cv=none; b=JMSRmLHpMUvMcv2W9VFfGSIiz/lLkV9QMw8HvZnNWMAFP6jsOFwl4iqjnYfmrAQ29Mm6u9njpFJVhAORhbnwlJEUMz//vgznpEBEpyMdsRM1i9f0tNovCCGtudCFTdGzhb6pvTpp7yQvprDs6iaZO0d709/0x7PorK17iTKstug= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717446666; c=relaxed/simple; bh=hBSgTsKgysy93K/gCriIy19SJYm/LcrQEltto6ioKgA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:Content-Type: MIME-Version:References; b=KrQSvSuHHxWod+c1Ug2DZ9jwlNOxIE990dq/I+GOK+bboDuGTm/cCZZi3IzED0tFArynj2HQ54p7A1+CtKzzeWtPoCoaoUPoK3roo3/mXXovsR/aTRFRxoa6qSWoxDiC1UoCoV3OxG1gEFHe+O/9ugbeV2VAgH0CT8a+x4QPcx0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=qyPqcpcn; arc=none smtp.client-ip=210.118.77.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="qyPqcpcn" Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20240603203101euoutp02f90f98643db3c320ca7c8c90aedff34f~VmKOpNHLa2740627406euoutp02C for ; Mon, 3 Jun 2024 20:31:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20240603203101euoutp02f90f98643db3c320ca7c8c90aedff34f~VmKOpNHLa2740627406euoutp02C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1717446661; bh=uqKdSL/HUvLIuLQg9Kpp9Fipu9vkVL6ZZW22saWs9uQ=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=qyPqcpcnTmMaUtswMNhlxpZiFl5rPXNrKcSlv6w/xZGH2AsE7odGRoNWtRpR/IFTy 0FELPQnzc1Ryp2fObYITsW2/PczN/F400r9RDl6Y3oGAHsJLxzqkZPCpfEF/QiWozI FCEpveSGI+m8sXVgE1l8CpcZkPbuobPawx01/C9c= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20240603203101eucas1p2ed7dab2ad4654af5861d352ae04c1fa2~VmKOhf5gV1239712397eucas1p25; Mon, 3 Jun 2024 20:31:01 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id E0.69.09620.5082E566; Mon, 3 Jun 2024 21:31:01 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20240603203100eucas1p14264097251e6d79ee859f3c50bf2f525~VmKN9KsJw1010610106eucas1p1R; Mon, 3 Jun 2024 20:31:00 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20240603203100eusmtrp1e79882ac26cc13111b8231550271530d~VmKN8tUiV2582325823eusmtrp1k; Mon, 3 Jun 2024 20:31:00 +0000 (GMT) X-AuditID: cbfec7f5-d31ff70000002594-6d-665e2805ffdb Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id DE.19.08810.4082E566; Mon, 3 Jun 2024 21:31:00 +0100 (BST) Received: from CAMSVWEXC02.scsc.local (unknown [106.1.227.72]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240603203100eusmtip1c33183b844f605fae32410ebb40c6513~VmKNwry2k2094320943eusmtip1D; Mon, 3 Jun 2024 20:31:00 +0000 (GMT) Received: from CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) by CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 3 Jun 2024 21:31:00 +0100 Received: from CAMSVWEXC01.scsc.local ([::1]) by CAMSVWEXC01.scsc.local ([fe80::7d73:5123:34e0:4f73%13]) with mapi id 15.00.1497.012; Mon, 3 Jun 2024 21:30:59 +0100 From: Daniel Gomez To: "mcgrof@kernel.org" , "kdevops@lists.linux.dev" CC: "gost.dev@samsung.com" , Daniel Gomez Subject: [PATCH v3 1/1] linux: generate refs automatically Thread-Topic: [PATCH v3 1/1] linux: generate refs automatically Thread-Index: AQHatfTxHrehl+RQGEaBftFdVq5qvA== Date: Mon, 3 Jun 2024 20:30:59 +0000 Message-ID: <20240603203057.64316-2-da.gomez@samsung.com> In-Reply-To: <20240603203057.64316-1-da.gomez@samsung.com> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrNIsWRmVeSWpSXmKPExsWy7djP87qsGnFpBr+6RC1+rnnJbHFjwlNG ByaPTas62TxebJ7JGMAUxWWTkpqTWZZapG+XwJXx9sNx1oJlx5kqHmz4wNzA2NPF1MXIySEh YCIx418HSxcjF4eQwApGiZdzNjBDOF8YJRacbWODcD4zSny7PJ8dpmXjpdVgtpDAckaJxzfD 4IrmbfzMBOGcZpRYM+8VG9zglm23wVrYBDQl9p3cBGaLCCRJPLi+hAXEZhaIkFjY8IcNxBYW sJJ4O2sfM0SNvUTLismMXYwcQLaexPszfCBhFgEVie+THoCN4RWwlDiw+D8jiM0J1Hpuwy+w 5xgFZCUerfzFDjFeXOLWk/lQTwtKLJq9hxnCFpP4t+shG4StI3H2+hNGCNtAYuvSfSwgayUE lCS652dCjNGTuDF1ChuErS2xbOFrZogTBCVOznwCDkcJgW5OiTXLd7JCzHGRuPhuG9RMYYlX x7dAQ1FG4vTkHpYJjNqzkJw3C8mOWUh2zEKyYwEjyypG8dTS4tz01GLjvNRyveLE3OLSvHS9 5PzcTYzA9HH63/GvOxhXvPqod4iRiYPxEKMEB7OSCG9fXXSaEG9KYmVValF+fFFpTmrxIUZp DhYlcV7VFPlUIYH0xJLU7NTUgtQimCwTB6dUA1OA74Nb+4I47qxIm7T9z4oC7Ws88gKeMVwn /F8WJyfm1zX2Bt54UbzZa9O6Sb4i+kW7DqzV5fDsOfFrdavC6b+qFS0Xpt6+0Hto6/4N7bvU WP8pXmVJ1P0R4zxl0tXr3yfOb53z6MNazSPsAY4md5PKM9er1CR+ieP6sqVn5+TsxdqlSRrm 0osLDO+dF2x1v/7mFdeRtw0MexbuczqWoBnBJ3hsEl/CvHqhN1GH5PQKj8rdCLY9fjRoh5bg bItP56bPD1CeGig/b2WzyZ6ez/s1KxuPiYdMsZ0ho/pFpDWn1DNuhkGN70rreS826gW6aLvp tx6Y17bY/duPJUav1ielbvRrFozZ8Wkt2+3nNy8osRRnJBpqMRcVJwIAxQ5aSY4DAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOIsWRmVeSWpSXmKPExsVy+t/xu7osGnFpBq9P6ln8XPOS2eLGhKeM Dkwem1Z1snm82DyTMYApSs+mKL+0JFUhI7+4xFYp2tDCSM/Q0kLPyMRSz9DYPNbKyFRJ384m JTUnsyy1SN8uQS/j7YfjrAXLjjNVPNjwgbmBsaeLqYuRk0NCwERi46XV7F2MXBxCAksZJV59 +gSVkJHY+OUqK4QtLPHnWhcbRNFHRom/D98xQzinGSXuLJ3MCOGsYJSYvXUrI0gLm4CmxL6T m9hBbBGBJIkH15ewgNjMAhESCxv+sIHYwgJWEm9n7WOGqLGXaFkBMogDyNaTeH+GDyTMIqAi 8X3SA7AxvAKWEgcW/wcbLwRkdxx6AmZzAo05t+EX2NWMArISj1b+YodYJS5x68l8qG8EJJbs Oc8MYYtKvHz8D+ozHYmz1yHmSAgYSGxduo8F5AQJASWJ7vmZEGP0JG5MncIGYWtLLFv4mhni HEGJkzOfsExglJ6FZNssJC2zkLTMQtKygJFlFaNIamlxbnpusaFecWJucWleul5yfu4mRmAK 2Hbs5+YdjPNefdQ7xMjEwXiIUYKDWUmEt68uOk2INyWxsiq1KD++qDQntfgQoykwiCYyS4km 5wOTUF5JvKGZgamhiZmlgamlmbGSOK9nQUeikEB6YklqdmpqQWoRTB8TB6dUAxNrBbfBecfG Sv+8oK/tJW5aOWei1E3SUh8H7tq2sqqYq3Tiuf/+NiHrFZ7IbSvN2d59nP9K/Pe3esXLFifu fW+S5FxUddlQpmWes9bOvpD+r33PkhR+/z2yf1F0WNekOQK2Z2by6lTP3hSV2Jgp6GtlkOVX pnZoyzy9bRs7fi3ab5bnaMu5lEvr2D9ff///Ci87n0xfGRglu/CVrVXA2tymxhflu3sNn205 yc/9/s5dcQW5PV+izKRn1Ent3rLnAnf283c7X2mJ1XjfOeD48Mu1d9qVQue2/26WFgzMzWaR 9/M6JlH/W9aK9dmDGk1Xq5Mmdzzs5nZFVXa38XI17jk+Lzn1z9yJx3u11oU7KbEUZyQaajEX FScCAAqhnzGKAwAA X-CMS-MailID: 20240603203100eucas1p14264097251e6d79ee859f3c50bf2f525 X-Msg-Generator: CA X-RootMTR: 20240603203100eucas1p14264097251e6d79ee859f3c50bf2f525 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20240603203100eucas1p14264097251e6d79ee859f3c50bf2f525 References: <20240603203057.64316-1-da.gomez@samsung.com> Generate a Kconfig choice/endchoice menu with a list of the latest git references for upstream repositories. * Default behaviour: latest-and-greatest. The script included (generate_refs.py) will create (if it does not exist) the Kconfig choice options with the latest and greatest kernel release references provided by kernel.org/releases.json. Every time make is run, the script will check for the date of the last modification, and will force an update if more than 24h has passed since last modification. The generated files are: Kconfig.refs-{next,stable,linus}. * make dynconfig: In addition, the script will generate and overwrite all the existing Kconfig.refs-* files (including next, stable and linus) when dynconfig is run. This mode will retrieve the information from the upstream git repoitories for all supported kernel trees in kdevops and will create a list with the latest 15 references found. Signed-off-by: Daniel Gomez --- .gitignore | 2 + Makefile | 3 + defconfigs/nfsd | 2 +- scripts/dynamic-kconfig.Makefile | 4 + scripts/gen-gitrefs.Makefile | 111 ++++++++ scripts/gen-kreleases.Makefile | 25 ++ scripts/generate_refs.py | 304 +++++++++++++++++++++ workflows/linux/Kconfig | 32 +-- workflows/linux/Kconfig.btrfs | 4 +- workflows/linux/Kconfig.cel | 31 +-- workflows/linux/Kconfig.jlayton | 31 +-- workflows/linux/Kconfig.kdevops | 17 +- workflows/linux/Kconfig.linus | 69 +---- workflows/linux/Kconfig.mcgrof | 48 +--- workflows/linux/Kconfig.next | 4 +- workflows/linux/Kconfig.refs-btrfs-devel | 15 + workflows/linux/Kconfig.refs-cel-linux | 27 ++ workflows/linux/Kconfig.refs-jlayton-linux | 27 ++ workflows/linux/Kconfig.refs-kdevops-linus | 15 + workflows/linux/Kconfig.refs-mcgrof-linus | 21 ++ workflows/linux/Kconfig.refs-mcgrof-next | 21 ++ workflows/linux/Kconfig.stable | 63 +---- workflows/linux/btrfs-devel-refs.yaml | 6 + workflows/linux/cel-linux-refs.yaml | 14 + workflows/linux/jlayton-linux-refs.yaml | 14 + workflows/linux/kdevops-linus-refs.yaml | 6 + workflows/linux/mcgrof-linus-refs.yaml | 10 + workflows/linux/mcgrof-next-refs.yaml | 10 + 28 files changed, 669 insertions(+), 267 deletions(-) create mode 100644 scripts/gen-gitrefs.Makefile create mode 100644 scripts/gen-kreleases.Makefile create mode 100755 scripts/generate_refs.py create mode 100644 workflows/linux/Kconfig.refs-btrfs-devel create mode 100644 workflows/linux/Kconfig.refs-cel-linux create mode 100644 workflows/linux/Kconfig.refs-jlayton-linux create mode 100644 workflows/linux/Kconfig.refs-kdevops-linus create mode 100644 workflows/linux/Kconfig.refs-mcgrof-linus create mode 100644 workflows/linux/Kconfig.refs-mcgrof-next create mode 100644 workflows/linux/btrfs-devel-refs.yaml create mode 100644 workflows/linux/cel-linux-refs.yaml create mode 100644 workflows/linux/jlayton-linux-refs.yaml create mode 100644 workflows/linux/kdevops-linus-refs.yaml create mode 100644 workflows/linux/mcgrof-linus-refs.yaml create mode 100644 workflows/linux/mcgrof-next-refs.yaml diff --git a/.gitignore b/.gitignore index 3a1ecd4..163570a 100644 --- a/.gitignore +++ b/.gitignore @@ -80,6 +80,8 @@ playbooks/roles/linux-mirror/linux-mirror-systemd/xfsprog= s-mirror.timer # yet. workflows/selftests/results/ =20 +workflows/linux/Kconfig.refs-* + .kernel-ci.* .kotd.* =20 diff --git a/Makefile b/Makefile index 266eccd..1678103 100644 --- a/Makefile +++ b/Makefile @@ -173,6 +173,9 @@ endif =20 include scripts/gen-hosts.Makefile include scripts/gen-nodes.Makefile +ifneq ($(MAKECMDGOALS),dynconfig) + include scripts/gen-kreleases.Makefile +endif =20 # disable built-in rules for this .SUFFIXES: diff --git a/defconfigs/nfsd b/defconfigs/nfsd index 796c1e4..2bac0f6 100644 --- a/defconfigs/nfsd +++ b/defconfigs/nfsd @@ -279,7 +279,7 @@ CONFIG_BOOTLINUX_TREE_NEXT=3Dy # CONFIG_BOOTLINUX_TREE_BTRFS_DEVEL is not set # CONFIG_BOOTLINUX_TREE_JLAYTON_LINUX is not set # CONFIG_BOOTLINUX_TREE_MCGROF_NEXT is not set -CONFIG_BOOTLINUX_TREE_NEXT_TAG=3D"next-20240108" +CONFIG_BOOTLINUX_TREE_NEXT_REF=3D"next-20240108" CONFIG_BOOTLINUX_TREE_NEXT_NAME=3D"linux-next" CONFIG_BOOTLINUX_TREE_NEXT_URL=3D"/mirror/linux-next.git" CONFIG_BOOTLINUX_TREE_NAME=3D"linux-next" diff --git a/scripts/dynamic-kconfig.Makefile b/scripts/dynamic-kconfig.Mak= efile index bdeb499..6fb5749 100644 --- a/scripts/dynamic-kconfig.Makefile +++ b/scripts/dynamic-kconfig.Makefile @@ -17,6 +17,10 @@ dynamic-kconfig-help: =20 PHONY +=3D dynamic-kconfig-help =20 +ifeq ($(MAKECMDGOALS),dynconfig) + include scripts/gen-gitrefs.Makefile +endif + dynconfig: $(Q)$(MAKE) dynconfig-pci =20 diff --git a/scripts/gen-gitrefs.Makefile b/scripts/gen-gitrefs.Makefile new file mode 100644 index 0000000..6cea238 --- /dev/null +++ b/scripts/gen-gitrefs.Makefile @@ -0,0 +1,111 @@ +# SPDX-License-Identifier: copyleft-next-0.3.1 + +$(info Generating git references...) + +export SRC_URI_HTTPS_LINUS =3D https://git.kernel.org/pub/scm/linux/kernel= /git/torvalds/linux.git +export SRC_URI_HTTPS_NEXT =3D https://git.kernel.org/pub/scm/linux/kernel/= git/next/linux-next.git +export SRC_URI_HTTPS_STABLE =3D https://git.kernel.org/pub/scm/linux/kerne= l/git/stable/linux.git + +export SRC_URI_HTTPS_MCGROF_LINUS =3D https://git.kernel.org/pub/scm/linux= /kernel/git/mcgrof/linux.git +export SRC_URI_HTTPS_MCGROF_NEXT =3D https://git.kernel.org/pub/scm/linux/= kernel/git/mcgrof/linux-next.git +export SRC_URI_HTTPS_BTRFS_DEVEL =3D https://github.com/kdave/btrfs-devel.= git +export SRC_URI_HTTPS_CEL_LINUX =3D https://git.kernel.org/pub/scm/linux/ke= rnel/git/cel/linux.git +export SRC_URI_HTTPS_JLAYTON_LINUX =3D https://git.kernel.org/pub/scm/linu= x/kernel/git/jlayton/linux.git +export SRC_URI_HTTPS_KDEVOPS_LINUS =3D https://github.com/linux-kdevops/li= nux.git + +GENERATED_REFS_LINUS :=3D $(shell \ + ./scripts/generate_refs.py \ + --prefix BOOTLINUX_TREE_LINUS \ + --output workflows/linux/Kconfig.refs-linus \ + --force \ + gitref \ + --repo $(SRC_URI_HTTPS_LINUS) \ + --refs 15 \ + ) + +GENERATED_REFS_NEXT :=3D $(shell \ + ./scripts/generate_refs.py \ + --prefix BOOTLINUX_TREE_NEXT \ + --output workflows/linux/Kconfig.refs-next \ + --force \ + gitref \ + --repo $(SRC_URI_HTTPS_NEXT) \ + --refs 15 \ + --filter-tags next* \ + ) + +GENERATED_REFS_STABLE :=3D $(shell \ + ./scripts/generate_refs.py \ + --prefix BOOTLINUX_TREE_STABLE \ + --output workflows/linux/Kconfig.refs-stable \ + --force \ + gitref \ + --repo $(SRC_URI_HTTPS_STABLE) \ + --refs 15 \ + ) + +GENERATED_REFS_MCGROF_LINUS :=3D $(shell \ + ./scripts/generate_refs.py \ + --prefix BOOTLINUX_TREE_MCGROF_LINUS \ + --output workflows/linux/Kconfig.refs-mcgrof-linus \ + --force \ + gitref \ + --repo $(SRC_URI_HTTPS_MCGROF_LINUS) \ + --refs 15 \ + --extra workflows/linux/mcgrof-linus-refs.yaml \ + ) + +GENERATED_REFS_MCGROF_NEXT :=3D $(shell \ + ./scripts/generate_refs.py \ + --prefix BOOTLINUX_TREE_MCGROF_NEXT \ + --output workflows/linux/Kconfig.refs-mcgrof-next \ + --force \ + gitref \ + --repo $(SRC_URI_HTTPS_MCGROF_NEXT) \ + --refs 15 \ + --extra workflows/linux/mcgrof-next-refs.yaml \ + ) + +GENERATED_REFS_BTRFS_DEVEL :=3D $(shell \ + ./scripts/generate_refs.py \ + --prefix BOOTLINUX_TREE_BTRFS_DEVEL \ + --output workflows/linux/Kconfig.refs-btrfs-devel \ + --force \ + gitref \ + --repo $(SRC_URI_HTTPS_BTRFS_DEVEL) \ + --refs 15 \ + --extra workflows/linux/btrfs-devel-refs.yaml \ + ) + +GENERATED_REFS_CEL_LINUX :=3D $(shell \ + ./scripts/generate_refs.py \ + --prefix BOOTLINUX_TREE_CEL_LINUX \ + --output workflows/linux/Kconfig.refs-cel-linux \ + --force \ + gitref \ + --repo $(SRC_URI_HTTPS_CEL_LINUX) \ + --refs 15 \ + --extra workflows/linux/cel-linux-refs.yaml \ + ) + +GENERATED_REFS_JLAYTON_LINUX :=3D $(shell \ + ./scripts/generate_refs.py \ + --prefix BOOTLINUX_TREE_JLAYTON_LINUX \ + --output workflows/linux/Kconfig.refs-jlayton-linux \ + --force \ + gitref \ + --repo $(SRC_URI_HTTPS_JLAYTON_LINUX) \ + --refs 15 \ + --extra workflows/linux/jlayton-linux-refs.yaml \ + ) + +GENERATED_REFS_KDEVOPS_LINUS :=3D $(shell \ + ./scripts/generate_refs.py \ + --prefix BOOTLINUX_TREE_KDEVOPS_LINUS \ + --output workflows/linux/Kconfig.refs-kdevops-linus \ + --force \ + gitref \ + --repo $(SRC_URI_HTTPS_KDEVOPS_LINUS) \ + --refs 15 \ + --extra workflows/linux/kdevops-linus-refs.yaml \ + ) diff --git a/scripts/gen-kreleases.Makefile b/scripts/gen-kreleases.Makefil= e new file mode 100644 index 0000000..103915c --- /dev/null +++ b/scripts/gen-kreleases.Makefile @@ -0,0 +1,25 @@ +# SPDX-License-Identifier: copyleft-next-0.3.1 + +GENERATED_REFS_NEXT :=3D $(shell \ + ./scripts/generate_refs.py \ + --prefix BOOTLINUX_TREE_NEXT \ + --output workflows/linux/Kconfig.refs-next \ + kreleases \ + --moniker linux-next \ + ) + +GENERATED_REFS_STABLE :=3D $(shell \ + ./scripts/generate_refs.py \ + --prefix BOOTLINUX_TREE_STABLE \ + --output workflows/linux/Kconfig.refs-stable \ + kreleases \ + --moniker stable \ + ) + +GENERATED_REFS_LINUS :=3D $(shell \ + ./scripts/generate_refs.py \ + --prefix BOOTLINUX_TREE_LINUS \ + --output workflows/linux/Kconfig.refs-linus \ + kreleases \ + --moniker mainline \ + ) diff --git a/scripts/generate_refs.py b/scripts/generate_refs.py new file mode 100755 index 0000000..6e55ed1 --- /dev/null +++ b/scripts/generate_refs.py @@ -0,0 +1,304 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: copyleft-next-0.3.1 +import os +import subprocess +import sys +import logging +import argparse +import time +import yaml +import json +import urllib.request + + +def popen( + cmd: list[str], environ: dict[str, str] =3D {}, comm: bool =3D True +) -> subprocess.Popen[bytes]: + try: + logging.debug(f"{' '.join(cmd)}") + p =3D subprocess.Popen( + cmd, stdout=3Dsubprocess.PIPE, stderr=3Dsubprocess.PIPE, env= =3Denviron + ) + if comm: + stdout, stderr =3D p.communicate() + if stdout: + logging.debug(stdout.decode("utf-8")) + if stderr: + logging.debug(stderr.decode("utf-8")) + logging.debug(f"Return code: {p.returncode}") + return {"process": p, "stdout": stdout.decode("utf-8")} + except subprocess.CalledProcessError as exc: + sys.exit(exc.returncode) + + +def parser(): + parser =3D argparse.ArgumentParser(description=3D"Git Reference genera= te tool") + # parser.add_argument('--foo', action=3D'store_true', help=3D'foo is g= reat option') + parser.add_argument("--debug", action=3D"store_true", help=3D"debug") + parser.add_argument( + "--output", + help=3D"output file", + required=3DTrue, + ) + parser.add_argument( + "--force", action=3D"store_true", help=3D"always generate output f= ile" + ) + parser.add_argument( + "--prefix", + help=3D"the Kconfig CONFIG prefix to use (e.g. BOOTLINUX_LINUS)", + required=3DTrue, + ) + + subparsers =3D parser.add_subparsers( + title=3D"subcommands", + description=3D"valid subcommands", + help=3D"additional help", + dest=3D"cmd", + ) + gitref =3D subparsers.add_parser("gitref", help=3D"git-ref tool (git-l= s-remote)") + gitref.add_argument( + "--repo", + help=3D"the upstream repository to check tags with git-ls-remote", + required=3DTrue, + ) + gitref.add_argument( + "--filter-heads", + help=3D"user additional ref filter for heads command", + default=3D"*", + ) + gitref.add_argument( + "--filter-tags", + help=3D"user additional ref filter for tags command", + default=3D"*", + ) + gitref.add_argument( + "--extra", + help=3D"extra configs (yaml)", + ) + gitref.add_argument( + "--refs", + type=3Dint, + default=3D1, + help=3D"number of references", + required=3DTrue, + ) + kreleases =3D subparsers.add_parser("kreleases", help=3D"kernel.org/re= leases.json") + kreleases.add_argument( + "--moniker", + help=3D"moniker (mainline, stable, longterm or linux-next)", + required=3DTrue, + ) + return parser + + +def check_file_date(file): + if not os.path.exists(file): + return True + modified_time =3D os.path.getmtime(file) + current_time =3D time.time() + if current_time - modified_time > 86400: + return True + return False + + +def _ref_generator_choices_static(args, conf_name, ref_name, ref_help): + refs =3D {} + with open(args.output, "a") as f: + logging.debug("static: {}".format(ref_name)) + refs.update({ref_name: conf_name}) + f.write("config {config}\n".format(config=3Dconf_name)) + # Do overwrite ref when custom + if "_CUSTOM_NAME" in ref_name: + f.write('\tbool "custom"\n'.format(ref=3Dref_name)) + else: + f.write('\tbool "{ref}"\n'.format(ref=3Dref_name)) + if ref_help: + f.write("\thelp\n") + f.write("\t\t{help}\n\n".format(help=3Dref_help)) + else: + f.write("\n") + return refs + + +def _ref_generator_choices(args, reflist, id) -> None: + refs =3D {} + # for refline in reflist.splitlines(): + for ref_name in reflist: + logging.debug("{}: {}".format(id, ref_name)) + config =3D "{prefix}_REF_{id}".format(prefix=3Dargs.prefix, id=3Di= d) + refs.update({ref_name: config}) + with open(args.output, "a") as f: + f.write("config {conf}\n".format(conf=3Dconfig)) + f.write('\t bool "{ref}"\n\n'.format(ref=3Dref_name)) + id +=3D 1 + return refs + + +def ref_generator(args, reflist, extraconfs) -> None: + """Generate output file. Example: + + choice + prompt "Tag or branch to use" + + config BOOTLINUX_TREE_NEXT_REF_0 + bool "akpm" + + config BOOTLINUX_TREE_NEXT_REF_1 + bool "akpm-base" + + config BOOTLINUX_TREE_NEXT_REF_2 + bool "master" + + config BOOTLINUX_TREE_NEXT_REF_3 + bool "pending-fixes" + + config BOOTLINUX_TREE_NEXT_REF_4 + bool "stable" + + endchoice + + config BOOTLINUX_TREE_NEXT_REF + string + default "akpm" if BOOTLINUX_TREE_NEXT_REF_0 + default "akpm-base" if BOOTLINUX_TREE_NEXT_REF_1 + default "master" if BOOTLINUX_TREE_NEXT_REF_2 + default "pending-fixes" if BOOTLINUX_TREE_NEXT_REF_3 + default "stable" if BOOTLINUX_TREE_NEXT_REF_4 + """ + if os.path.exists(args.output): + os.remove(args.output) + refs =3D {} + + with open(args.output, "a") as f: + f.write("# SPDX-License-Identifier: copyleft-next-0.3.1\n") + f.write("# Automatically generated file\n") + f.write("choice\n") + f.write('\tprompt "Tag or branch to use"\n\n') + + logging.debug("Generating...") + refs.update(_ref_generator_choices(args, reflist, len(refs))) + + if extraconfs: + for config in extraconfs: + refs.update( + _ref_generator_choices_static( + args, config["config"], config["ref"], config["help"] + ) + ) + + with open(args.output, "a") as f: + f.write("endchoice\n\n") + f.write("config {prefix}_REF\n".format(prefix=3Dargs.prefix)) + f.write("\tstring\n") + for r in refs.keys(): + # Do not include quotes when using CUSTOM_NAME + if "_CUSTOM_NAME" in r: + f.write('\tdefault {ref} if {conf}\n'.format(ref=3Dr, conf= =3Drefs[r])) + else: + f.write('\tdefault "{ref}" if {conf}\n'.format(ref=3Dr, co= nf=3Drefs[r])) + + +def remote(args) -> None: + heads =3D popen( + [ + "git", + "-c", + "versionsort.suffix=3D-", + "ls-remote", + "--sort=3D-version:refname", + "--heads", + args.repo, + args.filter_heads, + ] + ) + tags =3D popen( + [ + "git", + "-c", + "versionsort.suffix=3D-", + "ls-remote", + "--sort=3D-version:refname", + "--tags", + args.repo, + args.filter_tags, + ] + ) + + return [heads["stdout"], tags["stdout"]] + + +def gitref_getreflist(args, reflist): + refs =3D [] + for refline in reflist.splitlines(): + if "^{}" in refline: + continue + if len(refs) >=3D args.refs: + break + ref_name =3D refline.split("/")[-1] + refs.append(ref_name) + logging.debug("release: {}".format(ref_name)) + return refs + + +def gitref(args) -> None: + """Get git reference list using git-ls-remote.""" + + extraconfs =3D [] + if args.extra: + if os.path.exists(args.extra): + with open(args.extra, mode=3D"rt") as f: + yml =3D yaml.safe_load(f) + extraconfs =3D yml["configs"] + + refstr =3D remote(args) + reflist =3D [] + for rl in refstr: + _refs =3D gitref_getreflist(args, rl) + for r in _refs: + reflist.append(r) + + ref_generator(args, reflist, extraconfs) + + +def kreleases(args) -> None: + """Get the latest kernel releases from kernel.org/releases.json""" + + with urllib.request.urlopen("https://www.kernel.org/releases.json") as= url: + data =3D json.load(url) + + reflist =3D [] + for release in data["releases"]: + if release["moniker"] =3D=3D args.moniker: + reflist.append(release["version"]) + + ref_generator(args, reflist, []) + + +def main() -> None: + """Kconfig choice generator for git refereces""" + log =3D logging.getLogger() + log.setLevel(logging.INFO) + p =3D parser() + args, _ =3D p.parse_known_args() + if args.debug: + log.setLevel(logging.DEBUG) + + if not args.force and not check_file_date(args.output): + logging.debug("File already updated") + return + + cmd_disp =3D {"gitref": gitref, "kreleases": kreleases} + + cmd_disp[args.cmd](args) + + +if __name__ =3D=3D "__main__": + ret =3D 0 + try: + main() + except Exception: + ret =3D 1 + import traceback + + traceback.print_exc() + sys.exit(ret) diff --git a/workflows/linux/Kconfig b/workflows/linux/Kconfig index 650fc05..7de1242 100644 --- a/workflows/linux/Kconfig +++ b/workflows/linux/Kconfig @@ -171,10 +171,10 @@ config BOOTLINUX_TREE_NAME default BOOTLINUX_TREE_STABLE_NAME if BOOTLINUX_TREE_STABLE default BOOTLINUX_TREE_NEXT_NAME if BOOTLINUX_TREE_NEXT default BOOTLINUX_TREE_BTRFS_DEVEL_NAME if BOOTLINUX_TREE_BTRFS_DEVEL - default BOOTLINUX_KDEVOPS_TREE_NAME if BOOTLINUX_TREE_KDEVOPS_LINUS - default BOOTLINUX_MCGROF_TREE_NAME if BOOTLINUX_MCGROF_TREE - default BOOTLINUX_JLAYTON_TREE_NAME if BOOTLINUX_TREE_JLAYTON_LINUX - default BOOTLINUX_CEL_TREE_NAME if BOOTLINUX_TREE_CEL_LINUX + default BOOTLINUX_TREE_KDEVOPS_NAME if BOOTLINUX_TREE_KDEVOPS_LINUS + default BOOTLINUX_TREE_MCGROF_NAME if BOOTLINUX_TREE_MCGROF + default BOOTLINUX_TREE_JLAYTON_NAME if BOOTLINUX_TREE_JLAYTON_LINUX + default BOOTLINUX_TREE_CEL_NAME if BOOTLINUX_TREE_CEL_LINUX default BOOTLINUX_CUSTOM_NAME if BOOTLINUX_CUSTOM =20 config BOOTLINUX_TREE @@ -182,11 +182,11 @@ config BOOTLINUX_TREE default BOOTLINUX_TREE_LINUS_URL if BOOTLINUX_TREE_LINUS default BOOTLINUX_TREE_STABLE_URL if BOOTLINUX_TREE_STABLE default BOOTLINUX_TREE_NEXT_URL if BOOTLINUX_TREE_NEXT - default BOOTLINUX_MCGROF_TREE_URL if BOOTLINUX_MCGROF_TREE + default BOOTLINUX_TREE_MCGROF_URL if BOOTLINUX_TREE_MCGROF default BOOTLINUX_TREE_KDEVOPS_URL if BOOTLINUX_TREE_KDEVOPS_LINUS - default BOOTLINUX_TREE_BTRFS_TREE_URL if BOOTLINUX_TREE_BTRFS_DEVEL - default BOOTLINUX_JLAYTON_TREE_URL if BOOTLINUX_TREE_JLAYTON_LINUX - default BOOTLINUX_CEL_TREE_URL if BOOTLINUX_TREE_CEL_LINUX + default BOOTLINUX_TREE_BTRFS_URL if BOOTLINUX_TREE_BTRFS_DEVEL + default BOOTLINUX_TREE_JLAYTON_URL if BOOTLINUX_TREE_JLAYTON_LINUX + default BOOTLINUX_TREE_CEL_URL if BOOTLINUX_TREE_CEL_LINUX default BOOTLINUX_CUSTOM_URL if BOOTLINUX_CUSTOM =20 config BOOTLINUX_TEST_MESSAGE_ID_SET_BY_CLI @@ -224,14 +224,14 @@ config BOOTLINUX_TEST_MESSAGE_ID_INSTALL_B4 =20 config BOOTLINUX_TREE_TAG string - default BOOTLINUX_TREE_LINUS_TAG if BOOTLINUX_TREE_LINUS - default BOOTLINUX_TREE_STABLE_TAG if BOOTLINUX_STABLE - default BOOTLINUX_TREE_NEXT_TAG if BOOTLINUX_TREE_NEXT - default BOOTLINUX_TREE_BTRFS_DEVEL_TAG if BOOTLINUX_TREE_BTRFS_DEVEL - default BOOTLINUX_KDEVOPS_TREE_TAG if BOOTLINUX_TREE_KDEVOPS_LINUS - default BOOTLINUX_MCGROF_TREE_TAG if BOOTLINUX_MCGROF_TREE - default BOOTLINUX_TREE_JLAYTON_LINUX_TAG if BOOTLINUX_TREE_JLAYTON_LINUX - default BOOTLINUX_CEL_TREE_TAG if BOOTLINUX_TREE_CEL_LINUX + default BOOTLINUX_TREE_LINUS_REF if BOOTLINUX_TREE_LINUS + default BOOTLINUX_TREE_STABLE_REF if BOOTLINUX_STABLE + default BOOTLINUX_TREE_NEXT_REF if BOOTLINUX_TREE_NEXT + default BOOTLINUX_TREE_BTRFS_DEVEL_REF if BOOTLINUX_TREE_BTRFS_DEVEL + default BOOTLINUX_KDEVOPS_TREE_REF if BOOTLINUX_TREE_KDEVOPS_LINUS + default BOOTLINUX_MCGROF_TREE_REF if BOOTLINUX_MCGROF_TREE + default BOOTLINUX_TREE_JLAYTON_LINUX_REF if BOOTLINUX_TREE_JLAYTON_LINUX + default BOOTLINUX_TREE_CEL_REF if BOOTLINUX_TREE_CEL_LINUX default BOOTLINUX_CUSTOM_TAG if BOOTLINUX_CUSTOM =20 config BOOTLINUX_TREE_KERNELRELEASE diff --git a/workflows/linux/Kconfig.btrfs b/workflows/linux/Kconfig.btrfs index be1e1fa..9fd4160 100644 --- a/workflows/linux/Kconfig.btrfs +++ b/workflows/linux/Kconfig.btrfs @@ -1,8 +1,6 @@ if BOOTLINUX_TREE_BTRFS_DEVEL =20 -config BOOTLINUX_TREE_BTRFS_DEVEL_TAG - string - default "btrfs-devel" +source "workflows/linux/Kconfig.refs-btrfs-devel" =20 config BOOTLINUX_TREE_BTRFS_DEVEL_NAME string diff --git a/workflows/linux/Kconfig.cel b/workflows/linux/Kconfig.cel index 341ed69..782ae55 100644 --- a/workflows/linux/Kconfig.cel +++ b/workflows/linux/Kconfig.cel @@ -1,25 +1,6 @@ if BOOTLINUX_TREE_CEL_LINUX =20 -choice - prompt "cel-linux branch to use" - default BOOTLINUX_CEL_LINUX_NEXT - -config BOOTLINUX_CEL_LINUX_NEXT - bool "nfsd-next" - help - Pull the nfsd-next branch. - -config BOOTLINUX_CEL_LINUX_FIXES - bool "nfsd-fixes" - help - Pull the nfsd-fixes branch. - -config BOOTLINUX_CEL_LINUX_CUSTOM - bool "Custom branch name" - help - Pull a custom branch name. - -endchoice +source "workflows/linux/Kconfig.refs-cel-linux" =20 config BOOTLINUX_CEL_LINUX_CUSTOM_NAME string "Custom branch name" @@ -28,17 +9,11 @@ config BOOTLINUX_CEL_LINUX_CUSTOM_NAME help Custom branch name to use for Chuck Lever's linux tree. =20 -config BOOTLINUX_CEL_TREE_TAG - string - default "nfsd-next" if BOOTLINUX_CEL_LINUX_NEXT - default "nfsd-fixes" if BOOTLINUX_CEL_LINUX_FIXES - default BOOTLINUX_CEL_LINUX_CUSTOM_NAME if BOOTLINUX_CEL_LINUX_CUSTOM - -config BOOTLINUX_CEL_TREE_NAME +config BOOTLINUX_TREE_CEL_NAME string default "cel-linux" =20 -config BOOTLINUX_CEL_TREE_URL +config BOOTLINUX_TREE_CEL_URL string default "https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git" i= f BOOTLINUX_TREE_CEL_LINUX =20 diff --git a/workflows/linux/Kconfig.jlayton b/workflows/linux/Kconfig.jlay= ton index d80d2d3..d058532 100644 --- a/workflows/linux/Kconfig.jlayton +++ b/workflows/linux/Kconfig.jlayton @@ -1,25 +1,6 @@ if BOOTLINUX_TREE_JLAYTON_LINUX =20 -choice - prompt "jlayton-linux branch to use" - default BOOTLINUX_JLAYTON_LINUX_KDEVOPS - -config BOOTLINUX_JLAYTON_LINUX_KDEVOPS - bool "kdevops" - help - Use the kdevops branch. - -config BOOTLINUX_JLAYTON_LINUX_IVERSION - bool "iversion-next" - help - Use the iversion-next branch. - -config BOOTLINUX_JLAYTON_LINUX_CUSTOM - bool "Custom branch name" - help - Use a custom branch name. - -endchoice +source "workflows/linux/Kconfig.refs-jlayton-linux" =20 config BOOTLINUX_JLAYTON_LINUX_CUSTOM_NAME string "Custom branch name" @@ -28,17 +9,11 @@ config BOOTLINUX_JLAYTON_LINUX_CUSTOM_NAME help Custom branch name to use for Jeff Layton's linux tree. =20 -config BOOTLINUX_JLAYTON_LINUX_TAG - string - default BOOTLINUX_JLAYTON_LINUX_CUSTOM_NAME if BOOTLINUX_JLAYTON_LINUX_CU= STOM - default "kdevops" if BOOTLINUX_JLAYTON_LINUX_KDEVOPS - default "iversion-next" if BOOTLINUX_JLAYTON_LINUX_IVERSION - -config BOOTLINUX_JLAYTON_TREE_NAME +config BOOTLINUX_TREE_JLAYTON_NAME string default "jlayton-linux" =20 -config BOOTLINUX_JLAYTON_TREE_URL +config BOOTLINUX_TREE_JLAYTON_URL string default "git://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git"= if BOOTLINUX_TREE_JLAYTON_LINUX =20 diff --git a/workflows/linux/Kconfig.kdevops b/workflows/linux/Kconfig.kdev= ops index 4cb8388..be2e020 100644 --- a/workflows/linux/Kconfig.kdevops +++ b/workflows/linux/Kconfig.kdevops @@ -1,26 +1,13 @@ if BOOTLINUX_TREE_KDEVOPS_LINUS =20 -choice - prompt "kdevops-linus branch to use" - default BOOTLINUX_KDEVOPS_LINUS_LBS_MINORDER - -config BOOTLINUX_KDEVOPS_LINUS_LBS_MINORDER - bool "large-block-minorder" - help - Use the latest LBS branch based on Linus' tree. - -endchoice +source "workflows/linux/Kconfig.refs-kdevops-linus" =20 config BOOTLINUX_TREE_KDEVOPS_URL string default "https://github.com/linux-kdevops/linux.git" if !USE_LOCAL_LINUX_= MIRROR default "/mirror/kdevops-linus.git" if USE_LIBVIRT_MIRROR && BOOTLINUX_9P =20 -config BOOTLINUX_KDEVOPS_TREE_TAG - string - default "large-block-minorder" - -config BOOTLINUX_KDEVOPS_TREE_NAME +config BOOTLINUX_TREE_KDEVOPS_NAME string default "kdevops-linus" =20 diff --git a/workflows/linux/Kconfig.linus b/workflows/linux/Kconfig.linus index 33d0fda..5b22dd9 100644 --- a/workflows/linux/Kconfig.linus +++ b/workflows/linux/Kconfig.linus @@ -23,74 +23,7 @@ endchoice =20 if BOOTLINUX_TREE_LINUS =20 -choice - prompt "Linus' tag or branch to use" - default BOOTLINUX_LINUS_69 - -config BOOTLINUX_LINUS_MASTER - bool "master" - help - Use the master branch, the top of Linus' tree. - -config BOOTLINUX_LINUS_66_RC4 - bool "v6.6-rc4" - help - Use the v6.6-rc4 tag. - -config BOOTLINUX_LINUS_66_RC5 - bool "v6.6-rc5" - help - Use the v6.6-rc5 tag. - -config BOOTLINUX_LINUS_66_RC2 - bool "v6.6-rc2" - help - Use the v6.6-rc2 tag. - -config BOOTLINUX_LINUS_68_RC2 - bool "v6.8-rc2" - help - Use the v6.8-rc2 tag. - -config BOOTLINUX_LINUS_69_RC2 - bool "v6.9-rc2" - help - Use the v6.9-rc2 tag. - -config BOOTLINUX_LINUS_69_RC4 - bool "v6.9-rc4" - help - Use the v6.9-rc4 tag. - -config BOOTLINUX_LINUS_69_RC5 - bool "v6.9-rc5" - help - Use the v6.9-rc5 tag. - -config BOOTLINUX_LINUS_69_RC6 - bool "v6.9-rc6" - help - Use the v6.9-rc6 tag. - -config BOOTLINUX_LINUS_69 - bool "v6.9" - help - Use the v6.9 tag. - -endchoice - -config BOOTLINUX_TREE_LINUS_TAG - string - default "master" if BOOTLINUX_LINUS_MASTER - default "v6.6-rc2" if BOOTLINUX_LINUS_66_RC2 - default "v6.6-rc4" if BOOTLINUX_LINUS_66_RC2 - default "v6.6-rc5" if BOOTLINUX_LINUS_66_RC5 - default "v6.8-rc2" if BOOTLINUX_LINUS_68_RC2 - default "v6.9-rc2" if BOOTLINUX_LINUS_69_RC2 - default "v6.9-rc4" if BOOTLINUX_LINUS_69_RC4 - default "v6.9-rc5" if BOOTLINUX_LINUS_69_RC5 - default "v6.9-rc6" if BOOTLINUX_LINUS_69_RC6 - default "v6.9" if BOOTLINUX_LINUS_69 +source "workflows/linux/Kconfig.refs-linus" =20 config BOOTLINUX_TREE_LINUS_NAME string diff --git a/workflows/linux/Kconfig.mcgrof b/workflows/linux/Kconfig.mcgro= f index f2d2f89..350d9c1 100644 --- a/workflows/linux/Kconfig.mcgrof +++ b/workflows/linux/Kconfig.mcgrof @@ -1,65 +1,27 @@ if BOOTLINUX_TREE_MCGROF_LINUS =20 -choice - prompt "mcgrof-linus branch to use" - default BOOTLINUX_MCGROF_LINUS_LBS - -config BOOTLINUX_MCGROF_LINUS_LBS - bool "large-block-linus" - help - Use the latest LBS branch based on Linus' tree. - -config BOOTLINUX_MCGROF_LINUS_LBS_NOBDEV - bool "large-block-linus-nobdev" - help - Use the latest minimal branch for LBS which let's you use LBS - devices with a sectorsize compatibility based on Linus' tree. - -endchoice +source "workflows/linux/Kconfig.refs-mcgrof-linus" =20 endif # BOOTLINUX_TREE_MCGROF_LINUS =20 if BOOTLINUX_TREE_MCGROF_NEXT =20 -choice - prompt "mcgrof-next branch to use" - default BOOTLINUX_MCGROF_NEXT_LBS - -config BOOTLINUX_MCGROF_NEXT_LBS - bool "large-block-next" - help - Use the latest stable LBS branch which enables all the bells and - whistles for all types of LBS devices. - -config BOOTLINUX_MCGROF_NEXT_LBS_NOBDEV - bool "large-block-nobdev" - help - Use the latest minimal branch for LBS which let's you use LBS - devices with a sectorsize compatibility. - -endchoice +source "workflows/linux/Kconfig.refs-mcgrof-next" =20 endif # BOOTLINUX_TREE_MCGROF_NEXT =20 if BOOTLINUX_TREE_MCGROF_LINUS || BOOTLINUX_TREE_MCGROF_NEXT =20 -config BOOTLINUX_MCGROF_TREE +config BOOTLINUX_TREE_MCGROF bool default y =20 -config BOOTLINUX_MCGROF_TREE_TAG - string - default "large-block-linus" if BOOTLINUX_MCGROF_LINUS_LBS - default "large-block-linus-nobdev" if BOOTLINUX_MCGROF_LINUS_LBS_NOBDEV - default "large-block-20230915" if BOOTLINUX_MCGROF_NEXT_LBS - default "large-block-nobdev-20230915" if BOOTLINUX_MCGROF_NEXT_LBS_NOBDEV - -config BOOTLINUX_MCGROF_TREE_NAME +config BOOTLINUX_TREE_MCGROF_NAME string default "mcgrof-linus" if BOOTLINUX_TREE_MCGROF_LINUS default "mcgrof-next" if BOOTLINUX_TREE_MCGROF_NEXT =20 -config BOOTLINUX_MCGROF_TREE_URL +config BOOTLINUX_TREE_MCGROF_URL string default "https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-nex= t.git" if BOOTLINUX_TREE_MCGROF_NEXT && !USE_LOCAL_LINUX_MIRROR default "/mirror/mcgrof-next.git" if BOOTLINUX_TREE_MCGROF_NEXT && USE_LI= BVIRT_MIRROR && BOOTLINUX_9P diff --git a/workflows/linux/Kconfig.next b/workflows/linux/Kconfig.next index 6be0de4..e1c6c87 100644 --- a/workflows/linux/Kconfig.next +++ b/workflows/linux/Kconfig.next @@ -1,8 +1,6 @@ if BOOTLINUX_TREE_NEXT =20 -config BOOTLINUX_TREE_NEXT_TAG - string "linux-next tag to pull" - default "next-20240424" +source "workflows/linux/Kconfig.refs-next" =20 config BOOTLINUX_TREE_NEXT_NAME string diff --git a/workflows/linux/Kconfig.refs-btrfs-devel b/workflows/linux/Kco= nfig.refs-btrfs-devel new file mode 100644 index 0000000..f97ab16 --- /dev/null +++ b/workflows/linux/Kconfig.refs-btrfs-devel @@ -0,0 +1,15 @@ +# SPDX-License-Identifier: copyleft-next-0.3.1 +# Automatically generated file +choice + prompt "Tag or branch to use" + +config BOOTLINUX_BTRFS_DEVEL + bool "btrfs-devel" + help + Use development branch. + +endchoice + +config BOOTLINUX_TREE_BTRFS_DEVEL_REF + string + default "btrfs-devel" if BOOTLINUX_BTRFS_DEVEL diff --git a/workflows/linux/Kconfig.refs-cel-linux b/workflows/linux/Kconf= ig.refs-cel-linux new file mode 100644 index 0000000..f990235 --- /dev/null +++ b/workflows/linux/Kconfig.refs-cel-linux @@ -0,0 +1,27 @@ +# SPDX-License-Identifier: copyleft-next-0.3.1 +# Automatically generated file +choice + prompt "Tag or branch to use" + +config BOOTLINUX_CEL_LINUX_NEXT + bool "nfsd-next" + help + Pull the nfsd-next branch. + +config BOOTLINUX_CEL_LINUX_FIXES + bool "nfsd-fixed" + help + Pull the nfsd-fixed branch. + +config BOOTLINUX_CEL_LINUX_CUSTOM + bool "custom" + help + Use a custom branch name. + +endchoice + +config BOOTLINUX_TREE_CEL_LINUX_REF + string + default "nfsd-next" if BOOTLINUX_CEL_LINUX_NEXT + default "nfsd-fixed" if BOOTLINUX_CEL_LINUX_FIXES + default BOOTLINUX_CEL_LINUX_CUSTOM_NAME if BOOTLINUX_CEL_LINUX_CUSTOM diff --git a/workflows/linux/Kconfig.refs-jlayton-linux b/workflows/linux/K= config.refs-jlayton-linux new file mode 100644 index 0000000..52b0fbb --- /dev/null +++ b/workflows/linux/Kconfig.refs-jlayton-linux @@ -0,0 +1,27 @@ +# SPDX-License-Identifier: copyleft-next-0.3.1 +# Automatically generated file +choice + prompt "Tag or branch to use" + +config BOOTLINUX_JLAYTON_LINUX_KDEVOPS + bool "kdevops" + help + Use the latest kdevops branch. + +config BOOTLINUX_JLAYTON_LINUX_IVERSION + bool "iversion-next" + help + Use the iversion-next branch. + +config BOOTLINUX_JLAYTON_LINUX_CUSTOM + bool "custom" + help + Use a custom branch name. + +endchoice + +config BOOTLINUX_TREE_JLAYTON_LINUX_REF + string + default "kdevops" if BOOTLINUX_JLAYTON_LINUX_KDEVOPS + default "iversion-next" if BOOTLINUX_JLAYTON_LINUX_IVERSION + default BOOTLINUX_JLAYTON_LINUX_CUSTOM_NAME if BOOTLINUX_JLAYTON_LINUX_CU= STOM diff --git a/workflows/linux/Kconfig.refs-kdevops-linus b/workflows/linux/K= config.refs-kdevops-linus new file mode 100644 index 0000000..120842d --- /dev/null +++ b/workflows/linux/Kconfig.refs-kdevops-linus @@ -0,0 +1,15 @@ +# SPDX-License-Identifier: copyleft-next-0.3.1 +# Automatically generated file +choice + prompt "Tag or branch to use" + +config BOOTLINUX_KDEVOPS_LINUS_LBS_MINORDER + bool "large-block-minorder" + help + Use the latest LBS branch based on Linus's tree + +endchoice + +config BOOTLINUX_TREE_KDEVOPS_LINUS_REF + string + default "large-block-minorder" if BOOTLINUX_KDEVOPS_LINUS_LBS_MINORDER diff --git a/workflows/linux/Kconfig.refs-mcgrof-linus b/workflows/linux/Kc= onfig.refs-mcgrof-linus new file mode 100644 index 0000000..d2ca889 --- /dev/null +++ b/workflows/linux/Kconfig.refs-mcgrof-linus @@ -0,0 +1,21 @@ +# SPDX-License-Identifier: copyleft-next-0.3.1 +# Automatically generated file +choice + prompt "Tag or branch to use" + +config BOOTLINUX_MCGROF_LINUS_LBS + bool "large-block-linus" + help + Use the latest LBS branch based on Linus' tree. + +config BOOTLINUX_MCGROF_LINUS_LBS_NOBDEV + bool "large-block-linus-nobdev" + help + Use the latest minimal branch for LBS which let's you use LBS devices wi= th a sectorsize compatibility based on Linus' tree. + +endchoice + +config BOOTLINUX_TREE_MCGROF_LINUS_REF + string + default "large-block-linus" if BOOTLINUX_MCGROF_LINUS_LBS + default "large-block-linus-nobdev" if BOOTLINUX_MCGROF_LINUS_LBS_NOBDEV diff --git a/workflows/linux/Kconfig.refs-mcgrof-next b/workflows/linux/Kco= nfig.refs-mcgrof-next new file mode 100644 index 0000000..36d93c2 --- /dev/null +++ b/workflows/linux/Kconfig.refs-mcgrof-next @@ -0,0 +1,21 @@ +# SPDX-License-Identifier: copyleft-next-0.3.1 +# Automatically generated file +choice + prompt "Tag or branch to use" + +config BOOTLINUX_MCGROF_NEXT_LBS + bool "large-block-next" + help + Use the latest stable LBS branch which enables all the bells and whistle= s for all types of LBS devices. + +config BOOTLINUX_MCGROF_NEXT_LBS_NOBDEV + bool "large-block-nobdev" + help + Use the latest minimal branch for LBS which let's you use LBS devices wi= th a sectorsize compatibility + +endchoice + +config BOOTLINUX_TREE_MCGROF_NEXT_REF + string + default "large-block-next" if BOOTLINUX_MCGROF_NEXT_LBS + default "large-block-nobdev" if BOOTLINUX_MCGROF_NEXT_LBS_NOBDEV diff --git a/workflows/linux/Kconfig.stable b/workflows/linux/Kconfig.stabl= e index a0eaa1b..7b4b7b3 100644 --- a/workflows/linux/Kconfig.stable +++ b/workflows/linux/Kconfig.stable @@ -13,71 +13,10 @@ endchoice =20 if BOOTLINUX_TREE_STABLE =20 -choice - prompt "Stable branch to use" - default BOOTLINUX_STABLE_V66 - -config BOOTLINUX_STABLE_V419 - bool "linux-4.19.y" - help - Automatically enable the latest supported linux-4.19.y kernel. - -config BOOTLINUX_STABLE_V54 - bool "linux-5.4.y" - help - Automatically enable the latest supported linux-5.4.y kernel. - -config BOOTLINUX_STABLE_V510 - bool "linux-5.10.y" - help - Automatically enable the latest supported linux-5.10.y kernel. - -config BOOTLINUX_STABLE_V514 - bool "linux-5.14.y" - help - Automatically enable the latest supported linux-5.14.y kernel. - -config BOOTLINUX_STABLE_V517 - bool "linux-5.17.y" - help - Automatically enable the latest supported linux-5.17.y kernel. - -config BOOTLINUX_STABLE_V519 - bool "linux-5.19.y" - help - Automatically enable the latest supported linux-5.19.y kernel. - -config BOOTLINUX_STABLE_V60 - bool "linux-6.0.y" - help - Automatically enable the latest supported linux-6.0.y kernel. - -config BOOTLINUX_STABLE_V61 - bool "linux-6.1.y" - help - Automatically enable the latest supported linux-6.1.y kernel. - -config BOOTLINUX_STABLE_V66 - bool "linux-6.6.y" - help - Automatically enable the latest supported linux-6.6.y kernel. - -endchoice +source "workflows/linux/Kconfig.refs-stable" =20 endif # BOOTLINUX_TREE_STABLE =20 -config BOOTLINUX_TREE_STABLE_TAG - string - default "v4.19.133" if BOOTLINUX_STABLE_V419 - default "v5.4.210" if BOOTLINUX_STABLE_V54 - default "v5.10.105" if BOOTLINUX_STABLE_V510 - default "v5.14.4" if BOOTLINUX_STABLE_V514 - default "v5.17-rc7" if BOOTLINUX_STABLE_V517 - default "v5.19-rc4" if BOOTLINUX_STABLE_V519 - default "v6.0.9" if BOOTLINUX_STABLE_V60 - default "linux-6.1.y" if BOOTLINUX_STABLE_V61 - default "linux-6.6.y" if BOOTLINUX_STABLE_V66 - config BOOTLINUX_TREE_STABLE_NAME string default "linux-stable" if BOOTLINUX_TREE_STABLE diff --git a/workflows/linux/btrfs-devel-refs.yaml b/workflows/linux/btrfs-= devel-refs.yaml new file mode 100644 index 0000000..226a166 --- /dev/null +++ b/workflows/linux/btrfs-devel-refs.yaml @@ -0,0 +1,6 @@ +--- +configs: + - btrfs: + config: BOOTLINUX_BTRFS_DEVEL + ref: "btrfs-devel" + help: "Use development branch." diff --git a/workflows/linux/cel-linux-refs.yaml b/workflows/linux/cel-linu= x-refs.yaml new file mode 100644 index 0000000..a2676c8 --- /dev/null +++ b/workflows/linux/cel-linux-refs.yaml @@ -0,0 +1,14 @@ +--- +configs: + - next: + config: BOOTLINUX_CEL_LINUX_NEXT + ref: "nfsd-next" + help: "Pull the nfsd-next branch." + - fixes: + config: BOOTLINUX_CEL_LINUX_FIXES + ref: "nfsd-fixed" + help: "Pull the nfsd-fixed branch." + - custom: + config: BOOTLINUX_CEL_LINUX_CUSTOM + ref: BOOTLINUX_CEL_LINUX_CUSTOM_NAME + help: "Use a custom branch name." diff --git a/workflows/linux/jlayton-linux-refs.yaml b/workflows/linux/jlay= ton-linux-refs.yaml new file mode 100644 index 0000000..a490b2b --- /dev/null +++ b/workflows/linux/jlayton-linux-refs.yaml @@ -0,0 +1,14 @@ +--- +configs: + - kdevops: + config: BOOTLINUX_JLAYTON_LINUX_KDEVOPS + ref: "kdevops" + help: "Use the latest kdevops branch." + - iversion: + config: BOOTLINUX_JLAYTON_LINUX_IVERSION + ref: "iversion-next" + help: "Use the iversion-next branch." + - custom: + config: BOOTLINUX_JLAYTON_LINUX_CUSTOM + ref: BOOTLINUX_JLAYTON_LINUX_CUSTOM_NAME + help: "Use a custom branch name." diff --git a/workflows/linux/kdevops-linus-refs.yaml b/workflows/linux/kdev= ops-linus-refs.yaml new file mode 100644 index 0000000..b37e075 --- /dev/null +++ b/workflows/linux/kdevops-linus-refs.yaml @@ -0,0 +1,6 @@ +--- +configs: + - minorder: + config: BOOTLINUX_KDEVOPS_LINUS_LBS_MINORDER + ref: "large-block-minorder" + help: "Use the latest LBS branch based on Linus's tree" diff --git a/workflows/linux/mcgrof-linus-refs.yaml b/workflows/linux/mcgro= f-linus-refs.yaml new file mode 100644 index 0000000..d343b17 --- /dev/null +++ b/workflows/linux/mcgrof-linus-refs.yaml @@ -0,0 +1,10 @@ +--- +configs: + - master: + config: BOOTLINUX_MCGROF_LINUS_LBS + ref: "large-block-linus" + help: "Use the latest LBS branch based on Linus' tree." + - main: + config: BOOTLINUX_MCGROF_LINUS_LBS_NOBDEV + ref: "large-block-linus-nobdev" + help: "Use the latest minimal branch for LBS which let's you use LBS d= evices with a sectorsize compatibility based on Linus' tree." diff --git a/workflows/linux/mcgrof-next-refs.yaml b/workflows/linux/mcgrof= -next-refs.yaml new file mode 100644 index 0000000..d430a0a --- /dev/null +++ b/workflows/linux/mcgrof-next-refs.yaml @@ -0,0 +1,10 @@ +--- +configs: + - master: + config: BOOTLINUX_MCGROF_NEXT_LBS + ref: "large-block-next" + help: "Use the latest stable LBS branch which enables all the bells an= d whistles for all types of LBS devices." + - main: + config: BOOTLINUX_MCGROF_NEXT_LBS_NOBDEV + ref: "large-block-nobdev" + help: "Use the latest minimal branch for LBS which let's you use LBS d= evices with a sectorsize compatibility" --=20 2.43.0