1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-20 22:41:48 +03:00
Commit Graph

1289 Commits

Author SHA1 Message Date
Samuel Dionne-Riel
b3f4390b1e xiaomi-tissot: Clean kernel derivation 2020-09-30 02:11:47 -04:00
Samuel Dionne-Riel
387ce84721 kernel-builder: Add nativeBuildInputs as a parameter
This is a temporary measure. The last changes have proven that we can't
just overrideAttrs things willy-nilly like that, and that the whole
builder is in need of a revamp.

Let's wait for the revamp, and do the minimum work required to fix the
normalization for existing builds.
2020-09-30 02:11:47 -04:00
Samuel Dionne-Riel
c360820473 asus-flo: Fix build problem with postPatch 2020-09-30 02:11:47 -04:00
Samuel Dionne-Riel
7f42b44a5c pine64-pinephone-braveheart: Normalize kernel configuration 2020-09-30 02:11:47 -04:00
Samuel Dionne-Riel
0664076988 asus-dumo: Normalize kernel configuration 2020-09-30 02:11:47 -04:00
Samuel Dionne-Riel
bbc73e40ed bin/menuconfig: Normalize after updating the kernel config
This is needed because the build environment differs in the kernel
normalization step compared to the build step.
2020-09-30 02:11:47 -04:00
Samuel Dionne-Riel
a2ef48313e bin/kernel-normalize-config: Use the kernel normalization build 2020-09-30 02:11:47 -04:00
Samuel Dionne-Riel
4060dd5af5 kernel-builder: Implement kernel normalization as a nix build
This uses the actual output expected by the build, rather than hoping
menuconfig gives the same result.

For kernels prior to 5.8 it wasn't an issue.

Starting with 5.8 the build environment will influence the actual
configuration used.

We're stripping some information when comparing.

The exact TEXT_VERSION string will change according to whether it's a
native or cross compilation.

Finally, minor version bumps are not relevant here.
2020-09-30 02:11:47 -04:00
Samuel Dionne-Riel
c708340e8e kernel-builder: Fix correctness with makeFlags and menuconfig 2020-09-29 20:46:14 -04:00
Samuel Dionne-Riel
5b14ef0650 kernel-builder: Prepend diff on normalization error 2020-09-29 20:40:20 -04:00
Samuel Dionne-Riel
bfac9ff7ae gitignore: Ignore old config files 2020-09-29 20:15:53 -04:00
Samuel Dionne-Riel
afdc907800
Merge pull request #209 from samueldr-wip/fix/docs-regression
Fix docs regression, and removes workarounds
2020-09-29 17:52:16 -04:00
Samuel Dionne-Riel
bfd44cf05f doc: Handle eval issues coming from "default" values
"default" values in Nixpkgs manual can *somehow* be escaped by the
documentation back to their original string form.

The following ends up escaped into the manual as `"${pkgs.hello}"`.

```
default = "${pkgs.hello}";
```

The methods for this magic have not been found.

Instead, we just change the default strict `handleEvalIssue` so that it
does absolutely nothing and lets them through.

Anyway we won't be building them.
2020-09-29 17:31:18 -04:00
Samuel Dionne-Riel
3abeff8474 doc/pkgs.nix: Use <nixpkgs> rather than hardcoded channel 2020-09-29 17:30:40 -04:00
Samuel Dionne-Riel
59ced149bd
Merge pull request #205 from samueldr-wip/device/sony-pioneer/port
sony-pioneer: init
2020-09-28 15:59:25 -04:00
Samuel Dionne-Riel
78647e9a68 sony-pioneer: Enable LED default triggers 2020-09-28 15:39:36 -04:00
Samuel Dionne-Riel
1660aec6d2 sony-pioneer: Enable rndis_bam.rndis
It seems that it's SoC-specific?
2020-09-28 15:31:00 -04:00
Samuel Dionne-Riel
ee71541071 sony-pioneer: Edit automatically generated device config as needed 2020-09-28 15:31:00 -04:00
Samuel Dionne-Riel
8ebdcd8540 sony-pioneer: Add device-specific notes 2020-09-28 15:03:48 -04:00
Samuel Dionne-Riel
4d4579209b
Merge pull request #204 from samueldr-wip/feature/strict-kernel-configuration
kernel-builder: Force configuration to be normalized
2020-09-28 15:00:56 -04:00
Samuel Dionne-Riel
d23cb2365b sony-pioneer: Add support for USB networking dongles
This is not strictly needed, but rather quite helpful to get network
access until we can get WiFi working.
2020-09-27 23:23:31 -04:00
Samuel Dionne-Riel
4cc56fcd0e sony-pioneer: Change CONFIG_TOUCHSCREEN_SYNAPTICS according to LineageOS defconfig
This one comes from an artifact of starting up with the **OEM's**
configuration, but actually using the LineageOS tree.

