1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2025-01-08 12:48:50 +03:00
Commit Graph

2612 Commits

Author SHA1 Message Date
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
Samuel Dionne-Riel
ff292d16e4 asus-dumo: Normalize kernel config 2023-05-03 21:51:18 -04:00
Samuel Dionne-Riel
3710d77e0f modules/kernel-config: Ensure needed config is present for logo 2023-05-03 21:51:18 -04:00
Samuel Dionne-Riel
93397d6708 lvgui: use (charge now ÷ full) for battery as a fallback
Some drivers may expose those without exposing capacity.
2023-05-03 21:31:33 -04:00
Samuel Dionne-Riel
c7784074c3 modules/kernel-config: Add missing basic options
Some of those found by starting from a tinyconfig.

Fixes #575
2023-05-03 20:01:37 -04:00
Samuel Dionne-Riel
e9b1642c67 support/additional-devices: Add kernel to kernel test VM 2023-05-03 20:00:56 -04:00
Samuel Dionne-Riel
fa95a51c17 support/additional-devices: Add test target for kernel builder infra 2023-05-03 20:00:56 -04:00
Samuel Dionne-Riel
c86c8eb503 modules: Remove needless with usage 2023-05-03 19:59:09 -04:00
Samuel Dionne-Riel
142388b316 examples/hello: Use silent boot 2023-05-03 19:45:54 -04:00
Samuel Dionne-Riel
a4db1a0165 families/sdm845-mainline: Drop console param
This is now handled in a generic manner.
2023-05-03 19:45:54 -04:00
Samuel Dionne-Riel
ef37452370 pine64-pinetab: Configure serial console 2023-05-03 19:45:54 -04:00
Samuel Dionne-Riel
13b0a33ada pine64-pinephone: Configure serial console 2023-05-03 19:45:54 -04:00
Samuel Dionne-Riel
1072294836 lenovo-wormdingler: Configure serial console 2023-05-03 19:45:54 -04:00
Samuel Dionne-Riel
e6a98b0920 lenovo-krane: Configure serial console 2023-05-03 19:45:54 -04:00
Samuel Dionne-Riel
903f381ce7 google-marlin: Configure serial console 2023-05-03 19:45:54 -04:00
Samuel Dionne-Riel
5c94974e91 asus-dumo: Configure serial console 2023-05-03 19:45:54 -04:00
Samuel Dionne-Riel
9bcdc5ca7b uefi/vm: Configure serial console 2023-05-03 19:45:54 -04:00
Samuel Dionne-Riel
1670dcf7b8 modules/beautification: Use the new kernel logo semantics by default 2023-05-03 19:45:54 -04:00
Samuel Dionne-Riel
92b57754bd modules/boot: Add serial console management options 2023-05-03 19:45:54 -04:00
Samuel Dionne-Riel
069f2000f4 modules/boot: Add options to better control console parameters
It is generally awkward to deal with the console kernel parameters, and
just as awkward to deal with lists in the modules system.

Internally to Mobile NixOS, we'll use these values that should always be
prefixed to any other values. This means that those consoles will likely
to be less preferred than any the end-users sets (e.g. `console=tty1` in
their own config).

The option for `defaultConsole` is not really meant to be
user-controlled, but there is actually no issue if they use it, as long
as their configuration does not set another console later in the
cmdline.
2023-05-03 19:45:54 -04:00
Samuel Dionne-Riel
4aa0afd840
Merge pull request #589 from chuangzhu/sdm845-6.2.0
sdm845-mainline: kernel 5.19.16 -> 6.2.0
2023-04-03 19:13:23 -04:00
Samuel Dionne-Riel
7a6e97e3af
Merge pull request #601 from samueldr-wip/fix/mount-regression
boot/init: Fix mount regression from option added for systemd-boot
2023-03-22 16:29:58 -04:00
Samuel Dionne-Riel
3959529d85 boot/init: Fix mount regression from option added for systemd-boot
A NixOS change for systemd-stage-1 added an `x-` mount option, which is
not handled well by busybox mount.

 - 1b39491326

The same option was not an issue for the shell-script stage-1 as it
already stripped `x-` mount options

 - 8be838254b/nixos/modules/system/boot/stage-1-init.sh (L365-L366)

Thus it's assumed safe to strip the options the same way.
2023-03-22 16:21:22 -04:00
Samuel Dionne-Riel
a79ae2e6e8
Merge pull request #599 from samueldr-wip/fix/toolchain-upgrade-kernel-config
kernel/builder: Ignore more toolchain information in config
2023-03-19 17:59:50 -04:00
Samuel Dionne-Riel
17d7a0ccf4 kernel/builder: Ignore more toolchain information in config 2023-03-19 17:58:37 -04:00
Samuel Dionne-Riel
a331f48178
Merge pull request #597 from samueldr-wip/fix/depthcharge-vboot_reference
depthcharge: Fix cross-compilation after vboot_reference upgrade
2023-03-16 14:51:52 -04:00