update and add riscv support
All checks were successful
Hydra wordpress-plugins.google-sitemap-generator Hydra build #50358 of nix-packages:x86_64-linux-master-pr272:wordpress-plugins.google-sitemap-generator
Hydra emoji-caro Hydra build #50359 of nix-packages:x86_64-linux-master-pr272:emoji-caro
Hydra kubo Hydra build #50360 of nix-packages:x86_64-linux-master-pr272:kubo
Hydra wordpress-plugins.nodeinfo Hydra build #50361 of nix-packages:x86_64-linux-master-pr272:wordpress-plugins.nodeinfo
Hydra wordpress-plugins.jetpack Hydra build #50362 of nix-packages:x86_64-linux-master-pr272:wordpress-plugins.jetpack
Hydra plover-dict-didoesdigital Hydra build #50363 of nix-packages:x86_64-linux-master-pr272:plover-dict-didoesdigital
Hydra wordpress-plugins.polylang Hydra build #50364 of nix-packages:x86_64-linux-master-pr272:wordpress-plugins.polylang
Hydra old-homepage Hydra build #50365 of nix-packages:x86_64-linux-master-pr272:old-homepage
Hydra wordpress-plugins.hum Hydra build #50366 of nix-packages:x86_64-linux-master-pr272:wordpress-plugins.hum
Hydra wordpress-plugins.indieauth Hydra build #50367 of nix-packages:x86_64-linux-master-pr272:wordpress-plugins.indieauth
Hydra wordpress-plugins.activitypub Hydra build #50368 of nix-packages:x86_64-linux-master-pr272:wordpress-plugins.activitypub
Hydra papermc Hydra build #50369 of nix-packages:x86_64-linux-master-pr272:papermc
Hydra plover-plugin-tapey-tape Hydra build #50370 of nix-packages:x86_64-linux-master-pr272:plover-plugin-tapey-tape
Hydra wordpress-plugins.modern-footnotes Hydra build #50371 of nix-packages:x86_64-linux-master-pr272:wordpress-plugins.modern-footnotes
Hydra wordpress-plugins.pubsubhubbub Hydra build #50372 of nix-packages:x86_64-linux-master-pr272:wordpress-plugins.pubsubhubbub
Hydra wordpress-plugins.micropub Hydra build #50373 of nix-packages:x86_64-linux-master-pr272:wordpress-plugins.micropub
Hydra plover-plugin-emoji Hydra build #50374 of nix-packages:x86_64-linux-master-pr272:plover-plugin-emoji
Hydra wordpress-plugins.webfinger Hydra build #50375 of nix-packages:x86_64-linux-master-pr272:wordpress-plugins.webfinger
Hydra emoji-volpeon-raccoon Hydra build #50376 of nix-packages:x86_64-linux-master-pr272:emoji-volpeon-raccoon
Hydra wordpress-plugins.wp-super-cache Hydra build #50377 of nix-packages:x86_64-linux-master-pr272:wordpress-plugins.wp-super-cache
Hydra plover-plugin-yaml-dictionary Hydra build #50378 of nix-packages:x86_64-linux-master-pr272:plover-plugin-yaml-dictionary
Hydra plover-plugin-machine-hid Hydra build #50379 of nix-packages:x86_64-linux-master-pr272:plover-plugin-machine-hid
Hydra fairfax Hydra build #50380 of nix-packages:x86_64-linux-master-pr272:fairfax
Hydra wordpress-plugins.syndication-links Hydra build #50381 of nix-packages:x86_64-linux-master-pr272:wordpress-plugins.syndication-links
Hydra wordpress-plugins.webmention Hydra build #50382 of nix-packages:x86_64-linux-master-pr272:wordpress-plugins.webmention
Hydra python-plover-stroke Hydra build #50383 of nix-packages:x86_64-linux-master-pr272:python-plover-stroke
Hydra alco-sans Hydra build #50384 of nix-packages:x86_64-linux-master-pr272:alco-sans
Hydra mautrix-whatsapp Hydra build #50385 of nix-packages:x86_64-linux-master-pr272:mautrix-whatsapp
Hydra python-mautrix Hydra build #50386 of nix-packages:x86_64-linux-master-pr272:python-mautrix
Hydra element-web Hydra build #50387 of nix-packages:x86_64-linux-master-pr272:element-web
Hydra mautrix-cleanup Hydra build #50388 of nix-packages:x86_64-linux-master-pr272:mautrix-cleanup
Hydra emoji-volpeon-bunhd Hydra build #50389 of nix-packages:x86_64-linux-master-pr272:emoji-volpeon-bunhd
Hydra akkoma Hydra build #50390 of nix-packages:x86_64-linux-master-pr272:akkoma
Hydra plover Hydra build #50391 of nix-packages:x86_64-linux-master-pr272:plover
Hydra wordpress-plugins.ilab-media-tools Hydra build #50392 of nix-packages:x86_64-linux-master-pr272:wordpress-plugins.ilab-media-tools
Hydra emoji-volpeon-gphn Hydra build #50393 of nix-packages:x86_64-linux-master-pr272:emoji-volpeon-gphn
Hydra emoji-volpeon-blobfox Hydra build #50394 of nix-packages:x86_64-linux-master-pr272:emoji-volpeon-blobfox
Hydra python-rtf-tokenize Hydra build #50396 of nix-packages:x86_64-linux-master-pr272:python-rtf-tokenize
Hydra mautrix-signal Hydra build #50397 of nix-packages:x86_64-linux-master-pr272:mautrix-signal
Hydra woodpecker-agent Hydra build #50395 of nix-packages:x86_64-linux-master-pr272:woodpecker-agent
Hydra woodpecker-frontend Hydra build #50398 of nix-packages:x86_64-linux-master-pr272:woodpecker-frontend
Hydra emoji-volpeon-bunhd-flip Hydra build #50399 of nix-packages:x86_64-linux-master-pr272:emoji-volpeon-bunhd-flip
Hydra mautrix-discord Hydra build #50400 of nix-packages:x86_64-linux-master-pr272:mautrix-discord
Hydra kreative-square Hydra build #50401 of nix-packages:x86_64-linux-master-pr272:kreative-square
Hydra wordpress-themes.twentytwentythree Hydra build #50402 of nix-packages:x86_64-linux-master-pr272:wordpress-themes.twentytwentythree
Hydra hydra-unstable Hydra build #50403 of nix-packages:x86_64-linux-master-pr272:hydra-unstable
Hydra wordpress-themes.sempress Hydra build #50404 of nix-packages:x86_64-linux-master-pr272:wordpress-themes.sempress
Hydra plover-plugin-rkb1-hid Hydra build #50405 of nix-packages:x86_64-linux-master-pr272:plover-plugin-rkb1-hid
Hydra nasin-nanpa Hydra build #50406 of nix-packages:x86_64-linux-master-pr272:nasin-nanpa
Hydra lotte-art Hydra build #50407 of nix-packages:x86_64-linux-master-pr272:lotte-art
Hydra fcitx5 Hydra build #50408 of nix-packages:x86_64-linux-master-pr272:fcitx5
Hydra emoji-volpeon-vlpn Hydra build #50409 of nix-packages:x86_64-linux-master-pr272:emoji-volpeon-vlpn
Hydra emoji-volpeon-blobfox-flip Hydra build #50435 of nix-packages:x86_64-linux-master-pr272:emoji-volpeon-blobfox-flip
Hydra admin-fe Hydra build #50410 of nix-packages:x86_64-linux-master-pr272:admin-fe
Hydra emoji-volpeon-fox Hydra build #50411 of nix-packages:x86_64-linux-master-pr272:emoji-volpeon-fox
Hydra wordpress-plugins.wordpress-seo Hydra build #50412 of nix-packages:x86_64-linux-master-pr272:wordpress-plugins.wordpress-seo
Hydra wordpress-plugins.indieweb Hydra build #50413 of nix-packages:x86_64-linux-master-pr272:wordpress-plugins.indieweb
Hydra python-instagram Hydra build #50414 of nix-packages:x86_64-linux-master-pr272:python-instagram
Hydra wordpress-plugins.friends Hydra build #50415 of nix-packages:x86_64-linux-master-pr272:wordpress-plugins.friends
Hydra woodpecker-server Hydra build #50416 of nix-packages:x86_64-linux-master-pr272:woodpecker-server
Hydra constructium Hydra build #50417 of nix-packages:x86_64-linux-master-pr272:constructium
Hydra plover-plugins-manager Hydra build #50418 of nix-packages:x86_64-linux-master-pr272:plover-plugins-manager
Hydra matrix-media-repo Hydra build #50419 of nix-packages:x86_64-linux-master-pr272:matrix-media-repo
Hydra miifox-net Hydra build #50420 of nix-packages:x86_64-linux-master-pr272:miifox-net
Hydra wordpress-plugins.classic-editor Hydra build #50421 of nix-packages:x86_64-linux-master-pr272:wordpress-plugins.classic-editor
Hydra python-simplefuzzyset Hydra build #50422 of nix-packages:x86_64-linux-master-pr272:python-simplefuzzyset
Hydra python-tulir-telethon Hydra build #50423 of nix-packages:x86_64-linux-master-pr272:python-tulir-telethon
Hydra emoji-lotte Hydra build #50424 of nix-packages:x86_64-linux-master-pr272:emoji-lotte
Hydra emoji-volpeon-drgn Hydra build #50425 of nix-packages:x86_64-linux-master-pr272:emoji-volpeon-drgn
Hydra wordpress-plugins.modern-images-wp Hydra build #50426 of nix-packages:x86_64-linux-master-pr272:wordpress-plugins.modern-images-wp
Hydra fairfax-hd Hydra build #50427 of nix-packages:x86_64-linux-master-pr272:fairfax-hd
Hydra woodpecker-cli Hydra build #50428 of nix-packages:x86_64-linux-master-pr272:woodpecker-cli
Hydra pleroma-fe Hydra build #50429 of nix-packages:x86_64-linux-master-pr272:pleroma-fe
Hydra hydra Hydra build #50430 of nix-packages:x86_64-linux-master-pr272:hydra
Hydra wordpress-plugins.webp-express Hydra build #50431 of nix-packages:x86_64-linux-master-pr272:wordpress-plugins.webp-express
Hydra wordpress-plugins.the-plus-addons-for-block-editor Hydra build #50432 of nix-packages:x86_64-linux-master-pr272:wordpress-plugins.the-plus-addons-for-block-editor
Hydra mautrix-telegram Hydra build #50433 of nix-packages:x86_64-linux-master-pr272:mautrix-telegram
Hydra wordpress-plugins.indieweb-post-kinds Hydra build #50434 of nix-packages:x86_64-linux-master-pr272:wordpress-plugins.indieweb-post-kinds

