1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 19:23:01 +03:00
Commit Graph

1640 Commits

Author SHA1 Message Date
Samuel Dionne-Riel
29811f1016 android-flashable-zip-binaries: Init
This package provides a unique binary per architecture, which can load
an additional script from the flashable zip.

This way, one "expensive" (not really) build of mruby+script is shared
for the whole architecture.
2021-02-28 15:53:12 -05:00
Samuel Dionne-Riel
b88db753de mrbgems: Update mruby-open3
Includes a PR authored by myself.
2021-02-28 00:18:53 -05:00
Samuel Dionne-Riel
0ba16522e3 mrbgems: Init mruby-tempfile 2021-02-28 00:18:53 -05:00
Samuel Dionne-Riel
6d6b082793 mruby-builder: Fix pkg-config helper build
Woopsie, we were creating a script for the target!!
2021-02-28 00:18:53 -05:00
Artturin
dd8bd9c839 pine64-pinephone: fix #315 2021-02-28 02:28:14 +02:00
Artturin
03c91767a0 pine64-pinephone: normalize kernel config 2021-02-28 02:28:14 +02:00
Artturin
aad07c2a08 pine64-pinephone: kernel 5.10 -> 5.11.2 2021-02-28 02:28:02 +02:00
Samuel Dionne-Riel
0012ba11fc mruby-builder: Use given nativeBuildInputs 2021-02-26 21:52:57 -05:00
Samuel Dionne-Riel
df6d75c816
Merge pull request #316 from samueldr-wip/feature/hydra-like-eval-helper
bin/hydra-eval: Add hydra-like eval helper
2021-02-26 17:30:06 -05:00
Samuel Dionne-Riel
36cff692b2 release.nix: Fix oversight with kernel builders
This way we finally have an error-free eval.
2021-02-24 18:43:37 -05:00
Samuel Dionne-Riel
dfd39a16cb bin/hydra-eval: Add hydra-like eval helper
This helper is intended to be used by contributors that are changing
parts of this project that are either touching `lib/` and the evaluation
helpers, or changing `release.nix`.

There are no facilities to *compare* evals, yet. But this can be done by
the contributor, they can go to any commit they want to compare to, run
the eval and save the output markdown report. Then they can compare
against their new markdown report.

