Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 946EC2E40E for ; Sat, 15 Jun 2024 21:05:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718485538; cv=none; b=K2G0LwOVB0kFcAaxeAY79X5A/mvPBqU79Gy6CJysbVuESSHUZL66uDpMmRBzaRd/+dAO66K3ZrqbyN/TarqlGWuXm0jIg0oU0vKUTYRfZq6qgWidpJqOGTEyzl5lthFEnGD7rSmZbeJdfodV2eJKI1L6YnKsEAa2hvTvHpWJsXc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718485538; c=relaxed/simple; bh=cNcco6HcjUjhDYTAwnIEoyd2IKYOaUZTngGrkhOXuoE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kFYoS7XDnew/xTwc5vvwBTjcAxbv5zIy1fRU78fvz+52WOe9em8/+BGoPQcrV2hrRdBofH9ZwBH4PGVca5suQH9q8PsP7+3dyZMyT5OCLNusiQ6mz86HEJy/Xfn0+rIRpEqx4+C/anZCrRde9qCIeO6BYFAuywfkTFbq0zMiIa0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kruces.com; spf=pass smtp.mailfrom=kruces.com; dkim=pass (2048-bit key) header.d=kruces-com.20230601.gappssmtp.com header.i=@kruces-com.20230601.gappssmtp.com header.b=GBED81cV; arc=none smtp.client-ip=209.85.218.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kruces.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kruces.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kruces-com.20230601.gappssmtp.com header.i=@kruces-com.20230601.gappssmtp.com header.b="GBED81cV" Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a6f7b785a01so38211566b.1 for ; Sat, 15 Jun 2024 14:05:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kruces-com.20230601.gappssmtp.com; s=20230601; t=1718485533; x=1719090333; darn=lists.linux.dev; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=XcqvDCUFWW3InQYC77k2cq6+/kGTAi8l7k6kWSbw89A=; b=GBED81cVdnLmae41Rw0BAVo+TnKOaRbLs/vFuZr3KVZd56CQrOlA90uqFQiCQwqA+/ ByXhgR24nZddGXbX8NwFrMfy4x4LQZBdBAc2BM7VSj448HtZVj3ne4mzSfnipCr/TwuM oRH/ncEsRajrlcKrlkxoW0/KVaMDwLDpuVG7GEL6+MSyc4pTAbfktMptlbWfgurrSWEp nU2aX+SidvOi6VAIViNkKRunL7Zp9l/Rv2hvtcO79pk2nlMIqUx5cv+ZUqN8a7U08Jhl k+VIDdPFDIr/vPPgOQBs7sfahmkVqvDqAK36MlARGAHOlk53srKS3eDyn4RZIGMjNivw mwtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718485533; x=1719090333; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=XcqvDCUFWW3InQYC77k2cq6+/kGTAi8l7k6kWSbw89A=; b=KZsVHBP40wVT/u7i6unUE7TTwN2LaBEduidlZPafeyY+PrKdcuQoqTiX4Gq8zls1or M9TcMriA1x7gksu9YIAkr1wtEgCCPuOhkE8RmLMBtjEVPac1P5Ci//KMPRTp6MVNksR0 KNCB7Exl8Q2vqYoce2jmkWfVqTBoYkXG9cfRKM0Sj/ERTewGSsEPsos5XgCdQsK1lOfL 1yGFDPKiUNuzgvylQQpGXPGRqyoA1aA8Updh0eZ1JCFN7BBE8ViCUQBRHT5EAIDQXshJ lCAcn79VakVbE55/NdqUbtFfK3ofAsgCfvvUz9AkzdqSb6u9rW2e+DAQy5ZFI+f2fQ6g 6Zsw== X-Forwarded-Encrypted: i=1; AJvYcCWFOU+YEV3Rt7b3ABiIoZYN2Arnm6PXzJDSYu3ZVMuSZbNpsodE4SVusze7rqN1apvgIe46/sSkkOVy3016S/Eu6rNI9hlmsg== X-Gm-Message-State: AOJu0Yze8uGcnPrKY6MCQSWqespPPGVlV0I5PvS/gAdY6lsMviNQNhTv KcF+5DsdulkqH5NQkDbboMz0CRGWV6+U5Aprc/RGok4ynHGoAluqhMb/yEqhpzI= X-Google-Smtp-Source: AGHT+IGkty7lyur/4v1+PKp2TDxr/7z/P82IOBSGIxhkIFPrju47GKcVWZ7t8CWgSaVllEySEFrrjw== X-Received: by 2002:a17:906:1446:b0:a6c:7181:4ffe with SMTP id a640c23a62f3a-a6f60de2519mr377077866b.66.1718485532359; Sat, 15 Jun 2024 14:05:32 -0700 (PDT) Received: from localhost.. (89-23-255-189.ip4.fiberby.net. [89.23.255.189]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f7ea3a5c9sm13677366b.169.2024.06.15.14.05.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 14:05:31 -0700 (PDT) Sender: Daniel Gomez From: "Daniel Gomez (Samsung)" X-Google-Original-From: "Daniel Gomez (Samsung)" To: mcgrof@kernel.org, kdevops@lists.linux.dev Cc: da.gomez@samsung.com, gost.dev@samsung.com Subject: [PATCH v4 1/1] linux: generate refs automatically Date: Sat, 15 Jun 2024 23:05:22 +0200 Message-ID: <20240615210522.39188-2-da.gomez@samsung.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240615210522.39188-1-da.gomez@samsung.com> References: <20240615210522.39188-1-da.gomez@samsung.com> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Daniel Gomez Generate a Kconfig choice/endchoice menu with a list of the latest git references for upstream repositories. * Default behaviour for next, stable and linus trees: latest-and-greatest + static refs. The script included (generate_refs.py) will create the Kconfig choice options with the latest and greatest kernel release references provided by kernel.org/releases.json including the static references defined in the YAML files. 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}. * Kconfig.refs-{btrfs-devel,cel-linux,jlayton-linux,kdevops-linus, mcgrof-linus,mcgrof-next} files are autogenerated using their respective YAML static configuration files. This is to be able to run gitrefs and automatically generate the latest references using gitrefs (see below) including the static references. Note: This files are also included in kdevops tree. If you need to modify them, just modify the YAML file to autogenerate the Kconfig and send a patch. * 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/cxl-switch | 8 +- defconfigs/nfsd | 4 +- docs/how-extra-vars-generated.md | 8 +- playbooks/roles/bootlinux/README.md | 4 +- playbooks/roles/bootlinux/defaults/main.yml | 4 +- playbooks/roles/bootlinux/tasks/main.yml | 8 +- .../bootlinux/tasks/update-grub/install.yml | 6 +- scripts/dynamic-kconfig.Makefile | 4 + scripts/gen-gitrefs.Makefile | 111 +++++++ scripts/gen-kreleases.Makefile | 28 ++ scripts/generate_refs.py | 308 ++++++++++++++++++ scripts/workflows/fstests/fstests_watchdog.py | 4 +- scripts/workflows/generic/run_kernel_ci.sh | 2 +- workflows/fstests/Makefile | 4 +- .../xfs/unassigned/fstests-next-20230515 | 2 +- workflows/linux/Kconfig | 46 +-- 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/Makefile | 14 +- 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/linus-refs.yaml | 38 +++ workflows/linux/mcgrof-linus-refs.yaml | 10 + workflows/linux/mcgrof-next-refs.yaml | 10 + workflows/linux/next-refs.yaml | 6 + workflows/linux/stable-refs.yaml | 38 +++ 42 files changed, 798 insertions(+), 307 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/linus-refs.yaml create mode 100644 workflows/linux/mcgrof-linus-refs.yaml create mode 100644 workflows/linux/mcgrof-next-refs.yaml create mode 100644 workflows/linux/next-refs.yaml create mode 100644 workflows/linux/stable-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/xfsprogs-mirror.timer # yet. workflows/selftests/results/ +workflows/linux/Kconfig.refs-* + .kernel-ci.* .kotd.* diff --git a/Makefile b/Makefile index 82e5a29..e6ff437 100644 --- a/Makefile +++ b/Makefile @@ -174,6 +174,9 @@ endif include scripts/gen-hosts.Makefile include scripts/gen-nodes.Makefile +ifneq ($(MAKECMDGOALS),dynconfig) + include scripts/gen-kreleases.Makefile +endif # disable built-in rules for this .SUFFIXES: diff --git a/defconfigs/cxl-switch b/defconfigs/cxl-switch index 01daff9..6c7b034 100644 --- a/defconfigs/cxl-switch +++ b/defconfigs/cxl-switch @@ -13,12 +13,12 @@ CONFIG_WORKFLOW_LINUX_CUSTOM=y CONFIG_BOOTLINUX=y CONFIG_BOOTLINUX_9P=y CONFIG_BOOTLINUX_CUSTOM=y -CONFIG_BOOTLINUX_CUSTOM_NAME="cxl-fixes" -CONFIG_BOOTLINUX_CUSTOM_URL="https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git" -CONFIG_BOOTLINUX_CUSTOM_TAG="cxl-fixes-6.6-rc3" +CONFIG_BOOTLINUX_TREE_CUSTOM_NAME="cxl-fixes" +CONFIG_BOOTLINUX_TREE_CUSTOM_URL="https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git" +CONFIG_BOOTLINUX_TREE_CUSTOM_REF="cxl-fixes-6.6-rc3" CONFIG_BOOTLINUX_TREE_NAME="cxl-fixes" CONFIG_BOOTLINUX_TREE="https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git" -CONFIG_BOOTLINUX_TREE_TAG="cxl-fixes-6.6-rc3" +CONFIG_BOOTLINUX_TREE_REF="cxl-fixes-6.6-rc3" CONFIG_QEMU_ENABLE_CXL=y CONFIG_QEMU_ENABLE_CXL_SWITCH_TOPOLOGY_1=y CONFIG_WORKFLOWS_TESTS=y diff --git a/defconfigs/nfsd b/defconfigs/nfsd index 796c1e4..15f1f4c 100644 --- a/defconfigs/nfsd +++ b/defconfigs/nfsd @@ -279,13 +279,13 @@ CONFIG_BOOTLINUX_TREE_NEXT=y # 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="next-20240108" +CONFIG_BOOTLINUX_TREE_NEXT_REF="next-20240108" CONFIG_BOOTLINUX_TREE_NEXT_NAME="linux-next" CONFIG_BOOTLINUX_TREE_NEXT_URL="/mirror/linux-next.git" CONFIG_BOOTLINUX_TREE_NAME="linux-next" CONFIG_BOOTLINUX_TREE="/mirror/linux-next.git" # CONFIG_BOOTLINUX_TEST_MESSAGE_ID is not set -CONFIG_BOOTLINUX_TREE_TAG="next-20240108" +CONFIG_BOOTLINUX_TREE_REF="next-20240108" CONFIG_BOOTLINUX_TREE_LOCALVERSION="" # CONFIG_BOOTLINUX_SHALLOW_CLONE is not set # end of Get and install Linux from git diff --git a/docs/how-extra-vars-generated.md b/docs/how-extra-vars-generated.md index 2c7122d..a50f812 100644 --- a/docs/how-extra-vars-generated.md +++ b/docs/how-extra-vars-generated.md @@ -60,19 +60,19 @@ This make it easy to just `git grep BOOTLINUX_ARGS` to see what is defined. TREE_URL:=$(subst ",,$(CONFIG_BOOTLINUX_TREE)) TREE_NAME:=$(notdir $(TREE_URL)) TREE_NAME:=$(subst .git,,$(TREE_NAME)) -TREE_TAG:=$(subst ",,$(CONFIG_BOOTLINUX_TREE_TAG)) +TREE_REF:=$(subst ",,$(CONFIG_BOOTLINUX_TREE_REF)) TREE_LOCALVERSION:=$(subst ",,$(CONFIG_BOOTLINUX_TREE_LOCALVERSION)) TREE_SHALLOW_DEPTH:=$(subst ",,$(CONFIG_BOOTLINUX_SHALLOW_CLONE_DEPTH)) -TREE_CONFIG:=config-$(TREE_TAG) +TREE_CONFIG:=config-$(TREE_REF) ifeq (y,$(CONFIG_BOOTLINUX_PURE_IOMAP)) -TREE_CONFIG:=config-$(TREE_TAG)-pure-iomap +TREE_CONFIG:=config-$(TREE_REF)-pure-iomap endif # Describes the Linux clone BOOTLINUX_ARGS += target_linux_git=$(TREE_URL) BOOTLINUX_ARGS += target_linux_tree=$(TREE_NAME) -BOOTLINUX_ARGS += target_linux_tag=$(TREE_TAG) +BOOTLINUX_ARGS += target_linux_ref=$(TREE_REF) BOOTLINUX_ARGS += target_linux_config=$(TREE_CONFIG) BOOTLINUX_ARGS += target_linux_localversion=$(TREE_LOCALVERSION) ``` diff --git a/playbooks/roles/bootlinux/README.md b/playbooks/roles/bootlinux/README.md index 5cc1528..0b440d2 100644 --- a/playbooks/roles/bootlinux/README.md +++ b/playbooks/roles/bootlinux/README.md @@ -43,7 +43,7 @@ Role Variables * target_linux_tree: the name of the tree * target_linux_dir_path: where to place the tree on the target system - * target_linux_tag : the actual tag as used on linux, so v4.19.62 + * target_linux_ref : the actual tag as used on linux, so v4.19.62 * target_linux_extra_patch: if defined an extra patch to apply with git am prior to compilation * target_linux_config: the configuration file to use @@ -87,7 +87,7 @@ You'd place the `pend-v4.19.58-fixes-20190716-v2.patch` file on the directory Now say you wantd to be explicit about a tag of Linux you'd want to use: ``` -ansible-playbook -i hosts -l dev --extra-vars "target_linux_tag=v4.19.21 "target_linux_extra_patch=try-v4.19.20-fixes-20190716-v1.patch" bootlinux.yml +ansible-playbook -i hosts -l dev --extra-vars "target_linux_ref=v4.19.21 "target_linux_extra_patch=try-v4.19.20-fixes-20190716-v1.patch" bootlinux.yml ``` To uninstall a kernel: diff --git a/playbooks/roles/bootlinux/defaults/main.yml b/playbooks/roles/bootlinux/defaults/main.yml index 8e1b9c6..a6c26c5 100644 --- a/playbooks/roles/bootlinux/defaults/main.yml +++ b/playbooks/roles/bootlinux/defaults/main.yml @@ -21,9 +21,9 @@ target_linux_tree: "linux-stable" target_linux_dir_path: "{{ data_path }}/{{ target_linux_tree }}" kdevops_baseline_and_dev: False -target_linux_tag: "v4.19.133" +target_linux_ref: "v4.19.133" target_linux_delta_file: -target_linux_config: "config-{{ target_linux_tag }}" +target_linux_config: "config-{{ target_linux_ref }}" make: "make" # Once ansible v2.10 becomes available we can move on to using # ansible_processor_nproc but that was merged in 2020: diff --git a/playbooks/roles/bootlinux/tasks/main.yml b/playbooks/roles/bootlinux/tasks/main.yml index 41a8b52..9b0f7e1 100644 --- a/playbooks/roles/bootlinux/tasks/main.yml +++ b/playbooks/roles/bootlinux/tasks/main.yml @@ -80,7 +80,7 @@ dest: "{{ target_linux_dir_path }}" update: yes depth: "{{ target_linux_shallow_depth }}" - version: "{{ target_linux_tag }}" + version: "{{ target_linux_ref }}" retries: 3 delay: 5 register: result @@ -95,7 +95,7 @@ dest: "{{ bootlinux_9p_host_path }}" update: yes depth: "{{ target_linux_shallow_depth }}" - version: "{{ target_linux_tag }}" + version: "{{ target_linux_ref }}" retries: 3 delay: 5 register: result @@ -412,7 +412,7 @@ - name: Check kernel uname for uninstall debug: - msg: "Target kernel {{ target_linux_tag }} Running kernel {{ running_kernel }}" + msg: "Target kernel {{ target_linux_ref }} Running kernel {{ running_kernel }}" vars: running_kernel: "{{ uname_cmd_before.stdout_lines.0 }}" tags: [ 'uninstall-linux' ] @@ -543,7 +543,7 @@ - name: Check kernel uname debug: - msg: "Target kernel {{ target_linux_tag }} Running kernel {{ running_kernel }}" + msg: "Target kernel {{ target_linux_ref }} Running kernel {{ running_kernel }}" vars: running_kernel: "{{ uname_cmd.stdout_lines.0 }}" tags: [ 'linux', 'git', 'config', 'uname' ] diff --git a/playbooks/roles/bootlinux/tasks/update-grub/install.yml b/playbooks/roles/bootlinux/tasks/update-grub/install.yml index 443b952..7ca50c7 100644 --- a/playbooks/roles/bootlinux/tasks/update-grub/install.yml +++ b/playbooks/roles/bootlinux/tasks/update-grub/install.yml @@ -131,13 +131,13 @@ # is either you do the work to enhance the heuristic or live happy with the # assumption that grub2's default of picking the latest kernel is the best # option. -- name: Try to find your target kernel's GRUB boot entry number now that the menu is flattened for {{ target_linux_tag }} using inferred KERNELRELEASE {{ kernelrelease.stdout}} +- name: Try to find your target kernel's GRUB boot entry number now that the menu is flattened for {{ target_linux_ref }} using inferred KERNELRELEASE {{ kernelrelease.stdout}} become: yes become_flags: 'su - -c' become_method: sudo shell: " {{ determine_default_kernel_id }} " vars: - target_kernel: "{{ target_linux_tag | replace('v', '') }}" + target_kernel: "{{ target_linux_ref | replace('v', '') }}" register: grub_boot_number_cmd tags: [ 'linux', 'git', 'config', 'saved' ] when: kernel_release_file.stat.exists @@ -170,7 +170,7 @@ debug: msg: "{{ target_kernel }} determined to be {{ target_boot_entry }} on the GRUB2 flat menu. Ran: grub-set-default {{ target_boot_entry }}" vars: - target_kernel: "{{ target_linux_tag | replace('v', '') }}" + target_kernel: "{{ target_linux_ref | replace('v', '') }}" target_boot_entry: "{{ grub_boot_number_cmd.stdout_lines.0 }}" tags: [ 'linux', 'git', 'config', 'saved' ] when: diff --git a/scripts/dynamic-kconfig.Makefile b/scripts/dynamic-kconfig.Makefile index bdeb499..6fb5749 100644 --- a/scripts/dynamic-kconfig.Makefile +++ b/scripts/dynamic-kconfig.Makefile @@ -17,6 +17,10 @@ dynamic-kconfig-help: PHONY += dynamic-kconfig-help +ifeq ($(MAKECMDGOALS),dynconfig) + include scripts/gen-gitrefs.Makefile +endif + dynconfig: $(Q)$(MAKE) dynconfig-pci diff --git a/scripts/gen-gitrefs.Makefile b/scripts/gen-gitrefs.Makefile new file mode 100644 index 0000000..98ec2d9 --- /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 = https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git +export SRC_URI_HTTPS_NEXT = https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git +export SRC_URI_HTTPS_STABLE = https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git + +export SRC_URI_HTTPS_MCGROF_LINUS = https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git +export SRC_URI_HTTPS_MCGROF_NEXT = https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git +export SRC_URI_HTTPS_BTRFS_DEVEL = https://github.com/kdave/btrfs-devel.git +export SRC_URI_HTTPS_CEL_LINUX = https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git +export SRC_URI_HTTPS_JLAYTON_LINUX = https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git +export SRC_URI_HTTPS_KDEVOPS_LINUS = https://github.com/linux-kdevops/linux.git + +GENERATED_REFS_LINUS := $(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 := $(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 := $(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 := $(shell \ + ./scripts/generate_refs.py \ + --prefix BOOTLINUX_TREE_MCGROF_LINUS \ + --output workflows/linux/Kconfig.refs-mcgrof-linus \ + --extra workflows/linux/mcgrof-linus-refs.yaml \ + --force \ + gitref \ + --repo $(SRC_URI_HTTPS_MCGROF_LINUS) \ + --refs 15 \ + ) + +GENERATED_REFS_MCGROF_NEXT := $(shell \ + ./scripts/generate_refs.py \ + --prefix BOOTLINUX_TREE_MCGROF_NEXT \ + --output workflows/linux/Kconfig.refs-mcgrof-next \ + --extra workflows/linux/mcgrof-next-refs.yaml \ + --force \ + gitref \ + --repo $(SRC_URI_HTTPS_MCGROF_NEXT) \ + --refs 15 \ + ) + +GENERATED_REFS_BTRFS_DEVEL := $(shell \ + ./scripts/generate_refs.py \ + --prefix BOOTLINUX_TREE_BTRFS_DEVEL \ + --output workflows/linux/Kconfig.refs-btrfs-devel \ + --extra workflows/linux/btrfs-devel-refs.yaml \ + --force \ + gitref \ + --repo $(SRC_URI_HTTPS_BTRFS_DEVEL) \ + --refs 15 \ + ) + +GENERATED_REFS_CEL_LINUX := $(shell \ + ./scripts/generate_refs.py \ + --prefix BOOTLINUX_TREE_CEL_LINUX \ + --output workflows/linux/Kconfig.refs-cel-linux \ + --extra workflows/linux/cel-linux-refs.yaml \ + --force \ + gitref \ + --repo $(SRC_URI_HTTPS_CEL_LINUX) \ + --refs 15 \ + ) + +GENERATED_REFS_JLAYTON_LINUX := $(shell \ + ./scripts/generate_refs.py \ + --prefix BOOTLINUX_TREE_JLAYTON_LINUX \ + --output workflows/linux/Kconfig.refs-jlayton-linux \ + --extra workflows/linux/jlayton-linux-refs.yaml \ + --force \ + gitref \ + --repo $(SRC_URI_HTTPS_JLAYTON_LINUX) \ + --refs 15 \ + ) + +GENERATED_REFS_KDEVOPS_LINUS := $(shell \ + ./scripts/generate_refs.py \ + --prefix BOOTLINUX_TREE_KDEVOPS_LINUS \ + --output workflows/linux/Kconfig.refs-kdevops-linus \ + --extra workflows/linux/kdevops-linus-refs.yaml \ + --force \ + gitref \ + --repo $(SRC_URI_HTTPS_KDEVOPS_LINUS) \ + --refs 15 \ + ) diff --git a/scripts/gen-kreleases.Makefile b/scripts/gen-kreleases.Makefile new file mode 100644 index 0000000..15e3ff2 --- /dev/null +++ b/scripts/gen-kreleases.Makefile @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: copyleft-next-0.3.1 + +GENERATED_REFS_NEXT := $(shell \ + ./scripts/generate_refs.py \ + --prefix BOOTLINUX_TREE_NEXT \ + --output workflows/linux/Kconfig.refs-next \ + --extra workflows/linux/next-refs.yaml \ + kreleases \ + --moniker linux-next \ + ) + +GENERATED_REFS_STABLE := $(shell \ + ./scripts/generate_refs.py \ + --prefix BOOTLINUX_TREE_STABLE \ + --output workflows/linux/Kconfig.refs-stable \ + --extra workflows/linux/stable-refs.yaml \ + kreleases \ + --moniker stable \ + ) + +GENERATED_REFS_LINUS := $(shell \ + ./scripts/generate_refs.py \ + --prefix BOOTLINUX_TREE_LINUS \ + --output workflows/linux/Kconfig.refs-linus \ + --extra workflows/linux/linus-refs.yaml \ + kreleases \ + --moniker mainline \ + ) diff --git a/scripts/generate_refs.py b/scripts/generate_refs.py new file mode 100755 index 0000000..27881f7 --- /dev/null +++ b/scripts/generate_refs.py @@ -0,0 +1,308 @@ +#!/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 +from typing import List, Union, Dict + + +def popen( + cmd: list[str], environ: dict[str, str] = {}, comm: bool = True +) -> dict[str, object]: + try: + logging.debug(f"{' '.join(cmd)}") + p = subprocess.Popen( + cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=environ + ) + if comm: + stdout, stderr = 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 = argparse.ArgumentParser(description="Git Reference generate tool") + # parser.add_argument('--foo', action='store_true', help='foo is great option') + parser.add_argument("--debug", action="store_true", help="debug") + parser.add_argument( + "--output", + help="output file", + required=True, + ) + parser.add_argument( + "--force", action="store_true", help="always generate output file" + ) + parser.add_argument( + "--prefix", + help="the Kconfig CONFIG prefix to use (e.g. BOOTLINUX_TREE_LINUS)", + required=True, + ) + parser.add_argument( + "--extra", + help="extra configs (yaml)", + ) + + subparsers = parser.add_subparsers( + title="subcommands", + description="valid subcommands", + help="additional help", + dest="cmd", + ) + gitref = subparsers.add_parser("gitref", help="git-ref tool (git-ls-remote)") + gitref.add_argument( + "--repo", + help="the upstream repository to check tags with git-ls-remote", + required=True, + ) + gitref.add_argument( + "--filter-heads", + help="user additional ref filter for heads command", + default="*", + ) + gitref.add_argument( + "--filter-tags", + help="user additional ref filter for tags command", + default="*", + ) + gitref.add_argument( + "--refs", + type=int, + default=1, + help="number of references", + required=True, + ) + kreleases = subparsers.add_parser("kreleases", help="kernel.org/releases.json") + kreleases.add_argument( + "--moniker", + help="moniker (mainline, stable, longterm or linux-next)", + required=True, + ) + return parser + + +def check_file_date(file): + if not os.path.exists(file): + return True + modified_time = os.path.getmtime(file) + current_time = 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 = {} + 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=conf_name)) + # Do overwrite ref when custom + if "_CUSTOM_REF_NAME" in ref_name: + f.write('\tbool "custom"\n') + else: + f.write('\tbool "{ref}"\n'.format(ref=ref_name)) + if ref_help: + f.write("\thelp\n") + f.write("\t\t{help}\n\n".format(help=ref_help)) + else: + f.write("\n") + return refs + + +def _ref_generator_choices(args, reflist, id) -> Dict[str, str]: + refs = {} + # for refline in reflist.splitlines(): + for ref_name in reflist: + logging.debug("{}: {}".format(id, ref_name)) + config = "{prefix}_REF_{id}".format(prefix=args.prefix, id=id) + refs.update({ref_name: config}) + with open(args.output, "a") as f: + f.write("config {conf}\n".format(conf=config)) + f.write('\t bool "{ref}"\n\n'.format(ref=ref_name)) + id += 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: dict[str, str] = {} + + 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=args.prefix)) + f.write("\tstring\n") + for r in refs.keys(): + # Do not include quotes when using CUSTOM_REF_NAME + if "_CUSTOM_REF_NAME" in r: + f.write("\tdefault {ref} if {conf}\n".format(ref=r, conf=refs[r])) + else: + f.write('\tdefault "{ref}" if {conf}\n'.format(ref=r, conf=refs[r])) + + +def remote(args) -> List: + heads = popen( + [ + "git", + "-c", + "versionsort.suffix=-", + "ls-remote", + "--sort=-version:refname", + "--heads", + args.repo, + args.filter_heads, + ] + ) + tags = popen( + [ + "git", + "-c", + "versionsort.suffix=-", + "ls-remote", + "--sort=-version:refname", + "--tags", + args.repo, + args.filter_tags, + ] + ) + + return [heads["stdout"], tags["stdout"]] + + +def gitref_getreflist(args, reflist): + refs = [] + for refline in reflist.splitlines(): + if "^{}" in refline: + continue + if len(refs) >= args.refs: + break + ref_name = refline.split("/")[-1] + refs.append(ref_name) + logging.debug("release: {}".format(ref_name)) + return refs + + +def _get_extraconfs(args) -> List[Dict[str, Union[str, None]]]: + extraconfs = [] + if args.extra: + if os.path.exists(args.extra): + with open(args.extra, mode="rt") as f: + yml = yaml.safe_load(f) + extraconfs = yml["configs"] + return extraconfs + + +def gitref(args) -> None: + """Get git reference list using git-ls-remote.""" + + refstr = remote(args) + reflist = [] + for rl in refstr: + _refs = gitref_getreflist(args, rl) + for r in _refs: + reflist.append(r) + + ref_generator(args, reflist, _get_extraconfs(args)) + + +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 = json.load(url) + + reflist = [] + for release in data["releases"]: + if release["moniker"] == args.moniker: + reflist.append(release["version"]) + + ref_generator(args, reflist, _get_extraconfs(args)) + + +def main() -> None: + """Kconfig choice generator for git refereces""" + log = logging.getLogger() + log.setLevel(logging.INFO) + p = parser() + args, _ = 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 = {"gitref": gitref, "kreleases": kreleases} + + cmd_disp[args.cmd](args) + + +if __name__ == "__main__": + ret = 0 + try: + main() + except Exception: + ret = 1 + import traceback + + traceback.print_exc() + sys.exit(ret) diff --git a/scripts/workflows/fstests/fstests_watchdog.py b/scripts/workflows/fstests/fstests_watchdog.py index b093e56..f7408a6 100755 --- a/scripts/workflows/fstests/fstests_watchdog.py +++ b/scripts/workflows/fstests/fstests_watchdog.py @@ -21,8 +21,8 @@ def print_fstest_host_status(host, verbose, use_remote, use_ssh, basedir, config configured_kernel = None if "CONFIG_WORKFLOW_LINUX_DISTRO" in config: configured_kernel = "Distro-kernel" - elif "CONFIG_BOOTLINUX_TREE_TAG" in config: - configured_kernel = config["CONFIG_BOOTLINUX_TREE_TAG"].strip('\"') + elif "CONFIG_BOOTLINUX_TREE_REF" in config: + configured_kernel = config["CONFIG_BOOTLINUX_TREE_REF"].strip('\"') remote_path = "/var/log/journal/remote/" kernel = systemd_remote.get_uname(remote_path, host, configured_kernel) if kernel == configured_kernel: diff --git a/scripts/workflows/generic/run_kernel_ci.sh b/scripts/workflows/generic/run_kernel_ci.sh index b68d36b..f383e94 100755 --- a/scripts/workflows/generic/run_kernel_ci.sh +++ b/scripts/workflows/generic/run_kernel_ci.sh @@ -50,7 +50,7 @@ kernel_ci_subject_topic() if [[ "$CONFIG_KERNEL_CI_ADD_CUSTOM_SUBJECT_TOPIC" != "y" ]]; then echo "kernel-ci on $(hostname)" elif [[ "$CONFIG_KERNEL_CI_ADD_CUSTOM_SUBJECT_TOPIC_TAG" == "y" ]]; then - echo "kernel-ci on $(hostname) $CONFIG_KERNEL_CI_SUBJECT_TOPIC $CONFIG_BOOTLINUX_TREE_TAG" + echo "kernel-ci on $(hostname) $CONFIG_KERNEL_CI_SUBJECT_TOPIC $CONFIG_BOOTLINUX_TREE_REF" else echo "kernel-ci on $(hostname) $CONFIG_KERNEL_CI_SUBJECT_TOPIC" fi diff --git a/workflows/fstests/Makefile b/workflows/fstests/Makefile index 1023cba..bc57b31 100644 --- a/workflows/fstests/Makefile +++ b/workflows/fstests/Makefile @@ -99,8 +99,8 @@ FSTESTS_ARGS += fstests_testdev_nvme_fallback_model_serial='True' endif ifeq (y,$(CONFIG_CONFIG_BOOTLINUX)) -TREE_TAG:=$(subst ",,$(CONFIG_BOOTLINUX_TREE_TAG)) -FSTESTS_ARGS += fstests_perf_config='$(PROJECTRELEASE)-kernel-$(TREE_TAG)' +TREE_REF:=$(subst ",,$(CONFIG_BOOTLINUX_TREE_REF)) +FSTESTS_ARGS += fstests_perf_config='$(PROJECTRELEASE)-kernel-$(TREE_REF)' endif ifeq (,$(CONFIG_CONFIG_BOOTLINUX)) FSTESTS_ARGS += fstests_perf_config='$(PROJECTRELEASE)-kernel-distro' diff --git a/workflows/fstests/expunges/6.4.0-rc2-next-20230515/xfs/unassigned/fstests-next-20230515 b/workflows/fstests/expunges/6.4.0-rc2-next-20230515/xfs/unassigned/fstests-next-20230515 index bc4f47c..e1b4c8a 100644 --- a/workflows/fstests/expunges/6.4.0-rc2-next-20230515/xfs/unassigned/fstests-next-20230515 +++ b/workflows/fstests/expunges/6.4.0-rc2-next-20230515/xfs/unassigned/fstests-next-20230515 @@ -199,7 +199,7 @@ CONFIG_BOOTLINUX_TREE_NEXT=y # CONFIG_BOOTLINUX_TREE_MCGROF_NEXT is not set CONFIG_BOOTLINUX_TREE_NAME="linux-next" CONFIG_BOOTLINUX_TREE="/mirror/linux-next.git" -CONFIG_BOOTLINUX_TREE_TAG="next-20230426" +CONFIG_BOOTLINUX_TREE_REF="next-20230426" CONFIG_BOOTLINUX_TREE_LOCALVERSION="" # CONFIG_BOOTLINUX_SHALLOW_CLONE is not set # end of Get and install Linux from git diff --git a/workflows/linux/Kconfig b/workflows/linux/Kconfig index 650fc05..21c7930 100644 --- a/workflows/linux/Kconfig +++ b/workflows/linux/Kconfig @@ -144,18 +144,18 @@ source "workflows/linux/Kconfig.btrfs" if BOOTLINUX_CUSTOM -config BOOTLINUX_CUSTOM_NAME +config BOOTLINUX_TREE_CUSTOM_NAME string "Custom Linux kernel tree name" default "torvalds-linux" help Short name to describe your custom tree. This will be used for the the path used to place linux on the nodes on /data/$BOOTLINUX_TREE_NAME. -config BOOTLINUX_CUSTOM_URL +config BOOTLINUX_TREE_CUSTOM_URL string "Custom git tree URL" default "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git" -config BOOTLINUX_CUSTOM_TAG +config BOOTLINUX_TREE_CUSTOM_REF string "Custom Linux kernel tag or branch to use" default "master" help @@ -171,23 +171,23 @@ 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_CUSTOM_NAME if BOOTLINUX_CUSTOM + 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_TREE_CUSTOM_NAME if BOOTLINUX_CUSTOM config BOOTLINUX_TREE string 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_CUSTOM_URL if BOOTLINUX_CUSTOM + 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_TREE_CUSTOM_URL if BOOTLINUX_CUSTOM config BOOTLINUX_TEST_MESSAGE_ID_SET_BY_CLI bool @@ -222,17 +222,17 @@ config BOOTLINUX_TEST_MESSAGE_ID_INSTALL_B4 help When enabled, b4 will be installed using pip -config BOOTLINUX_TREE_TAG +config BOOTLINUX_TREE_REF 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_CUSTOM_TAG if BOOTLINUX_CUSTOM + 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_TREE_KDEVOPS_REF if BOOTLINUX_TREE_KDEVOPS_LINUS + default BOOTLINUX_TREE_MCGROF_REF if BOOTLINUX_TREE_MCGROF + default BOOTLINUX_TREE_JLAYTON_LINUX_REF if BOOTLINUX_TREE_JLAYTON_LINUX + default BOOTLINUX_TREE_CEL_REF if BOOTLINUX_TREE_CEL_LINUX + default BOOTLINUX_TREE_CUSTOM_REF if BOOTLINUX_CUSTOM config BOOTLINUX_TREE_KERNELRELEASE string "Linux kernel release version to use" 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 -config BOOTLINUX_TREE_BTRFS_DEVEL_TAG - string - default "btrfs-devel" +source "workflows/linux/Kconfig.refs-btrfs-devel" 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 -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" 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. -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" -config BOOTLINUX_CEL_TREE_URL +config BOOTLINUX_TREE_CEL_URL string default "https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git" if BOOTLINUX_TREE_CEL_LINUX diff --git a/workflows/linux/Kconfig.jlayton b/workflows/linux/Kconfig.jlayton index d80d2d3..d058532 100644 --- a/workflows/linux/Kconfig.jlayton +++ b/workflows/linux/Kconfig.jlayton @@ -1,25 +1,6 @@ if BOOTLINUX_TREE_JLAYTON_LINUX -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" 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. -config BOOTLINUX_JLAYTON_LINUX_TAG - string - default BOOTLINUX_JLAYTON_LINUX_CUSTOM_NAME if BOOTLINUX_JLAYTON_LINUX_CUSTOM - 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" -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 diff --git a/workflows/linux/Kconfig.kdevops b/workflows/linux/Kconfig.kdevops index 4cb8388..be2e020 100644 --- a/workflows/linux/Kconfig.kdevops +++ b/workflows/linux/Kconfig.kdevops @@ -1,26 +1,13 @@ if BOOTLINUX_TREE_KDEVOPS_LINUS -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" 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 -config BOOTLINUX_KDEVOPS_TREE_TAG - string - default "large-block-minorder" - -config BOOTLINUX_KDEVOPS_TREE_NAME +config BOOTLINUX_TREE_KDEVOPS_NAME string default "kdevops-linus" 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 if BOOTLINUX_TREE_LINUS -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" config BOOTLINUX_TREE_LINUS_NAME string diff --git a/workflows/linux/Kconfig.mcgrof b/workflows/linux/Kconfig.mcgrof index f2d2f89..350d9c1 100644 --- a/workflows/linux/Kconfig.mcgrof +++ b/workflows/linux/Kconfig.mcgrof @@ -1,65 +1,27 @@ if BOOTLINUX_TREE_MCGROF_LINUS -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" endif # BOOTLINUX_TREE_MCGROF_LINUS if BOOTLINUX_TREE_MCGROF_NEXT -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" endif # BOOTLINUX_TREE_MCGROF_NEXT if BOOTLINUX_TREE_MCGROF_LINUS || BOOTLINUX_TREE_MCGROF_NEXT -config BOOTLINUX_MCGROF_TREE +config BOOTLINUX_TREE_MCGROF bool default y -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 -config BOOTLINUX_MCGROF_TREE_URL +config BOOTLINUX_TREE_MCGROF_URL string default "https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git" if BOOTLINUX_TREE_MCGROF_NEXT && !USE_LOCAL_LINUX_MIRROR default "/mirror/mcgrof-next.git" if BOOTLINUX_TREE_MCGROF_NEXT && USE_LIBVIRT_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 -config BOOTLINUX_TREE_NEXT_TAG - string "linux-next tag to pull" - default "next-20240424" +source "workflows/linux/Kconfig.refs-next" config BOOTLINUX_TREE_NEXT_NAME string diff --git a/workflows/linux/Kconfig.refs-btrfs-devel b/workflows/linux/Kconfig.refs-btrfs-devel new file mode 100644 index 0000000..eeaacda --- /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_TREE_BTRFS_DEVEL_REF_BTRFSDEVEL + bool "btrfs-devel" + help + Use development branch. + +endchoice + +config BOOTLINUX_TREE_BTRFS_DEVEL_REF + string + default "btrfs-devel" if BOOTLINUX_TREE_BTRFS_DEVEL_REF_BTRFSDEVEL diff --git a/workflows/linux/Kconfig.refs-cel-linux b/workflows/linux/Kconfig.refs-cel-linux new file mode 100644 index 0000000..f47865d --- /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_TREE_CEL_LINUX_REF_NEXT + bool "nfsd-next" + help + Pull the nfsd-next branch. + +config BOOTLINUX_TREE_CEL_LINUX_REF_FIXES + bool "nfsd-fixed" + help + Pull the nfsd-fixed branch. + +config BOOTLINUX_TREE_CEL_LINUX_REF_CUSTOM + bool "custom" + help + Use a custom branch name. + +endchoice + +config BOOTLINUX_TREE_CEL_LINUX_REF + string + default "nfsd-next" if BOOTLINUX_TREE_CEL_LINUX_REF_NEXT + default "nfsd-fixed" if BOOTLINUX_TREE_CEL_LINUX_REF_FIXES + default BOOTLINUX_CEL_LINUX_CUSTOM_REF_NAME if BOOTLINUX_TREE_CEL_LINUX_REF_CUSTOM diff --git a/workflows/linux/Kconfig.refs-jlayton-linux b/workflows/linux/Kconfig.refs-jlayton-linux new file mode 100644 index 0000000..231dbe0 --- /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_TREE_JLAYTON_LINUX_REF_KDEVOPS + bool "kdevops" + help + Use the latest kdevops branch. + +config BOOTLINUX_TREE_JLAYTON_LINUX_REF_IVERSION + bool "iversion-next" + help + Use the iversion-next branch. + +config BOOTLINUX_TREE_JLAYTON_LINUX_REF_CUSTOM + bool "custom" + help + Use a custom branch name. + +endchoice + +config BOOTLINUX_TREE_JLAYTON_LINUX_REF + string + default "kdevops" if BOOTLINUX_TREE_JLAYTON_LINUX_REF_KDEVOPS + default "iversion-next" if BOOTLINUX_TREE_JLAYTON_LINUX_REF_IVERSION + default BOOTLINUX_TREE_JLAYTON_LINUX_CUSTOM_REF_NAME if BOOTLINUX_TREE_JLAYTON_LINUX_REF_CUSTOM diff --git a/workflows/linux/Kconfig.refs-kdevops-linus b/workflows/linux/Kconfig.refs-kdevops-linus new file mode 100644 index 0000000..7b38d87 --- /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_TREE_KDEVOPS_LINUS_REF_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_TREE_KDEVOPS_LINUS_REF_LBS_MINORDER diff --git a/workflows/linux/Kconfig.refs-mcgrof-linus b/workflows/linux/Kconfig.refs-mcgrof-linus new file mode 100644 index 0000000..6030baa --- /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_TREE_MCGROF_LINUS_REF_LBS + bool "large-block-linus" + help + Use the latest LBS branch based on Linus' tree. + +config BOOTLINUX_TREE_MCGROF_LINUS_REF_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 + +config BOOTLINUX_TREE_MCGROF_LINUS_REF + string + default "large-block-linus" if BOOTLINUX_TREE_MCGROF_LINUS_REF_LBS + default "large-block-linus-nobdev" if BOOTLINUX_TREE_MCGROF_LINUS_REF_LBS_NOBDEV diff --git a/workflows/linux/Kconfig.refs-mcgrof-next b/workflows/linux/Kconfig.refs-mcgrof-next new file mode 100644 index 0000000..7a2a99c --- /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_TREE_MCGROF_NEXT_REF_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_TREE_MCGROF_NEXT_REF_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 + +config BOOTLINUX_TREE_MCGROF_NEXT_REF + string + default "large-block-next" if BOOTLINUX_TREE_MCGROF_NEXT_REF_LBS + default "large-block-nobdev" if BOOTLINUX_TREE_MCGROF_NEXT_REF_LBS_NOBDEV diff --git a/workflows/linux/Kconfig.stable b/workflows/linux/Kconfig.stable index a0eaa1b..7b4b7b3 100644 --- a/workflows/linux/Kconfig.stable +++ b/workflows/linux/Kconfig.stable @@ -13,71 +13,10 @@ endchoice if BOOTLINUX_TREE_STABLE -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" endif # BOOTLINUX_TREE_STABLE -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/Makefile b/workflows/linux/Makefile index 021a562..3014e80 100644 --- a/workflows/linux/Makefile +++ b/workflows/linux/Makefile @@ -3,25 +3,25 @@ TREE_URL:=$(subst ",,$(CONFIG_BOOTLINUX_TREE)) TREE_NAME:=$(notdir $(TREE_URL)) TREE_NAME:=$(subst .git,,$(TREE_NAME)) -TREE_TAG:=$(subst ",,$(CONFIG_BOOTLINUX_TREE_TAG)) +TREE_REF:=$(subst ",,$(CONFIG_BOOTLINUX_TREE_REF)) TREE_KERNELRELEASE:=$(subst ",,$(CONFIG_BOOTLINUX_TREE_KERNELRELEASE)) TREE_LOCALVERSION:=$(subst ",,$(CONFIG_BOOTLINUX_TREE_LOCALVERSION)) TREE_SHALLOW_DEPTH:=$(subst ",,$(CONFIG_BOOTLINUX_SHALLOW_CLONE_DEPTH)) -TREE_CONFIG:=config-$(TREE_TAG) +TREE_CONFIG:=config-$(TREE_REF) ifeq (y,$(CONFIG_BOOTLINUX_PURE_IOMAP)) -TREE_CONFIG:=config-$(TREE_TAG)-pure-iomap +TREE_CONFIG:=config-$(TREE_REF)-pure-iomap endif # Describes the Linux clone BOOTLINUX_ARGS += target_linux_git=$(TREE_URL) -# ifeq (y,$(CONFIG_BOOTLINUX_CUSTOM_NAME)) -ifdef CONFIG_BOOTLINUX_CUSTOM_NAME -BOOTLINUX_ARGS += target_linux_tree=$(CONFIG_BOOTLINUX_CUSTOM_NAME) +# ifeq (y,$(CONFIG_BOOTLINUX_TREE_CUSTOM_NAME)) +ifdef CONFIG_BOOTLINUX_TREE_CUSTOM_NAME +BOOTLINUX_ARGS += target_linux_tree=$(CONFIG_BOOTLINUX_TREE_CUSTOM_NAME) else BOOTLINUX_ARGS += target_linux_tree=$(TREE_NAME) endif -BOOTLINUX_ARGS += target_linux_tag=$(TREE_TAG) +BOOTLINUX_ARGS += target_linux_ref=$(TREE_REF) BOOTLINUX_ARGS += target_linux_config=$(TREE_CONFIG) BOOTLINUX_ARGS += target_linux_kernelrelease=$(TREE_KERNELRELEASE) BOOTLINUX_ARGS += target_linux_localversion=$(TREE_LOCALVERSION) diff --git a/workflows/linux/btrfs-devel-refs.yaml b/workflows/linux/btrfs-devel-refs.yaml new file mode 100644 index 0000000..cb7fb92 --- /dev/null +++ b/workflows/linux/btrfs-devel-refs.yaml @@ -0,0 +1,6 @@ +--- +configs: + - btrfs: + config: BOOTLINUX_TREE_BTRFS_DEVEL_REF_BTRFSDEVEL + ref: "btrfs-devel" + help: "Use development branch." diff --git a/workflows/linux/cel-linux-refs.yaml b/workflows/linux/cel-linux-refs.yaml new file mode 100644 index 0000000..bba35ef --- /dev/null +++ b/workflows/linux/cel-linux-refs.yaml @@ -0,0 +1,14 @@ +--- +configs: + - next: + config: BOOTLINUX_TREE_CEL_LINUX_REF_NEXT + ref: "nfsd-next" + help: "Pull the nfsd-next branch." + - fixes: + config: BOOTLINUX_TREE_CEL_LINUX_REF_FIXES + ref: "nfsd-fixed" + help: "Pull the nfsd-fixed branch." + - custom: + config: BOOTLINUX_TREE_CEL_LINUX_REF_CUSTOM + ref: BOOTLINUX_CEL_LINUX_CUSTOM_REF_NAME + help: "Use a custom branch name." diff --git a/workflows/linux/jlayton-linux-refs.yaml b/workflows/linux/jlayton-linux-refs.yaml new file mode 100644 index 0000000..b89dfce --- /dev/null +++ b/workflows/linux/jlayton-linux-refs.yaml @@ -0,0 +1,14 @@ +--- +configs: + - kdevops: + config: BOOTLINUX_TREE_JLAYTON_LINUX_REF_KDEVOPS + ref: "kdevops" + help: "Use the latest kdevops branch." + - iversion: + config: BOOTLINUX_TREE_JLAYTON_LINUX_REF_IVERSION + ref: "iversion-next" + help: "Use the iversion-next branch." + - custom: + config: BOOTLINUX_TREE_JLAYTON_LINUX_REF_CUSTOM + ref: BOOTLINUX_TREE_JLAYTON_LINUX_CUSTOM_REF_NAME + help: "Use a custom branch name." diff --git a/workflows/linux/kdevops-linus-refs.yaml b/workflows/linux/kdevops-linus-refs.yaml new file mode 100644 index 0000000..2eb7c98 --- /dev/null +++ b/workflows/linux/kdevops-linus-refs.yaml @@ -0,0 +1,6 @@ +--- +configs: + - minorder: + config: BOOTLINUX_TREE_KDEVOPS_LINUS_REF_LBS_MINORDER + ref: "large-block-minorder" + help: "Use the latest LBS branch based on Linus's tree" diff --git a/workflows/linux/linus-refs.yaml b/workflows/linux/linus-refs.yaml new file mode 100644 index 0000000..661c8ed --- /dev/null +++ b/workflows/linux/linus-refs.yaml @@ -0,0 +1,38 @@ +--- +configs: + - master: + config: BOOTLINUX_TREE_LINUS_REF_MASTER + ref: "master" + help: "master" + - v6.6-rc2: + config: BOOTLINUX_TREE_LINUS_REF_66_RC2 + ref: "v6.6-rc2" + help: "v6.6-rc2" + - v6.6-rc4: + config: BOOTLINUX_TREE_LINUS_REF_66_RC4 + ref: "v6.6-rc4" + help: "v6.6-rc4" + - v6.6-rc5: + config: BOOTLINUX_TREE_LINUS_REF_66_RC5 + ref: "v6.6-rc5" + help: "v6.6-rc5" + - v6.8-rc2: + config: BOOTLINUX_TREE_LINUS_REF_68_RC2 + ref: "v6.8-rc2" + help: "v6.8-rc2" + - v6.9-rc2: + config: BOOTLINUX_TREE_LINUS_REF_69_RC2 + ref: "v6.9-rc2" + help: "v6.9-rc2" + - v6.9-rc4: + config: BOOTLINUX_TREE_LINUS_REF_69_RC4 + ref: "v6.9-rc4" + help: "v6.9-rc4" + - v6.9-rc5: + config: BOOTLINUX_TREE_LINUS_REF_69_RC5 + ref: "v6.9-rc5" + help: "v6.9-rc5" + - v6.9-rc6: + config: BOOTLINUX_TREE_LINUS_REF_69_RC6 + ref: "v6.9-rc6" + help: "v6.9-rc6" diff --git a/workflows/linux/mcgrof-linus-refs.yaml b/workflows/linux/mcgrof-linus-refs.yaml new file mode 100644 index 0000000..b762851 --- /dev/null +++ b/workflows/linux/mcgrof-linus-refs.yaml @@ -0,0 +1,10 @@ +--- +configs: + - master: + config: BOOTLINUX_TREE_MCGROF_LINUS_REF_LBS + ref: "large-block-linus" + help: "Use the latest LBS branch based on Linus' tree." + - main: + config: BOOTLINUX_TREE_MCGROF_LINUS_REF_LBS_NOBDEV + ref: "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." diff --git a/workflows/linux/mcgrof-next-refs.yaml b/workflows/linux/mcgrof-next-refs.yaml new file mode 100644 index 0000000..5dd7936 --- /dev/null +++ b/workflows/linux/mcgrof-next-refs.yaml @@ -0,0 +1,10 @@ +--- +configs: + - master: + config: BOOTLINUX_TREE_MCGROF_NEXT_REF_LBS + ref: "large-block-next" + help: "Use the latest stable LBS branch which enables all the bells and whistles for all types of LBS devices." + - main: + config: BOOTLINUX_TREE_MCGROF_NEXT_REF_LBS_NOBDEV + ref: "large-block-nobdev" + help: "Use the latest minimal branch for LBS which let's you use LBS devices with a sectorsize compatibility" diff --git a/workflows/linux/next-refs.yaml b/workflows/linux/next-refs.yaml new file mode 100644 index 0000000..f9ad05f --- /dev/null +++ b/workflows/linux/next-refs.yaml @@ -0,0 +1,6 @@ +--- +configs: + - next-20240424: + config: BOOTLINUX_TREE_NEXT_REF_20240424 + ref: "next-20240424" + help: "next-20240424" diff --git a/workflows/linux/stable-refs.yaml b/workflows/linux/stable-refs.yaml new file mode 100644 index 0000000..ca61617 --- /dev/null +++ b/workflows/linux/stable-refs.yaml @@ -0,0 +1,38 @@ +--- +configs: + - v4.19.133: + config: BOOTLINUX_TREE_STABLE_REF_419133 + ref: "v4.19.133" + help: "v4.19.133" + - v5.4.210: + config: BOOTLINUX_TREE_STABLE_REF_54210 + ref: "v5.4.210" + help: "v5.4.210" + - v5.10.105: + config: BOOTLINUX_TREE_STABLE_REF_510105 + ref: "v5.10.105" + help: "v5.10.105" + - v5.14.4: + config: BOOTLINUX_TREE_STABLE_REF_5144 + ref: "v5.14.4" + help: "v5.14.4" + - v5.17-rc7: + config: BOOTLINUX_TREE_STABLE_REF_517RC7 + ref: "v5.17-rc7" + help: "v5.17-rc7" + - v5.19-rc4: + config: BOOTLINUX_TREE_STABLE_REF_519RC4 + ref: "v5.19-rc4" + help: "v5.19-rc4" + - v6.0.9: + config: BOOTLINUX_TREE_STABLE_REF_609 + ref: "v6.0.9" + help: "v6.0.9" + - linux-6.1.y: + config: BOOTLINUX_TREE_STABLE_REF_LINUX61Y + ref: "linux-6.1.y" + help: "linux-6.1.y" + - linux-6.6.y: + config: BOOTLINUX_TREE_STABLE_REF_LINUX66Y + ref: "linux-6.6.y" + help: "linux-6.6.y" -- 2.45.1