!UUYziobKGGxpovWyAN:nixos.org

Robotnix

244 Members
Build Android (AOSP) using Nix | https://github.com/danielfullmer/robotnix75 Servers

Load older messages


SenderMessageTime
28 May 2024
@erahhal:matrix.orgerahhal Found this thread, but I don't see the release variant being set to "trunk" anywhere. 01:27:15
@atemu12:matrix.orgatemu12Check whether the LOS build instructions have changed 14:34:56
@atemu12:matrix.orgatemu12It's smells like the targets are specified differently now14:35:07
@erahhal:matrix.orgerahhal Looking at https://wiki.lineageos.org/devices/cheetah/build/ I'm not seeing anything obvious. Will need to familiarize more with what Robotnix is doing. I assume base.nix is the right file. 16:12:23
@erahhal:matrix.orgerahhal

I tried explicitly setting the target using export TARGET_RELEASE=ap1a and it goes a little further, with the following error:

robotnix-lineage_cheetah> building '/nix/store/9pnnwqhaz86hy9hlsqvf1ayz9fcp0l91-robotnix-lineage_cheetah-2024052404.drv'
robotnix-lineage_cheetah> unpacking sources
robotnix-lineage_cheetah> patching sources
robotnix-lineage_cheetah> building
robotnix-lineage_cheetah> Build type choices are:
robotnix-lineage_cheetah>      1. release
robotnix-lineage_cheetah>      2. debug
robotnix-lineage_cheetah>
robotnix-lineage_cheetah> Which would you like? [1] release
robotnix-lineage_cheetah>
robotnix-lineage_cheetah>
robotnix-lineage_cheetah> Which product would you like? [aosp_arm] lineage_cheetah
robotnix-lineage_cheetah> In file included from build/make/core/config.mk:389:
robotnix-lineage_cheetah> In file included from build/make/core/envsetup.mk:51:
robotnix-lineage_cheetah> build/make/core/release_config.mk:109: error: No release config found for TARGET_RELEASE: trunk_staging. Available releases are: ap1a.
robotnix-lineage_cheetah> 16:15:11 dumpvars failed with: exit status 1
robotnix-lineage_cheetah> ** Not a valid product: lineage_cheetah

16:16:26
29 May 2024
@raitobezarius:matrix.orgraitobezarius changed their display name from raitobezarius to raitobezarius (DECT: 7248).17:09:57
@erahhal:matrix.orgerahhal Is this line the one that is supposed to set TARGET_PRODUCT? Or is it the envsetup.sh line above? 17:30:22
@erahhal:matrix.orgerahhal * Is this line the one that is supposed to set TARGET_PRODUCT? Or is it the envsetup.sh line above it? 17:30:29
@erahhal:matrix.orgerahhal I would assume it's the envsetup.sh line since it's sourceed, as scripts can't normally set the caller's environment 17:31:01
@erahhal:matrix.orgerahhalAh yeah looks like it17:31:55
@atemu12:matrix.orgatemu12Envsetup loads a bunch of bash functions17:44:39
@atemu12:matrix.orgatemu12The line you linked is probably such a function17:45:10
@atemu12:matrix.orgatemu12So it can indeed load env vars17:45:29
@erahhal:matrix.orgerahhalThanks.18:23:02
@erahhal:matrix.orgerahhal My current strategy is to see what's different from this repo which successfully builds 21. 18:23:27
@atemu12:matrix.orgatemu12That sounds like a good plan18:32:40
@swendel:curious.bio@swendel:curious.bio joined the room.22:28:30
3 Jun 2024
@eyjhb:eyjhb.dkeyJhb Atemu: https://github.com/nix-community/robotnix/pull/227 any chance this can get merged? :D 08:13:47
@atemu12:matrix.orgatemu12I'll have to take a look13:50:54
@erahhal:matrix.orgerahhal

i've still been trying to get 21 to build in my free time. Realized that there were some issues with the update script that didn't fully populate device-dirs.json and vendor-dirs.json, specifically get_store_path in robotnix_common.py was returning the path with None/ appended to it. I addressed that, and it seems that the json files are fully populated. I did have to comment out adding a dependency to the vendor file (vendor/google/gs-common) as no repo seems to exist. Not sure where to find that repo. I tried building and now get a nix failure rather than an android build failure:

error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'cheetah-factory-2024060308.zip'
         whose name attribute is located at /nix/store/d0dl9ch4hhxkqikc1dw3868j95gsbb0h-source/pkgs/stdenv/generic/make-derivation.nix:205:7

       … while evaluating attribute 'buildCommand' of derivation 'cheetah-factory-2024060308.zip'

         at /nix/store/d0dl9ch4hhxkqikc1dw3868j95gsbb0h-source/pkgs/build-support/trivial-builders.nix:74:14:

           73|       name = lib.strings.sanitizeDerivationName name;
           74|       inherit buildCommand;
             |              ^
           75|       passAsFile = [ "buildCommand" ]

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: attribute '"vendor/google/gs-common"' missing

       at /nix/store/d0dl9ch4hhxkqikc1dw3868j95gsbb0h-source/lib/attrsets.nix:107:50:

          106|   */
          107|   getAttrs = names: attrs: genAttrs names (name: attrs.${name});
             |                                                  ^
          108|

17:56:59
@atemu12:matrix.orgatemu12The easy way is to blacklist the device which pulls in the vendor dir17:59:47
@atemu12:matrix.orgatemu12As for the stack trace, you truncated away the actual error18:00:12
@erahhal:matrix.orgerahhal

Ah yes, sorry:


       error: attribute '"vendor/google/gs-common"' missing

       at /nix/store/d0dl9ch4hhxkqikc1dw3868j95gsbb0h-source/lib/attrsets.nix:107:50:

          106|   */
          107|   getAttrs = names: attrs: genAttrs names (name: attrs.${name});
             |                                                  ^
          108|

18:09:57
@erahhal:matrix.orgerahhalWhere is that blacklist?18:10:13
@erahhal:matrix.orgerahhal * Where is the blacklist18:10:27
@erahhal:matrix.orgerahhalThis does also seem to be broken for android 13 on master, but it fails with gs101 instead of gs-common when building for cheetah18:19:02
@erahhal:matrix.orgerahhalIf I remove the gs-common dependencies, 14 also fails on gs101.18:19:28
@erahhal:matrix.orgerahhalI guess those are dependencies for the tensor chip?18:20:09
@erahhal:matrix.orgerahhalAre they not necessary? I will try commenting those out as well18:20:24
@erahhal:matrix.orgerahhalTo get past the errors, had to remove gs101, gs201, pantah, and pantah-kernel as well...18:23:01

Show newer messages


Back to Room ListRoom Version: 6