Robotnix | 248 Members | |
| Build Android (AOSP) using Nix | https://github.com/danielfullmer/robotnix | 76 Servers |
| Sender | Message | Time |
|---|---|---|
| 3 Jun 2024 | ||
| The easy way is to blacklist the device which pulls in the vendor dir | 17:59:47 | |
| As for the stack trace, you truncated away the actual error | 18:00:12 | |
| Ah yes, sorry:
| 18:09:57 | |
| Where is that blacklist? | 18:10:13 | |
| * Where is the blacklist | 18:10:27 | |
| This does also seem to be broken for android 13 on master, but it fails with gs101 instead of gs-common when building for cheetah | 18:19:02 | |
| If I remove the gs-common dependencies, 14 also fails on gs101. | 18:19:28 | |
| I guess those are dependencies for the tensor chip? | 18:20:09 | |
| Are they not necessary? I will try commenting those out as well | 18:20:24 | |
| To get past the errors, had to remove gs101, gs201, pantah, and pantah-kernel as well... | 18:23:01 | |
| No idea if those are necessary. I did patch the update script to pull from googlesource.com to get them to even be added. Perhaps they should just be blacklisted. Will try | 18:23:36 | |
| Ok, it actually built around 300 source files! Then it failed with this:
| 18:47:38 | |
| Seems related to the excluded kernel libs above? | 18:47:56 | |
| erahhal: Does the kernel source for your device exist in source.dirs? | 20:49:00 | |
I guess this is where I admit I should know more about using a nix development environment. How do I see where the sources are pulled down? I've been testing this by creating a flake that pulls in my robotnix branch as an input then calls robotnixSystem | 20:52:15 | |
| It seems that it's putting sources into the nix store during build time, but otherwise I don't know | 20:52:39 | |
| It's actually constructing an android source tree in the build env | 20:53:05 | |
| You can check the source.dirs attribute for the paths that will be linked and their sources | 20:53:24 | |
| Right, how do I do that though 😅 | 20:55:08 | |
| This is sort of a complicated project to be diving into as someone not very experienced with Nix build environment heh. But I guess I'm the type to learn by jumping into the deep end of the pool | 20:56:02 | |
| * This is sort of a complicated project to be diving into as someone not very experienced with Nix build environment heh. But I guess I'm the type to learn to swim by jumping into the deep end of the pool | 20:56:35 | |
| You mean how to instrospect Nix values? | 20:56:54 | |
nix repl is a good start | 20:56:55 | |
In reply to @erahhal:matrix.orgThat's the spirit :) | 20:57:19 | |
| Ok, I'll do a bit of reading on how to use the repl | 20:58:06 | |
| Just open the repl on robotnix and poke around | 20:58:28 | |
| It'll try to print any value you give ti | 20:58:34 | |
| * It'll try to print any value you give it | 20:58:39 | |
Robotnix is a module system, so the result of all the configuration is in the config attribute | 20:59:01 | |
| Just like NixOS | 20:59:04 | |