1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-16 11:43:21 +03:00
Commit Graph

1550 Commits

Author SHA1 Message Date
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
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
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
Samuel Dionne-Riel
3014bcb858 stage-0: Add fdt-forward 2021-02-11 18:15:34 -05:00
Samuel Dionne-Riel
c81e858ea5 initrd: Add kexectool in stage-0 module 2021-02-11 18:15:34 -05:00
Samuel Dionne-Riel
7a0a108ffa ubootTools: Fix and work around cross-compilation issues 2021-02-11 18:15:34 -05:00
Samuel Dionne-Riel
715ea5927b shell.nix: Add dtc and ubootTools 2021-02-11 18:15:34 -05:00
Samuel Dionne-Riel
ff172ec9da ubootTools: Import a patch for fdtgrep
Otherwise array values forwarded using the `fdt-forward` helper will be
broken when items are > 127 due to the sign.
2021-02-11 18:15:34 -05:00
Samuel Dionne-Riel
c8aa5f8a26 fdt-forward: Init tool to copy FDT nodes and props
Will be used by stage-0 to forward nodes that are required.
2021-02-11 18:15:34 -05:00
Samuel Dionne-Riel
b667d2298f boot/init: kexec now uses generation DTB if possible
Fixes #264
2021-02-11 18:15:23 -05:00
Samuel Dionne-Riel
c85712a663 system-build: Add DTB mapping 2021-02-11 18:14:30 -05:00
Samuel Dionne-Riel
c8ba18ede4 map-dtbs: Init tool to create dtb file mapping
The tool is intended to be used to produce a list of "compatible
strings", mapped to their dtb paths.
2021-02-11 18:14:30 -05:00
Samuel Dionne-Riel
826315aa11 system-build: Init module adding details to toplevel
For now, device-name... but see following commit.
2021-02-11 18:14:30 -05:00
Samuel Dionne-Riel
2a46962d76 boot/init: Honor skipping kexec 2021-02-11 18:14:30 -05:00
Samuel Dionne-Riel
aea3b46d13 boot/recovery-menu: Add option to skip kexec
But why?

Multiple reasons:

 - generation kernel does not work as expected
 - booting a boot.img with an experimental kernel

I'm sure there's other reasons too.

Fixes #266
2021-02-11 18:14:30 -05:00
Samuel Dionne-Riel
5d50144468 boot/recovery-menu: Pass data around using JSON 2021-02-11 18:14:30 -05:00
Kira Bruneau
7beb26204f boot/lib/lvgui: fix libxkbcommon after nixpkgs#108004 2021-02-09 17:55:57 -05:00
Samuel Dionne-Riel
fc65d0a89b
Merge pull request #297 from MetaDark/fix-dtb-detection
kernel-builder: Fix detecting dtb support (after nixpkgs#110544)
2021-02-08 17:13:09 -05:00
Kira Bruneau
f2a4d0104c kernel-builder: Fix detecting dtb support (after nixpkgs#110544)
This continues the fixes in commit d14b99e for the changes introduced
in nixpkgs#110544.
2021-02-08 16:05:22 -05:00
Samuel Dionne-Riel
1c54996c35
Merge pull request #296 from MetaDark/concatenate-paths
kernel-builder: Avoid string interpolation for path concatenation
2021-02-08 15:40:43 -05:00
Kira Bruneau
e8c77e2aff kernel-builder: Avoid string interpolation for path concatenation
Using string interpolation for concatenating paths caused the whole
nixpkgs source to be included as an "inputSrc" for the kernel derivation.

linux.drv:
  "inputSrcs": [
    ...
    "/nix/store/4crmmrpb9axxymrrh77lf35n015scnpj-mobile-nixos",
    ...
  ],

With concatenation, only the resulting file is included as an
"inputSrc", which avoids unnecessary kernel rebuilds when nixpkgs
changes.

linux.drv:
  "inputSrcs": [
    ...
    "/nix/store/hdr6v584ig3dpjlcs9afxxky3lvzm2nw-randstruct-provide-seed.patch",
    ...
  ],
2021-02-08 02:04:15 -05:00
Samuel Dionne-Riel
7cb18efb7c
Merge pull request #293 from samueldr-wip/fix/misc-breakage
Fix misc. breakage from Nixpkgs changes
2021-02-05 22:42:20 -05:00
Samuel Dionne-Riel
33337d35c8
Merge pull request #295 from danielfullmer/google-marlin-wifi
Enable WiFi for google-marlin
2021-02-05 01:32:04 -05:00
Daniel Fullmer
07de379128 google-marlin: Enable wifi support 2021-02-04 21:41:28 -08:00
Daniel Fullmer
af52589928 google-marlin: Add firmware package 2021-02-04 21:38:12 -08:00
Daniel Fullmer
7612248a3d google-marlin: Remove redundant boot option
firmware_class.path is implicitly set via mobile.system.vendor.partition
2021-02-04 21:38:03 -08:00
Samuel Dionne-Riel
186c491641
Merge pull request #238 from eamsden/eamsden/parameterize-package-set
Make the package set a parameter instead of using `<nixpkgs>` everywhere
2021-02-02 14:54:16 -05:00
Samuel Dionne-Riel
a538c87aea ci: Actually run instantiate task 2021-02-02 05:52:46 -05:00
Samuel Dionne-Riel
d14b99e90f kernel-builder: Fix fallout from nixpkgs#110544
Deals with https://github.com/NixOS/nixpkgs/pull/110544

This is a breaking change; the kernel builder cannot be used with a
Nixpkgs from before this change, and vice-versa.
2021-02-02 05:51:18 -05:00
Samuel Dionne-Riel
225ed39dad Fix stdenv.lib being removed
Deals with https://github.com/NixOS/nixpkgs/pull/111284
2021-02-02 05:51:18 -05:00
Samuel Dionne-Riel
ede8fa5834 uefi-x86_64: Fix kernel package eval
See https://github.com/NixOS/nixpkgs/issues/111504 for the reason behind
this workaround.
2021-02-02 05:37:31 -05:00
Samuel Dionne-Riel
ed93aa4678 modules/initrd-kernel: Fix mocked kernelPackages
.ci/instantiate-all.nix wouldn't pass otherwise.
2021-02-02 05:37:31 -05:00
Samuel Dionne-Riel
22d8328969 xiaomi-tissot: Fix kernel builder call for boot.kernelPackages 2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
ca37afbf3c xiaomi-lavender: Fix kernel builder call for boot.kernelPackages 2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
f8d71a80bd xiaomi-begonia: Fix kernel builder call for boot.kernelPackages 2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
6d0c3880ca sony-pioneer: Fix kernel builder call for boot.kernelPackages 2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
8ae39cf4ab samsung-a5y17lte: Fix kernel builder call for boot.kernelPackages 2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
4dfa059965 razer-cheryl2: Fix kernel builder call for boot.kernelPackages 2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
d89d15770c pine64-pinephone: Fix kernel builder call for boot.kernelPackages 2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
0c24585d04 oneplus-oneplus3: Fix kernel builder call for boot.kernelPackages 2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
9648453e35 motorola-surfna: Fix kernel builder call for boot.kernelPackages 2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
5759f8f04e motorola-addison: Fix kernel builder call for boot.kernelPackages 2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
0173b3f7f6 google-walleye: Fix kernel builder call for boot.kernelPackages 2021-02-02 01:58:41 -05:00