LineageOS adds many alterations that may cause incompatibilities.
2020-09-27 23:23:31 -04:00
Samuel Dionne-Riel
e7ea8701af sony-pioneer: kernel config: Enabled console options
(As with xiaomi-lavender)
2020-09-27 23:23:31 -04:00
Samuel Dionne-Riel
46b23660bd sony-pioneer: kernel config: Disabled ANDROID_PARANOID_NETWORK
It is counter-productive for non-android systems.
2020-09-27 23:23:31 -04:00
Samuel Dionne-Riel
fb3dbeb667 sony-pioneer: kernel config: Enabled DT_OVERLAY option
This one is important as, contrary to what the name sounds like, it
builds the full device tree with the kernel, rather than rely on
on-device overlays.
2020-09-27 23:23:31 -04:00
Samuel Dionne-Riel
14a161b43e sony-pioneer: kernel config: Enabled DEVTMPFS options 2020-09-27 23:23:31 -04:00
Samuel Dionne-Riel
4bbd72e180 sony-pioneer: kernel config: Enabled missing _NS options
(As with xiaomi-lavender)
2020-09-27 23:23:31 -04:00
Samuel Dionne-Riel
e5c530dca2 sony-pioneer: kernel config: Enabled SYSVIPC options
(As with xiaomi-lavender)
2020-09-27 23:23:31 -04:00
Samuel Dionne-Riel
a67d6a9387 sony-pioneer: kernel-config: Configure to ignore skip_initramfs 2020-09-27 23:23:31 -04:00
Samuel Dionne-Riel
815d8536ae sony-pioneer: kernel config: "fix" version name
We do not add LOCALVERSION to the kernels.
2020-09-27 23:23:31 -04:00
Samuel Dionne-Riel
4c8d5ddc09 sony-pioneer: Normalized config for LinageOS' fork
Otherwise untouched from OEM config.
2020-09-27 23:23:31 -04:00
Samuel Dionne-Riel
e04354f6f9 sony-pioneer: Add kernel derivation based on xiaomi-lavender
Same SoC, same kernel version, most likely will work better that way
2020-09-27 23:23:31 -04:00
Samuel Dionne-Riel
96b5a3dda8 sony-pioneer: Import autoport data 2020-09-27 23:23:31 -04:00
Samuel Dionne-Riel
e0834f7ee9 kernel-builder: Force configuration to be normalized 2020-09-27 22:03:29 -04:00
Samuel Dionne-Riel
2a3268fb58
Merge pull request #198 from Thra11/systemd-udevd-symlink
initrd: handle systemd-udevd being a symlink to udevadm
2020-09-16 19:44:35 -04:00
Tom Hall
b0336c4213 initrd: handle systemd-udevd being a symlink to udevadm
Mirrors 7361f6f252
2020-09-16 23:02:36 +01:00
Samuel Dionne-Riel
03762a409b
Merge pull request #196 from samueldr-wip/feature/motorola-addison/upgrades
motorola-addison: Build firmware and enable wcnss
2020-08-22 21:35:47 -04:00
Samuel Dionne-Riel
b09db9c430
Merge pull request #195 from samueldr-wip/feature/initrd/compression
initrd: Make compression method an option
2020-08-22 21:34:55 -04:00
Samuel Dionne-Riel
9e438bf3b2 motorola-addison: Compress initrd with xz
This makes it go from ~7MiB to ~5MiB, which ends up fitting in the boot
partition.
2020-08-22 21:28:14 -04:00
Samuel Dionne-Riel
d3eb1f813e motorola-addison: Enable XZ initrd for kernel
(And normalize kernel config)
2020-08-22 21:28:14 -04:00
Samuel Dionne-Riel
6461b307a0 initrd: Make compression method an option
This is a semi-internal option. The end-user may want to change it.
Though in reality this is aimed toward device integrators that integrate
a device with a small boot partition.
2020-08-22 21:28:14 -04:00
Samuel Dionne-Riel
509cdbe2f3 motorola-addison: Build firmware and enable wcnss 2020-08-20 16:30:54 -04:00
Samuel Dionne-Riel
b679eb93fd
Merge pull request #193 from samueldr-wip/update/pinephone/2020-08
pine64-pinephone-braveheart: August 2020 updates
2020-08-20 15:17:53 -04:00
Samuel Dionne-Riel
602a621683
Merge pull request #192 from samueldr-wip/update/asus-dumo/5.8
asus-dumo: linux: 5.7 -> 5.8
2020-08-20 15:16:02 -04:00
Samuel Dionne-Riel
406e22e84d
Merge pull request #194 from samueldr-wip/fix/manual-options-regression
Fix regressions coming from Nixpkgs upgrades
2020-08-18 17:50:13 -04:00
Samuel Dionne-Riel
1ba61f1860 release-tools: Remove usage of removed option
Recent changes in Nixpkgs makes it more strict.

This is a change that wasn't caught as needed from the migration to
structured options for device infos.
2020-08-18 17:45:03 -04:00
Samuel Dionne-Riel
dcbfbff1ad nixos-disintegration: Remove the disabled showManual option
The option has been removed.

aebf9a4709
2020-08-18 17:42:08 -04:00
Samuel Dionne-Riel
73f8f13a7d pine64-pinephone-braveheart: Add missing kernel options
Some of those are required for the NixOS firewall.

This is more than strictly necessary. What was enabled is what was a
module in the default NixOS config.
2020-08-17 01:13:28 -04:00
Samuel Dionne-Riel
47a37a9c22 pine64-pinephone-braveheart: linux 5.7 -> 5.8
This is using the patchset from the previous 5.7 kernel, applied and
lightly massaged to work with 5.8
2020-08-15 00:25:15 -04:00
@noneucat
a94f820bc5 pine64-pinephone-braveheart: Fix LED patch for 5.7 2020-08-15 00:25:15 -04:00