Merge pull request 'fix kernels' (#275) from fix-kernels into main
Some checks failed
Hydra linux-bcachefs Hydra build #54304 of nix-packages:x86_64-linux-master:linux-bcachefs
Hydra bcachefs-tools Hydra build #54364 of nix-packages:x86_64-linux-master:bcachefs-tools
Hydra lotte-art Hydra build #54406 of nix-packages:aarch64-linux-master:lotte-art
Hydra old-homepage Hydra build #54429 of nix-packages:aarch64-linux-master:old-homepage
Hydra plover-dict-didoesdigital Hydra build #54435 of nix-packages:aarch64-linux-master:plover-dict-didoesdigital
Hydra papermc Hydra build #54338 of nix-packages:x86_64-linux-master:papermc
Hydra python-tulir-telethon Hydra build #54214 of nix-packages:riscv64-linux-master:python-tulir-telethon
Hydra pleroma-fe Hydra build #54215 of nix-packages:riscv64-linux-master:pleroma-fe
Hydra emoji-volpeon-blobfox Hydra build #54221 of nix-packages:riscv64-linux-master:emoji-volpeon-blobfox
Hydra plover Hydra build #54269 of nix-packages:riscv64-linux-master:plover
Hydra wordpress-plugins.friends Hydra build #54225 of nix-packages:riscv64-linux-master:wordpress-plugins.friends
Hydra python-mautrix Hydra build #54288 of nix-packages:riscv64-linux-master:python-mautrix
Hydra nasin-nanpa Hydra build #54229 of nix-packages:riscv64-linux-master:nasin-nanpa
Hydra mautrix-discord Hydra build #54230 of nix-packages:riscv64-linux-master:mautrix-discord
Hydra emoji-volpeon-bunhd-flip Hydra build #54231 of nix-packages:riscv64-linux-master:emoji-volpeon-bunhd-flip
Hydra akkoma Hydra build #54232 of nix-packages:riscv64-linux-master:akkoma
Hydra plover-plugin-yaml-dictionary Hydra build #54234 of nix-packages:riscv64-linux-master:plover-plugin-yaml-dictionary
Hydra wordpress-plugins.wordpress-seo Hydra build #54235 of nix-packages:riscv64-linux-master:wordpress-plugins.wordpress-seo
Hydra plover-plugin-tapey-tape Hydra build #54237 of nix-packages:riscv64-linux-master:plover-plugin-tapey-tape
Hydra mautrix-signal Hydra build #54238 of nix-packages:riscv64-linux-master:mautrix-signal
Hydra vf2Kernel Hydra build #54239 of nix-packages:riscv64-linux-master:vf2Kernel
Hydra python-instagram Hydra build #54243 of nix-packages:riscv64-linux-master:python-instagram
Hydra emoji-volpeon-blobfox-flip Hydra build #54245 of nix-packages:riscv64-linux-master:emoji-volpeon-blobfox-flip
Hydra emoji-volpeon-gphn Hydra build #54252 of nix-packages:riscv64-linux-master:emoji-volpeon-gphn
Hydra emoji-volpeon-bunhd Hydra build #54254 of nix-packages:riscv64-linux-master:emoji-volpeon-bunhd
Hydra plover-plugin-machine-hid Hydra build #54255 of nix-packages:riscv64-linux-master:plover-plugin-machine-hid
Hydra admin-fe Hydra build #54260 of nix-packages:riscv64-linux-master:admin-fe
Hydra miifox-net Hydra build #54261 of nix-packages:riscv64-linux-master:miifox-net
Hydra matrix-media-repo Hydra build #54264 of nix-packages:riscv64-linux-master:matrix-media-repo
Hydra mautrix-whatsapp Hydra build #54270 of nix-packages:riscv64-linux-master:mautrix-whatsapp
Hydra kubo Hydra build #54271 of nix-packages:riscv64-linux-master:kubo
Hydra emoji-volpeon-drgn Hydra build #54273 of nix-packages:riscv64-linux-master:emoji-volpeon-drgn
Hydra emoji-volpeon-raccoon Hydra build #54275 of nix-packages:riscv64-linux-master:emoji-volpeon-raccoon
Hydra emoji-volpeon-vlpn Hydra build #54281 of nix-packages:riscv64-linux-master:emoji-volpeon-vlpn
Hydra plover-plugin-emoji Hydra build #54283 of nix-packages:riscv64-linux-master:plover-plugin-emoji
Hydra emoji-volpeon-fox Hydra build #54284 of nix-packages:riscv64-linux-master:emoji-volpeon-fox
Hydra plover-plugin-rkb1-hid Hydra build #54286 of nix-packages:riscv64-linux-master:plover-plugin-rkb1-hid
Hydra woodpecker-cli Hydra build #54421 of nix-packages:aarch64-linux-master:woodpecker-cli
Hydra woodpecker-agent Hydra build #54422 of nix-packages:aarch64-linux-master:woodpecker-agent
Hydra woodpecker-frontend Hydra build #54430 of nix-packages:aarch64-linux-master:woodpecker-frontend
Hydra woodpecker-server Hydra build #54428 of nix-packages:aarch64-linux-master:woodpecker-server
Hydra fcitx5 Hydra build #54593 of nix-packages:aarch64-linux-master:fcitx5
Hydra emoji-caro Hydra build #54707 of nix-packages:aarch64-linux-master:emoji-caro
Hydra emoji-lotte Hydra build #54708 of nix-packages:aarch64-linux-master:emoji-lotte
Hydra plover-plugins-manager Hydra build #54751 of nix-packages:aarch64-linux-master:plover-plugins-manager
Hydra mautrix-telegram Hydra build #54752 of nix-packages:aarch64-linux-master:mautrix-telegram
ci/woodpecker/cron/update-lockfile Pipeline failed
ci/woodpecker/cron/update Pipeline failed
Hydra wordpress-plugins.ilab-media-tools Hydra build #54217 of nix-packages:riscv64-linux-master:wordpress-plugins.ilab-media-tools
Hydra wordpress-plugins.nodeinfo Hydra build #54218 of nix-packages:riscv64-linux-master:wordpress-plugins.nodeinfo
Hydra fairfax Hydra build #54226 of nix-packages:riscv64-linux-master:fairfax
Hydra wordpress-plugins.activitypub Hydra build #54227 of nix-packages:riscv64-linux-master:wordpress-plugins.activitypub
Hydra python-rtf-tokenize Hydra build #54233 of nix-packages:riscv64-linux-master:python-rtf-tokenize
Hydra wordpress-plugins.classic-editor Hydra build #54236 of nix-packages:riscv64-linux-master:wordpress-plugins.classic-editor
Hydra python-plover-stroke Hydra build #54242 of nix-packages:riscv64-linux-master:python-plover-stroke
Hydra fairfax-hd Hydra build #54244 of nix-packages:riscv64-linux-master:fairfax-hd
Hydra wordpress-plugins.the-plus-addons-for-block-editor Hydra build #54247 of nix-packages:riscv64-linux-master:wordpress-plugins.the-plus-addons-for-block-editor
Hydra kreative-square Hydra build #54249 of nix-packages:riscv64-linux-master:kreative-square
Hydra wordpress-plugins.pubsubhubbub Hydra build #54250 of nix-packages:riscv64-linux-master:wordpress-plugins.pubsubhubbub
Hydra wordpress-themes.twentytwentythree Hydra build #54256 of nix-packages:riscv64-linux-master:wordpress-themes.twentytwentythree
Hydra wordpress-plugins.syndication-links Hydra build #54257 of nix-packages:riscv64-linux-master:wordpress-plugins.syndication-links
Hydra wordpress-plugins.micropub Hydra build #54258 of nix-packages:riscv64-linux-master:wordpress-plugins.micropub
Hydra wordpress-plugins.hum Hydra build #54259 of nix-packages:riscv64-linux-master:wordpress-plugins.hum
Hydra wordpress-plugins.indieweb-post-kinds Hydra build #54262 of nix-packages:riscv64-linux-master:wordpress-plugins.indieweb-post-kinds
Hydra python-simplefuzzyset Hydra build #54263 of nix-packages:riscv64-linux-master:python-simplefuzzyset
Hydra wordpress-plugins.modern-images-wp Hydra build #54265 of nix-packages:riscv64-linux-master:wordpress-plugins.modern-images-wp
Hydra wordpress-plugins.jetpack Hydra build #54266 of nix-packages:riscv64-linux-master:wordpress-plugins.jetpack
Hydra wordpress-plugins.polylang Hydra build #54276 of nix-packages:riscv64-linux-master:wordpress-plugins.polylang
Hydra wordpress-plugins.webmention Hydra build #54280 of nix-packages:riscv64-linux-master:wordpress-plugins.webmention
Hydra wordpress-plugins.webp-express Hydra build #54282 of nix-packages:riscv64-linux-master:wordpress-plugins.webp-express
Hydra wordpress-plugins.google-sitemap-generator Hydra build #54287 of nix-packages:riscv64-linux-master:wordpress-plugins.google-sitemap-generator
Hydra wordpress-plugins.modern-footnotes Hydra build #54216 of nix-packages:riscv64-linux-master:wordpress-plugins.modern-footnotes
Hydra wordpress-plugins.webfinger Hydra build #54241 of nix-packages:riscv64-linux-master:wordpress-plugins.webfinger
Hydra wordpress-plugins.indieauth Hydra build #54246 of nix-packages:riscv64-linux-master:wordpress-plugins.indieauth
Hydra alco-sans Hydra build #54248 of nix-packages:riscv64-linux-master:alco-sans
Hydra constructium Hydra build #54251 of nix-packages:riscv64-linux-master:constructium
Hydra element-web Hydra build #54253 of nix-packages:riscv64-linux-master:element-web
Hydra wordpress-themes.sempress Hydra build #54274 of nix-packages:riscv64-linux-master:wordpress-themes.sempress
Hydra wordpress-plugins.wp-super-cache Hydra build #54278 of nix-packages:riscv64-linux-master:wordpress-plugins.wp-super-cache
Hydra wordpress-plugins.indieweb Hydra build #54285 of nix-packages:riscv64-linux-master:wordpress-plugins.indieweb

Reviewed-on: #275
This commit is contained in:
Charlotte 🦝 Delenk 2023-06-25 15:59:10 +00:00
commit b15e4ae106
Signed by: gitea-bot
GPG key ID: C9974EDF9932B558
3 changed files with 79 additions and 91 deletions

View file

@ -7,7 +7,7 @@
modDirVersion = "6.3.0";
source = builtins.fromJSON (builtins.readFile ./source.json);
in
(buildLinux (args
buildLinux (args
// {
inherit modDirVersion;
version = "6.3.0+${source.rev}";
@ -25,11 +25,4 @@ in
DYNAMIC_FTRACE = yes;
FTRACE = yes;
};
}))
.overrideAttrs (_: {
passthru.updateScript = [
../../scripts/update-git.sh
"https://github.com/koverstreet/bcachefs"
"linux/bcachefs/source.json"
];
})
})

