1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 04:51:31 +03:00
Commit Graph

164 Commits

Author SHA1 Message Date
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
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
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
36724d443f mruby-builder: Remove direct overlay access
Not needed.
2021-01-31 19:39:00 -05:00
Samuel Dionne-Riel
1d8991a3e0 kernel-builder: Handle Exynos dt.img 2021-01-09 16:26:28 -05:00
Samuel Dionne-Riel
c5e86da64c dtbTool-exynos: init at 2020-09-14 2021-01-09 16:26:28 -05:00
Samuel Dionne-Riel
f3b51bfafd mruby-builder: Manage -g flag for mrbc 2021-01-01 21:37:29 -05:00
Samuel Dionne-Riel
ac315d791f mruby-lvgui: drop package 2020-12-31 17:06:16 -05:00
Samuel Dionne-Riel
29a10085f3 kernel-builder: Call either of install or zinstall
It seems that under specific conditions:

 - 2a5 hardware
 - -j22

the call to `make install zinstall` (simplified here) may break, with
the installation of `System.map` happening in a manner where it fails
the build. It was not trivial to reproduce elsewhere than on a 2a5
machine, for unknown reasons.

It was also only observed on google-walleye, but there is no reason is
shouldn't be failing on other devices too.

Odd.
2020-12-31 03:31:04 -05:00
Samuel Dionne-Riel
a14e0244d3 kernel/builder: Fix for non-dtb-based platforms
Like intel-based hardware
2020-12-29 19:21:02 -05:00
Samuel Dionne-Riel
cff021e9ca kernel/builder: Support newer kernel versions
Fixes menuconfig for 5.10 for chuwi hi10 pro
2020-12-29 19:21:02 -05:00
Samuel Dionne-Riel
19d357d48f ufdt-apply-overlay: Init at 2020-12-13 2020-12-27 17:31:08 -05:00
Samuel Dionne-Riel
9102540f5e kernel-builder: Strip another troublesome config
This config currently breaks the build for native aarch64 pinephone
kernel builds, as it does not appear with cross-compilation.
2020-12-25 22:59:45 -05:00
Samuel Dionne-Riel
ead0bf029e mruby-builder: Fix passthru being required for mruby builder 2020-11-29 16:03:33 -05:00
Samuel Dionne-Riel
54a62da803 lvgui: 2020-11-01 -> 2020-11-20 2020-11-22 16:45:25 -05:00
Samuel Dionne-Riel
5467988ca2 lvgui: Provide customized libxkbcommon 2020-11-22 16:45:25 -05:00
Samuel Dionne-Riel
ca0c2fc2b9 mruby-lvgui: Update with latest changes 2020-11-12 23:13:20 -05:00
Samuel Dionne-Riel
bb6a7ddc5f boot/error: Add a tangible derivation
This also allows us to add library files.
2020-11-12 23:13:20 -05:00
Samuel Dionne-Riel
f66c31fd7e mrbgems: mruby-lvgui: Update with latest changes 2020-11-07 18:26:47 -05:00
Samuel Dionne-Riel
8a47b7913b mkExtraUtils: Allow specifying specific binaries 2020-11-07 18:26:47 -05:00
Samuel Dionne-Riel
95b1c7b2bb boot/splash: Fix build as it is now a proper applet 2020-11-06 16:30:22 -05:00
Samuel Dionne-Riel
d6982bb82b mruby-lvgui: Update bindings and implementation to latest version 2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
a779e28e49 mruby-builder: Fix double error messages print in stub 2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
fb4984cb90 s/boot-gui/boot-recovery-menu/g
The applet is specifically written to show what we call the "recovery
menu". Yes, it's also the boot selection, but it will get confusing with
the upcoming boot tracking splash UI that's upcoming.
2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
2b57dd33e3 mrbgems: Add mruby-zmq 2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
efd31433ba mrbgems: Add mruby-simplemsgpack 2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
0a458bfcde mrbgems: Add mruby-proc-irep-ext 2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
05d7446384 mrbgems: Add mruby-pack 2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
a91e6196a5 mrbgems: Add mruby-process-clock_gettime 2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
42f6f54a9d mruby-lvgui: update with latest changes to battery HAL 2020-10-18 16:27:36 -04:00
Samuel Dionne-Riel
c2e6b8ca5a
Merge pull request #217 from samueldr-wip/fix/kernel-builder-double-compilation
kernel-builder: Work around kernels getting compiled two times
2020-10-04 16:19:40 -04:00
Samuel Dionne-Riel
371e725795 kernel-builder: make enableParallelBuilding configurable 2020-10-04 03:25:08 -04:00
Samuel Dionne-Riel
0dc9f84afc kernel-builder: Work around kernels getting compiled two times
It looks like this is not a regression from the latest changes to the
kernel builder. Testing on top of ffdba8fecb
exhibits the same issue.

This change works around the issue by doing it with one invocation of
`make`, rather than doing it twice.

It has not been figured out at which exact version of the kernel this
stops being an issue, and if it is an issue from mainline Linux
outright, or something that came from Android-specific modifications.

Though it has been verified that for 3.18, both Qualcomm and Mediatek
source trees exhibit the same issue.

Fixes #216
2020-10-04 01:10:27 -04:00
Samuel Dionne-Riel
71338543f1 mobile-nixos.autoport: Init at 0.0.1 2020-10-02 22:50:25 -04:00
Samuel Dionne-Riel
9210f716d3 overlay: Dropped now unused defaultKernelPatches 2020-10-02 19:49:12 -04:00
Samuel Dionne-Riel
e8cd8a95cc kernel-builder: minor fixups 2020-10-02 19:06:02 -04:00
Samuel Dionne-Riel
9bac03b2f3 kernel-builder: Encapsulate compressed images and dtb appended images 2020-10-02 03:27:49 -04:00
Samuel Dionne-Riel
1889893a43 kernel-builder: implement QCDT configuration in the builder 2020-10-02 03:27:49 -04:00
Samuel Dionne-Riel
62fe1409c6 kernel-builder: Rework its ergonomics 2020-10-02 03:27:49 -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
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
e0834f7ee9 kernel-builder: Force configuration to be normalized 2020-09-27 22:03:29 -04:00
Samuel Dionne-Riel
af98ded034
Merge pull request #189 from samueldr-wip/feature/periodic-gui-refresh
Updates for the boot GUI
2020-07-27 23:26:05 -04:00
Samuel Dionne-Riel
6a16d3aad7 mruby-lvgui: Update to latest version 2020-07-25 21:56:50 -04:00
Samuel Dionne-Riel
e34ecbf29b lvgui: 2020-07-02 -> 2020-07-25 2020-07-25 21:56:50 -04:00
Samuel Dionne-Riel
739aeaa05a mruby-lvgui: Use the proper pkg-config 2020-07-23 18:09:06 -04:00