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

172 Commits

Author SHA1 Message Date
Samuel Dionne-Riel
1b8f27468b mrbgems: mruby-fiddle: Update to latest version, fixing armv7 2021-02-20 17:23:01 -05:00
Samuel Dionne-Riel
ad8a966d22 mrbgems: Update mruby-regexp-pcre
Additionally add a required patch for armv7 and 64 bit mrb_ints
2021-02-20 17:23:01 -05:00
Samuel Dionne-Riel
75b118563d mruby: Force 64 bit integers
This might seem weird at first, but is totally needed. We have 48 bit
integers we need to handle, RGBA colours.

AFAICT full-blown Ruby would automatically handle going through another
class for larger integer. But it looks like mruby doesn't

Let's intead use the 64 bit type!
2021-02-20 17:23:01 -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
7a0a108ffa ubootTools: Fix and work around cross-compilation issues 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
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
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
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