This commit is contained in:
Charlotte 🦝 Delenk 2023-06-16 06:40:20 +01:00
parent fc9f56b614
commit 2eca4eaf5a
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
6 changed files with 57 additions and 26 deletions

View file

@ -77,7 +77,7 @@ in
// ( // (
if pkgs.system == "riscv64-linux" if pkgs.system == "riscv64-linux"
then { then {
inherit (pkgsWithOverlay) vf2Kernel vf2KernelPackages; inherit (pkgsWithOverlay) vf2Kernel;
} }
else {} else {}
) )

View file

@ -259,11 +259,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1686752049, "lastModified": 1686893450,
"narHash": "sha256-GtSbXZ6ia/o+f/I5O/5ee8HGmKuwQWZhtyd2u5y5TOk=", "narHash": "sha256-QqfAYtYlb0xYY/bFIOoTxBrfNFrv3Z/J/fcZr1uQn9E=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "eafbb465a91939b9a47bc05fcef0f948903755c1", "rev": "e9705582939a5c4d49527cffc871eed5f73d05dc",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -121,7 +121,7 @@
// ( // (
if system == "riscv64-linux" if system == "riscv64-linux"
then { then {
inherit (pkgs) vf2Kernel vf2KernelPackages; inherit (pkgs) vf2Kernel;
} }
else {} else {}
); );
@ -129,12 +129,9 @@
modules = import ./modules; modules = import ./modules;
lib = import ./lib {inherit pkgs;}; lib = import ./lib {inherit pkgs;};
hydraJobs = hydraJobs = {
if (system == "x86_64-linux") || (system == "aarch64-linux") inherit packages devShells formatter;
then { };
inherit packages devShells formatter;
}
else {};
} }
); );
} }

