forked from colin/nix-files
crappy: deploy linux-exynos5-mainline kernel
This commit is contained in:
parent
46e9d5f758
commit
43da4955b7
|
@ -128,36 +128,41 @@ in
|
||||||
# });
|
# });
|
||||||
# boot.kernelPackages = with pkgs; linuxPackagesFor linux_6_1;
|
# boot.kernelPackages = with pkgs; linuxPackagesFor linux_6_1;
|
||||||
# boot.kernelPackages = with pkgs; linuxPackagesFor linux-exynos5-mainline;
|
# boot.kernelPackages = with pkgs; linuxPackagesFor linux-exynos5-mainline;
|
||||||
boot.kernelPackages = with pkgs; linuxPackagesFor (linux-postmarketos-exynos5.override {
|
# boot.kernelPackages = with pkgs; linuxPackagesFor (linux-postmarketos-exynos5.override {
|
||||||
# linux = let version = "6.6.0-rc1"; rev = "6.6.0-rc6-bi-5264"; in {
|
# # linux = let version = "6.6.0-rc1"; rev = "6.6.0-rc6-bi-5264"; in {
|
||||||
# # src = pkgs.fetchzip {
|
# # # src = pkgs.fetchzip {
|
||||||
# # url = "https://git.kernel.org/stable/t/linux-6.2.16.tar.gz";
|
# # # url = "https://git.kernel.org/stable/t/linux-6.2.16.tar.gz";
|
||||||
# # };
|
# # # };
|
||||||
# src = pkgs.fetchFromGitea {
|
# # src = pkgs.fetchFromGitea {
|
||||||
# domain = "git.uninsane.org";
|
# # domain = "git.uninsane.org";
|
||||||
# owner = "colin";
|
# # owner = "colin";
|
||||||
# repo = "linux";
|
# # repo = "linux";
|
||||||
# rev = "v${rev}";
|
# # rev = "v${rev}";
|
||||||
# hash = linuxSourceHashes."${rev}";
|
# # hash = linuxSourceHashes."${rev}";
|
||||||
# };
|
# # };
|
||||||
# inherit version;
|
# # inherit version;
|
||||||
# modDirVersion = version;
|
# # modDirVersion = version;
|
||||||
# extraMakeFlags = [];
|
# # extraMakeFlags = [];
|
||||||
# };
|
# # };
|
||||||
# linux = linux_6_6;
|
# # linux = linux_6_6;
|
||||||
# linux = linux_6_8;
|
# # linux = linux_6_8;
|
||||||
# linux = linux_6_9;
|
# # linux = linux_6_9;
|
||||||
linux = linux_latest;
|
# linux = linux_latest;
|
||||||
# optimizeForSize = true;
|
# # optimizeForSize = true;
|
||||||
# useEdpPanel = true;
|
# # useEdpPanel = true;
|
||||||
revertPanelSimplePatch = true;
|
# revertPanelSimplePatch = true;
|
||||||
});
|
|
||||||
# boot.kernelPackages = pkgs.linuxPackagesFor pkgs.linux-postmarketos-exynos5;
|
|
||||||
# boot.kernelPackages = pkgs.linuxPackagesFor (pkgs.linux_latest.override {
|
|
||||||
# kernelPatches = [
|
|
||||||
# pkgs.linux-postmarketos-exynos5.sanePatches.revertPanelSimplePatch
|
|
||||||
# ];
|
|
||||||
# });
|
# });
|
||||||
|
# boot.kernelPackages = pkgs.linuxPackagesFor pkgs.linux-postmarketos-exynos5;
|
||||||
|
boot.kernelPackages = pkgs.linuxPackagesFor (pkgs.linux-exynos5-mainline.override {
|
||||||
|
kernelPatches = [
|
||||||
|
pkgs.linux-postmarketos-exynos5.sanePatches.revertPanelSimplePatch
|
||||||
|
];
|
||||||
|
structuredExtraConfig = with lib.kernel; {
|
||||||
|
SECURITY = yes;
|
||||||
|
SECURITY_LANDLOCK = yes;
|
||||||
|
LSM = freeform "landlock,lockdown,yama,loadpin,safesetid,selinux,smack,tomoyo,apparmor,bpf";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
system.build.u-boot = pkgs.buildUBoot {
|
system.build.u-boot = pkgs.buildUBoot {
|
||||||
defconfig = "snow_defconfig";
|
defconfig = "snow_defconfig";
|
||||||
|
|
|
@ -2,7 +2,9 @@
|
||||||
, fetchFromGitLab
|
, fetchFromGitLab
|
||||||
#v nixpkgs calls `.override` on the kernel to configure additional things
|
#v nixpkgs calls `.override` on the kernel to configure additional things
|
||||||
, features ? {}
|
, features ? {}
|
||||||
|
, kernelPatches ? []
|
||||||
, randstructSeed ? ""
|
, randstructSeed ? ""
|
||||||
|
, structuredExtraConfig ? {}
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
buildLinux {
|
buildLinux {
|
||||||
|
@ -21,5 +23,5 @@ buildLinux {
|
||||||
autoModules = false;
|
autoModules = false;
|
||||||
# preferBuiltin = false;
|
# preferBuiltin = false;
|
||||||
|
|
||||||
inherit features randstructSeed;
|
inherit features kernelPatches randstructSeed structuredExtraConfig;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user