View file

@ -9,94 +9,84 @@
modDirVersion = "6.4.0-rc6";
source = builtins.fromJSON (builtins.readFile ./source.json);
in
(
buildLinux (args
// {
inherit modDirVersion;
version = "${modDirVersion}-vf2";
buildLinux (args
// {
inherit modDirVersion;
version = "${modDirVersion}-vf2";
src = fetchFromGitHub {
owner = "starfive-tech";
repo = "linux";
inherit (source) rev sha256;
};
src = fetchFromGitHub {
owner = "starfive-tech";
repo = "linux";
inherit (source) rev sha256;
};
kernelPatches = [
# 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=";
};
}
];
kernelPatches = [
# 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; {
CPU_FREQ = yes;
CPUFREQ_DT = yes;
CPUFREQ_DT_PLATDEV = yes;
DMADEVICES = yes;
GPIO_SYSFS = yes;
HIBERNATION = yes;
NO_HZ_IDLE = yes;
POWER_RESET_GPIO_RESTART = yes;
PROC_KCORE = yes;
PWM = yes;
PWM_STARFIVE_PTC = yes;
RD_GZIP = yes;
SENSORS_SFCTEMP = yes;
SERIAL_8250_DW = yes;
SIFIVE_CCACHE = yes;
SIFIVE_PLIC = yes;
structuredExtraConfig = with lib.kernel; {
CPU_FREQ = yes;
CPUFREQ_DT = yes;
CPUFREQ_DT_PLATDEV = yes;
DMADEVICES = yes;
GPIO_SYSFS = yes;
HIBERNATION = yes;
NO_HZ_IDLE = yes;
POWER_RESET_GPIO_RESTART = yes;
PROC_KCORE = yes;
PWM = yes;
PWM_STARFIVE_PTC = yes;
RD_GZIP = yes;
SENSORS_SFCTEMP = yes;
SERIAL_8250_DW = yes;
SIFIVE_CCACHE = yes;
SIFIVE_PLIC = yes;
RTC_DRV_STARFIVE = yes;
SPI_PL022 = yes;
SPI_PL022_STARFIVE = yes;
RTC_DRV_STARFIVE = yes;
SPI_PL022 = yes;
SPI_PL022_STARFIVE = yes;
I2C = yes;
MFD_AXP20X = yes;
MFD_AXP20X_I2C = yes;
REGULATOR_AXP20X = 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;
# FATAL: modpost: drivers/gpu/drm/verisilicon/vs_drm: struct of_device_id is not terminated with a NULL entry!
DRM_VERISILICON = no;
PL330_DMA = no;
};
PL330_DMA = no;
};
preferBuiltin = true;
preferBuiltin = true;
extraMeta = {
branch = "JH7110_VisionFive2_upstream";
description = "Linux kernel for StarFive's VisionFive2";
platforms = ["riscv64-linux"];
};
}
// (args.argsOverride or {}))
)
.overrideAttrs (_: {
passthru.updateScript = [
../../scripts/update-git.sh
"https://github.com/starfive-tech/linux"
"linux/bcachefs/source.json"
"--rev refs/heads/JH7110_VisionFive2_upstream"
];
})
extraMeta = {
branch = "JH7110_VisionFive2_upstream";
description = "Linux kernel for StarFive's VisionFive2";
platforms = ["riscv64-linux"];
};
}
// (args.argsOverride or {}))

5
update.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
./scripts/update-git.sh https://github.com/starfive-tech/linux linux/vf2/source.json "--rev refs/heads/JH7110_VisionFive2_upstream"
./scripts/update-git.sh https://github.com/koverstreet/bcachefs linux/bcachefs/source.json
nix-shell ./scripts/update.sh