View file

@ -4,7 +4,7 @@
}: let }: let
pkgs = import nixpkgs {}; pkgs = import nixpkgs {};
prs = builtins.fromJSON (builtins.readFile prsJSON); prs = builtins.fromJSON (builtins.readFile prsJSON);
systems = ["x86_64-linux" "aarch64-linux"]; systems = ["x86_64-linux" "aarch64-linux" "riscv64-linux"];
nixpkgs_version = ["master"]; nixpkgs_version = ["master"];
mkJobsets = system: version: mkJobsets = system: version:
(builtins.listToAttrs ( (builtins.listToAttrs (

View file

@ -20,34 +20,69 @@ in
inherit (source) rev sha256; inherit (source) rev sha256;
}; };
kernelPatches = with pkgs; [
# https://lore.kernel.org/all/20230524000012.15028-1-andre.przywara@arm.com/
rec {
name = "axp15060-1.patch";
patch = fetchpatch {
inherit name;
url = "https://lore.kernel.org/all/20230524000012.15028-2-andre.przywara@arm.com/raw";
hash = "sha256-kj4vQaT4CV29EHv8MtuTgM/semIPDdv2dmveo/X27vU=";
};
}
rec {
name = "axp15060-2.patch";
patch = fetchpatch {
inherit name;
url = "https://lore.kernel.org/all/20230524000012.15028-3-andre.przywara@arm.com/raw";
hash = "sha256-QCPQyKqoapMtqEDB9QgAuXA7n8e1OtG+YlIgeSQBxXM=";
};
}
rec {
name = "axp15060-3.patch";
patch = fetchpatch {
inherit name;
url = "https://lore.kernel.org/all/20230524000012.15028-4-andre.przywara@arm.com/raw";
hash = "sha256-SpKDm4PXR6qs7kX5SGVpFF/EPBijMhX1NsFUHrlCynM=";
};
}
];
structuredExtraConfig = with lib.kernel; { structuredExtraConfig = with lib.kernel; {
ARCH_STARFIVE = yes;
SOC_STARFIVE = yes;
SERIAL_8250 = yes;
NO_HZ_IDLE = yes;
CPU_FREQ = yes; CPU_FREQ = yes;
CPUFREQ_DT = yes; CPUFREQ_DT = yes;
CPUFREQ_DT_PLATDEV = yes; CPUFREQ_DT_PLATDEV = yes;
HIBERNATION = yes; DMADEVICES = yes;
GPIO_SYSFS = yes; GPIO_SYSFS = yes;
POWER_RESET_GPIO_RESET = yes; HIBERNATION = yes;
NO_HZ_IDLE = yes;
POWER_RESET_GPIO_RESTART = yes;
PROC_KCORE = yes; PROC_KCORE = yes;
PWM = yes; PWM = yes;
PWM_STARFIVE_PTC = yes; PWM_STARFIVE_PTC = yes;
RD_GZIP = yes;
SENSORS_SFCTEMP = yes;
SERIAL_8250_DW = yes;
SIFIVE_CCACHE = yes; SIFIVE_CCACHE = yes;
SIFIVE_PLIC = yes;
V4L_PLATFORM_DRIVERS = no; # TODO: Make module RTC_DRV_STARFIVE = yes;
SPI_PL022 = yes;
SPI_PL022_STARFIVE = yes;
I2C = yes;
MFD_AXP20X = yes;
MFD_AXP20X_I2C = yes;
REGULATOR_AXP20X = yes;
# FATAL: modpost: drivers/gpu/drm/verisilicon/vs_drm: struct of_device_id is not terminated with a NULL entry!
DRM_VERISILICON = no; DRM_VERISILICON = no;
PL330_DMA = no; PL330_DMA = no;
}; };
preferBuiltin = true;
extraMeta = { extraMeta = {
branch = "JH7110_VisionFive2_upstream"; branch = "JH7110_VisionFive2_upstream";
description = "Linux kernel for StarFive's VisionFive2"; description = "Linux kernel for StarFive's VisionFive2";

View file

@ -15,7 +15,6 @@ system: self: super: let
riscv-overlay = self: super: { riscv-overlay = self: super: {
vf2Kernel = self.callPackage ./linux/vf2 {kernelPatches = [];}; vf2Kernel = self.callPackage ./linux/vf2 {kernelPatches = [];};
vf2KernelPackages = super.linuxPackagesFor self.vf2Kernel;
}; };
overlays = [ overlays = [