Skip to content

Commit e494314

Browse files
committed
grapheneos: remove Android 11 release
1 parent 3a60ad1 commit e494314

File tree

5 files changed

+5
-16432
lines changed

5 files changed

+5
-16432
lines changed

flavors/grapheneos/default.nix

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ let
77
optional optionalString optionalAttrs elem
88
mkIf mkMerge mkDefault mkForce;
99

10-
upstreamParams =
11-
if config.androidVersion == 11
12-
then import ./upstream-params-11.nix
13-
else import ./upstream-params.nix;
10+
upstreamParams = import ./upstream-params.nix;
1411
grapheneOSRelease = "${config.apv.buildID}.${upstreamParams.buildNumber}";
1512

1613
phoneDeviceFamilies = [ "crosshatch" "bonito" "coral" "sunfish" "redfin" "barbet" ];
@@ -32,11 +29,7 @@ in mkIf (config.flavor == "grapheneos") (mkMerge [
3229
source.dirs = lib.importJSON (./. + "/repo-${grapheneOSRelease}.json");
3330

3431
apv.enable = mkIf (elem config.deviceFamily phoneDeviceFamilies) (mkDefault true);
35-
apv.buildID = mkMerge [
36-
(mkIf (config.androidVersion == 11 && config.device != "barbet") (mkDefault "RQ3A.211001.001"))
37-
(mkIf (config.androidVersion == 11 && config.device == "barbet") (mkDefault "RD2A.211001.002"))
38-
(mkIf (config.androidVersion == 12) (mkDefault "SP1A.210812.015"))
39-
];
32+
apv.buildID = mkDefault "SP1A.210812.015";
4033

4134

4235
# Not strictly necessary for me to set these, since I override the source.dirs above

flavors/grapheneos/kernel.nix

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,12 @@ let
44
inherit (lib)
55
mkIf mkMerge mkDefault;
66

7-
# TODO: Temporary workaround for GrapheneOS 2021100606
8-
android12SourceDirs = (import ../../default.nix {
9-
inherit pkgs;
10-
configuration = {
11-
source.dirs = lib.importJSON ./repo-SP1A.210812.015.2021102300.json;
12-
};
13-
}).config.source.dirs;
14-
157
clangVersion = "r416183b";
168
postRedfin = lib.elem config.deviceFamily [ "redfin" "barbet" ];
179

1810
dependencies = let
1911
fixupRepo = repoName: { buildInputs ? [], ... }@args: pkgs.stdenv.mkDerivation ({
2012
name = lib.strings.sanitizeDerivationName repoName;
21-
# TODO: Temporary workaround for GrapheneOS 2021100606
22-
#src = android12SourceDirs.${repoName}.src;
2313
src = config.source.dirs.${repoName}.src;
2414
buildInputs = with pkgs; buildInputs ++ [ autoPatchelfHook ];
2515
installPhase = ''
@@ -33,9 +23,7 @@ let
3323
"prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9" = { buildInputs = with pkgs; [ python ]; };
3424
"prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9" = { buildInputs = with pkgs; [ python ]; };
3525
"prebuilts/clang/host/linux-x86/clang-${clangVersion}"= {
36-
# TODO: Temporary workaround for GrapheneOS 2021100606
37-
src = android12SourceDirs."prebuilts/clang/host/linux-x86".src + "/clang-${clangVersion}";
38-
# src = config.source.dirs."prebuilts/clang/host/linux-x86".src + "/clang-${clangVersion}";
26+
src = config.source.dirs."prebuilts/clang/host/linux-x86".src + "/clang-${clangVersion}";
3927
buildInputs = with pkgs; [
4028
zlib ncurses5 libedit
4129
stdenv.cc.cc.lib # For libstdc++.so.6
@@ -47,21 +35,16 @@ let
4735
};
4836
"prebuilts/gas/linux-x86" = {};
4937
"prebuilts/misc/linux-x86" = {
50-
# TODO: Temporary workaround for GrapheneOS 2021100606
51-
src = android12SourceDirs."prebuilts/misc".src + "/linux-x86";
52-
#src = config.source.dirs."prebuilts/misc".src + "/linux-x86";
38+
src = config.source.dirs."prebuilts/misc".src + "/linux-x86";
5339
buildInputs = with pkgs; [ python ];
5440
};
5541
"kernel/prebuilts/build-tools" = {
56-
# TODO: Temporary workaround for GrapheneOS 2021100606
5742
src = config.source.dirs."kernel/prebuilts/build-tools".src;
5843
buildInputs = with pkgs; [ python ];
5944
postInstall = ''
6045
# Workaround for patchelf not working with embedded python interpreter
61-
# TODO: Temporary workaround for GrapheneOS 2021100606
62-
cp ${android12SourceDirs."system/libufdt".src}/utils/src/mkdtboimg.py $out/linux-x86/bin
46+
cp ${config.source.dirs."system/libufdt".src}/utils/src/mkdtboimg.py $out/linux-x86/bin
6347
'';
64-
# cp ${config.source.dirs."system/libufdt".src}/utils/src/mkdtboimg.py $out/linux-x86/bin
6548
};
6649
});
6750

0 commit comments

Comments
 (0)