Finally, splitting the eval errors like we do in the reports should make
it really obvious what errors happened during the eval.
2021-02-24 18:19:10 -05:00
Samuel Dionne-Riel
7203f97d89
Merge pull request #314 from samueldr-wip/fix/demo-rootfs-eval
examples/demo: Fix rootfs eval
2021-02-23 21:27:23 -05:00
Samuel Dionne-Riel
4e326d16f4 examples/demo: Fix rootfs eval
This was a late change, which *should* have been eval'd before hitting
merge :(.
2021-02-23 21:16:29 -05:00
Samuel Dionne-Riel
49ff697b6c
Merge pull request #313 from samueldr-wip/fix/fix-hermetic-eval
lib: Add missing eval-with-configuration.nix file
2021-02-23 21:08:29 -05:00
Samuel Dionne-Riel
500d3d95b1 lib: Add missing eval-with-configuration.nix file 2021-02-23 21:05:28 -05:00
Samuel Dionne-Riel
0d9c6ce207
Merge pull request #310 from samueldr-wip/fix/more-hermetic-release.nix
More hermetic release.nix and examples
2021-02-23 21:02:59 -05:00
Samuel Dionne-Riel
cc91549973
Merge pull request #309 from samueldr-wip/feature/testedPlus
release.nix: Add testedPlus aggregate job
2021-02-23 21:00:30 -05:00
Samuel Dionne-Riel
98e2ab907f
Merge pull request #305 from samueldr-wip/feature/lvgui-pan
lvgui: "pan" framebuffers
2021-02-23 20:59:51 -05:00
Samuel Dionne-Riel
d82733b13e
Merge pull request #306 from samueldr-wip/fix/armv7l
armv7: Misc. fixes
2021-02-23 20:59:28 -05:00
Samuel Dionne-Riel
a8c6a2c3bb
Merge pull request #303 from samueldr-wip/feature/ensure-uevent
boot/init: Make udev a dependency for the switch root target
2021-02-23 20:18:41 -05:00
Samuel Dionne-Riel
32a7185b2f default.nix: Use eval-with-configuration.nix 2021-02-23 20:17:19 -05:00
Samuel Dionne-Riel
eaf8f4a92e examples/testing: Use eval-with-configuration.nix 2021-02-23 20:17:19 -05:00
Samuel Dionne-Riel
ea70da6a5b examples/target-disk-mode: Use eval-with-configuration.nix 2021-02-23 20:17:19 -05:00
Samuel Dionne-Riel
5b49dcf208 examples/hello: Use eval-with-configuration.nix 2021-02-23 20:17:19 -05:00
Samuel Dionne-Riel
0ef6bd9d5d examples/demo: Use eval-with-configuration.nix
In addition, drop `android-burn-tool`. It hasn't been used for while, as
in the end it is not actually needed.
2021-02-23 20:17:19 -05:00
Samuel Dionne-Riel
f87c490614
Merge pull request #312 from samueldr-wip/fix/build-dir-refs
doc: Fix issue with build dir references
2021-02-23 15:17:24 -05:00
Samuel Dionne-Riel
8b0f26b7cc doc: Fail if there are references to NIX_BUILD_TOP 2021-02-23 14:16:08 -05:00
Samuel Dionne-Riel
47efa827ec doc: Strip the actual prefix for news pages
The cwd could change depending on sandboxing or not, e.g. with the cachix
build!
2021-02-23 14:15:11 -05:00
Samuel Dionne-Riel
f1268082f9 lib/release-tools: eval helpers don't include default.nix anymore
This is required for more hermetic evals.

A simple thing to try is, before this change, replace `default.nix` with
`throw "No thanks..."`. It would throw. It was also possible to observe
`local.nix` was being included by the warnings.

Wioth this change, `release.nix` does not include `local.nix` through
`default.nix`.

I think this was the last piece of Mobile NixOS that actually relied on
`default.nix` being a thing. We have finally completely inverted the
control, where `default.nix` uses the helpers, rather than the helpers
evaluating a specialized `default.nix`.

From now on, it should be entirely safe to experiment with
`default.nix`. We should be able to **fail noisily** when a user builds
the default empty configuration!
2021-02-21 17:34:12 -05:00
Samuel Dionne-Riel
a1b7ba14d7 release.nix: Add testedPlus aggregate job
This includes the whole `tested` job (a simple no-op for hydra), but
adds additional things we want to track success for.

`tested` is for the basic minimum we want to succeed.
`testedPlus` adds more exotic, and less well-tested platforms.
2021-02-21 17:33:43 -05:00
Samuel Dionne-Riel
fb11c6f3fe boot/script-loader: Strip store path hashes
This is required otherwise nuke-refs will destroy the irep.
2021-02-20 17:23:01 -05:00
Samuel Dionne-Riel
072325ce00 boot/script-loader: Fix for new mruby.builder 2021-02-20 17:23:01 -05:00
Samuel Dionne-Riel
056fc26e2d mruby: Add patch to strip store paths in debug info
This fixes backtraces in stage-1!
2021-02-20 17:23:01 -05:00
Samuel Dionne-Riel
cc591aef6d mruby: Review how mruby.builder is made
Using `.override` inside the builder leads to `.override` outside being
ignored, as the `mruby` used would be whatever was last given to the
passthru `builder`'s own overrides or callPackages.

This breaks current calls to `mruby.builder` when `gems` was given.
Though since it breaks noisily, it won't silently ignore your gems.
2021-02-20 17:23:01 -05:00
Samuel Dionne-Riel
21e86e233f mruby: Fix mrbc wrapper for debug info
The postInstall hook was never ran... D'oh!
2021-02-20 17:23:01 -05:00
Samuel Dionne-Riel
1b8f27468b mrbgems: mruby-fiddle: Update to latest version, fixing armv7 2021-02-20 17:23:01 -05:00
Samuel Dionne-Riel
ad8a966d22 mrbgems: Update mruby-regexp-pcre
Additionally add a required patch for armv7 and 64 bit mrb_ints
2021-02-20 17:23:01 -05:00
Samuel Dionne-Riel
75b118563d mruby: Force 64 bit integers
This might seem weird at first, but is totally needed. We have 48 bit
integers we need to handle, RGBA colours.

AFAICT full-blown Ruby would automatically handle going through another
class for larger integer. But it looks like mruby doesn't

Let's intead use the 64 bit type!
2021-02-20 17:23:01 -05:00
Samuel Dionne-Riel
90167b0b64 cross-workarounds: Work around libselinux dependency issue
It fails with:

```
/nix/store/m7080pw0ryjk0jhljp55rq1hd2qy8gki-python3-3.8.6/include/python3.8/pyport.h:726:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
  726 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."

[...]

builder for '/nix/store/cdysjc47jc4z49r25xzwf2sazqd4w4rg-libselinux-3.0-armv7l-unknown-linux-gnueabihf.drv' failed with exit code 2
```
2021-02-20 17:23:01 -05:00
Samuel Dionne-Riel
441701d215 lvgui: Update native fragment 2021-02-20 16:41:23 -05:00
Samuel Dionne-Riel
8745395e25 examples/demo: Enable fb-refresher by default 2021-02-20 16:41:23 -05:00
Samuel Dionne-Riel
e5ca35f45e quirks/framebuffer: fb-refresher is enabled separately for stage-1/0 2021-02-20 16:41:23 -05:00
Samuel Dionne-Riel
32f86364a1 boot/init: Make udev a dependency for the switch root target
In some instances, e.g. really slow CPU, udev might not have run, and
libinput will not be able to work appropriately.

That is because uevent files will be missing.
2021-02-20 16:40:38 -05:00
Samuel Dionne-Riel
7332254db2
Merge pull request #298 from MetaDark/fix-libxkbcommon
boot/lib/lvgui: fix libxkbcommon after nixpkgs#108004
2021-02-15 17:22:37 -05:00
Samuel Dionne-Riel
62297b2e10
Merge pull request #300 from samueldr-wip/feature/stage-0-finishing-touches
Finish stage-0 boot features
2021-02-15 16:19:44 -05:00
Samuel Dionne-Riel
aacd53d02d
Merge pull request #301 from samueldr-wip/fix/gadget-mode-error
stage-1/usb-gadget: Fix error message error
2021-02-13 00:20:49 -05:00
Samuel Dionne-Riel
34ad416e77 stage-1/usb-gadget: Fix error message error
`#constantize` does not exist on `String`.

This would only have been an issue in the improbable cause that a daemon
is not configured for an FFS gadget.
2021-02-11 19:52:38 -05:00
Samuel Dionne-Riel
746321b6cc pine64-pinephone: Forward wifi mac address from bootloader 2021-02-11 18:15:34 -05:00
Samuel Dionne-Riel
f0a7e33767 boot/init: switch root forwards FDT properties as needed 2021-02-11 18:15:34 -05:00
Samuel Dionne-Riel
ff73bb6ccf stage-0: Allow adding nodes and props to forward 2021-02-11 18:15:34 -05:00