1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2025-01-05 19:03:21 +03:00
Commit Graph

2637 Commits

Author SHA1 Message Date
Samuel Dionne-Riel
ba4638836e
Merge pull request #626 from samueldr-wip/fix/u-boot-tools
overlay: Drop ubootTools patch
2023-05-06 21:17:40 -04:00
Samuel Dionne-Riel
b5d3bbfd4b pkgs.nix: Bump to current nixos-unstable 2023-05-06 18:04:52 -04:00
Samuel Dionne-Riel
c0a85ae070 overlay: Drop ubootTools patch
Upstream removed that option entirely.
2023-05-06 18:04:31 -04:00
Samuel Dionne-Riel
df10fe3c3d
Merge pull request #625 from samueldr-wip/fix/bootspec-kernel-ref
Fix eval with bootspec enabled
2023-05-06 17:12:16 -04:00
Samuel Dionne-Riel
c1fafb8f34 kernel/builder: Fix eval with shared rootfs kernel stub
The new bootspec feature, now enabled by default, refers to the
`modDirVersion` field, which was not inherited by our package.
2023-05-06 16:20:02 -04:00
Samuel Dionne-Riel
994e9a9456 modules/initrd-kernel: Fix eval with shared rootfs kernel stub
The new bootspec feature, now enabled by default, refers to the
`modDirVersion` field, which was not present in that stub implementation
of the kernel package interface.

This fixes evaluation on a system without a kernel (shared rootfs).
2023-05-06 16:15:41 -04:00
Samuel Dionne-Riel
488485342a
Merge pull request #619 from samueldr-wip/feature/no-rehydration
rootfs: Make rehydration optional
2023-05-06 14:46:20 -04:00
Samuel Dionne-Riel
5df1cda9f1
Merge pull request #620 from samueldr-wip/feature/expose-options
eval-with-configuration: Expose options
2023-05-06 14:45:59 -04:00
Samuel Dionne-Riel
ad26e19c2e
Merge pull request #621 from samueldr-wip/fix/fdt-forward-oopsie
modules/stage-0: Fix fdt-forward ref
2023-05-05 23:30:12 -04:00
Samuel Dionne-Riel
af19236812 modules/stage-0: Fix fdt-forward ref
See, the `with` thing was totally making things hard to reason about!

Fixes regression from https://github.com/NixOS/mobile-nixos/pull/611
2023-05-05 21:50:45 -04:00
Samuel Dionne-Riel
6c6d90acd4 eval-with-configuration: Expose options
This can be useful when used with `nix repl`. For example, using:

```
:p options.environment.systemPackages.definitionsWithLocations
```

You can figure out where a specific package was added, when simple
grepping is hard in Nixpkgs.
2023-05-05 21:07:35 -04:00
Samuel Dionne-Riel
a36cb833ec rootfs: Make rehydration optional 2023-05-05 21:07:04 -04:00
Samuel Dionne-Riel
0b5676f8f3
Merge pull request #618 from samueldr-wip/fix/missing-mddoc
modules/beautification: Add missing lib.mdDoc
2023-05-05 20:44:03 -04:00
Samuel Dionne-Riel
b13a2c61e1 modules/beautification: Add missing lib.mdDoc 2023-05-05 20:36:39 -04:00
Samuel Dionne-Riel
ea543baa2f
Merge pull request #614 from samueldr-wip/feature/eink-improvements
Add improved semantics for eink devices
2023-05-05 16:38:24 -04:00
Samuel Dionne-Riel
9f8b5f2c4f lvgui: 2023-03-11 -> 2023-05-01 2023-05-05 16:13:10 -04:00
Samuel Dionne-Riel
5b0f3d0ed2 modules/hardware-eink: Add module for eink-friendlier config
As of right now, it mostly makes things black on white.

Why make enabling the theme a discrete option? That's because it can be
useful for people like me who would like to live with a flicker-free
boot using a black on white fbcon!
2023-05-05 16:13:10 -04:00
Samuel Dionne-Riel
f8b552c94f modules/initrd-boot-gui: Add config for splash logo 2023-05-05 16:13:10 -04:00
Samuel Dionne-Riel
f84fa02c3f modules/initrd-boot-gui: Add config for splash colours 2023-05-05 16:13:10 -04:00
Samuel Dionne-Riel
b6a3a7a427 boot/splash: Use symlink for logo artwork
This will allow a single build to be made, instead of one build per
logo.
2023-05-05 16:13:10 -04:00
Samuel Dionne-Riel
3cb45e2fb1 boot/splash: Make theme configurable 2023-05-05 16:13:10 -04:00
Samuel Dionne-Riel
447dcddd9c boot/splash: Fix for mono theme 2023-05-05 16:13:10 -04:00
Samuel Dionne-Riel
3521834abd boot/splash: Make colours configurable
I try to convert strings to integers so the configuration is less
awkward. Nix doesn't do `0x______` integers. So since colours are never
written in base ten, let's allow strings.
2023-05-05 16:13:10 -04:00
Samuel Dionne-Riel
d8a0a89d05 boot/lvgui: Add support for mono theme 2023-05-05 16:13:10 -04:00
Samuel Dionne-Riel
c1a295ade8 mruby-lvgui-native: Add support for mono theme 2023-05-05 16:13:10 -04:00
Samuel Dionne-Riel
f3772a48fc lvgui: Make progress bar colours configurable 2023-05-05 16:13:10 -04:00
Samuel Dionne-Riel
d734a57aa5
Merge pull request #613 from samueldr-wip/feature/kernel-logo-as-early-splash
Use the kernel logo feature as early splash
2023-05-05 16:11:08 -04:00
Samuel Dionne-Riel
f71079774d
Merge pull request #615 from samueldr-wip/fix/disabling-stage-0-no-op
modules/stage-0: Ensure enabling/disabling is a no-op
2023-05-05 16:00:05 -04:00
Samuel Dionne-Riel
2024ed978e modules/stage-0: Ensure enabling/disabling is a no-op
This ensures that, for implementation details, bits that use stage-0 as
a synonym for stage-1 when it is not supported gets the same exact eval
than the one for stage-1.

Without this change, some `fdt-forward` and changes made under that
`mkIf` would end-up included. `fdt-forward` was found to be in the
stage-1 image even though it was irrelevant.
2023-05-05 15:59:37 -04:00
Samuel Dionne-Riel
88f6a12665
Merge pull request #610 from samueldr-wip/feature/new-console-semantics
Add options to better control console parameters
2023-05-05 15:56:53 -04:00
Samuel Dionne-Riel
aade153878
Merge pull request #577 from samueldr-wip/fix/u-boot-long-cmdline
system-types/u-boot: Fix usage with long cmdline
2023-05-05 15:53:30 -04:00
Samuel Dionne-Riel
f5d45fb35f
Merge pull request #583 from samueldr-wip/feature/misc-cleanups
boot: Misc. cleanups
2023-05-05 15:51:33 -04:00
Samuel Dionne-Riel
5468ca6e55
Merge pull request #611 from samueldr-wip/fix/cleanup-with
modules: Remove needless with usage
2023-05-04 21:22:41 -04:00
Samuel Dionne-Riel
c304a65264
Merge pull request #612 from samueldr-wip/feature/kernel-builder-test-system
Add a VM-based test system that uses the kernel builder
2023-05-04 21:22:09 -04:00
Samuel Dionne-Riel
d377cd54d0
Merge pull request #616 from samueldr-wip/fix/lvgui-charge-now
lvgui: use (charge now ÷ full) for battery as a fallback
2023-05-04 21:21:25 -04:00
Samuel Dionne-Riel
ffdc031b2c boot/init: Make FBDev a no-op
... this way, the framebuffer content is not evicted by a needless mode
change.

AFAIK none of our targets will be affected by this change. The
framebuffer should already be setup with the correct mode. This was
holdover from early early cargo-culting about the framebuffer.

I have verified on a few devices, it does not worsen their behaviour.
2023-05-03 21:51:19 -04:00
Samuel Dionne-Riel
eb019f6e74 kernel/builder: Add forced logo patch for 5.4+
Technically this is an issue from 5.1, but the patch won't apply on 5.1,
so let's target the following stable release.

It serves no purpose to force on 5.1~5.3 which are EOL and should not
have been used as a base by vendors.
2023-05-03 21:51:19 -04:00
Samuel Dionne-Riel
ca18fd63e3 modules/initrd-kernel: Resize the logo according to the display size
By using a square aspect ratio logo as the source material, we can
"fill" the area, which will not go outside of the bounds, which implies
that the image is scaled to the smaller dimension.

This image is then trimmed, meaning that it is cut to remove any
redundant colour at the outside edge.
2023-05-03 21:51:19 -04:00
Samuel Dionne-Riel
50cd60ba82 modules/initrd-kernel: Add internal logo handling
This will be augmented with automatic crop/resize based on device
dimensions.
2023-05-03 21:51:19 -04:00
Samuel Dionne-Riel
296fa89534 kernel/builder: Accept logo from pkgs
There is no `override` that will work given the number of `callPackage`
calls between this and the actual derivation.

I guess `overrideAttrs` could be used instead, if we used an attribute
of the derivation instead. I'm not sure if it's better since it would
entail using `apply` to `overrideAttrs` the final `kernel.package`
value.
2023-05-03 21:51:18 -04:00
Samuel Dionne-Riel
657a1f7a2d artwork: Add boot logo 2023-05-03 21:51:18 -04:00
Samuel Dionne-Riel
bfddce25e9 xiaomi-lavender: Normalize kernel config 2023-05-03 21:51:18 -04:00
Samuel Dionne-Riel
d30c2691e7 sony-pioneer: Normalize kernel config 2023-05-03 21:51:18 -04:00
Samuel Dionne-Riel
86c785e6d6 oneplus-oneplus3: Normalize kernel config 2023-05-03 21:51:18 -04:00
Samuel Dionne-Riel
deea4460be motorola-potter: Normalize kernel config 2023-05-03 21:51:18 -04:00
Samuel Dionne-Riel
6ccfc0251c motorola-addison: Normalize kernel config 2023-05-03 21:51:18 -04:00
Samuel Dionne-Riel
7b7d5ea0d4 google-walleye: Normalize kernel config 2023-05-03 21:51:18 -04:00
Samuel Dionne-Riel
c5f7d532b7 google-marlin: Normalize kernel config 2023-05-03 21:51:18 -04:00
Samuel Dionne-Riel
19ffb46c86 asus-z00t: Normalize kernel config 2023-05-03 21:51:18 -04:00
Samuel Dionne-Riel
e064627f4d asus-flo: Normalize kernel config 2023-05-03 21:51:18 -04:00