Samuel Dionne-Riel
cc591aef6d
mruby: Review how mruby.builder
is made
...
Using `.override` inside the builder leads to `.override` outside being
ignored, as the `mruby` used would be whatever was last given to the
passthru `builder`'s own overrides or callPackages.
This breaks current calls to `mruby.builder` when `gems` was given.
Though since it breaks noisily, it won't silently ignore your gems.
2021-02-20 17:23:01 -05:00
Samuel Dionne-Riel
21e86e233f
mruby: Fix mrbc wrapper for debug info
...
The postInstall hook was never ran... D'oh!
2021-02-20 17:23:01 -05:00
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
90167b0b64
cross-workarounds: Work around libselinux dependency issue
...
It fails with:
```
/nix/store/m7080pw0ryjk0jhljp55rq1hd2qy8gki-python3-3.8.6/include/python3.8/pyport.h:726:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
726 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
[...]
builder for '/nix/store/cdysjc47jc4z49r25xzwf2sazqd4w4rg-libselinux-3.0-armv7l-unknown-linux-gnueabihf.drv' failed with exit code 2
```
2021-02-20 17:23:01 -05:00
Samuel Dionne-Riel
441701d215
lvgui: Update native fragment
2021-02-20 16:41:23 -05:00
Samuel Dionne-Riel
8745395e25
examples/demo: Enable fb-refresher by default
2021-02-20 16:41:23 -05:00
Samuel Dionne-Riel
e5ca35f45e
quirks/framebuffer: fb-refresher is enabled separately for stage-1/0
2021-02-20 16:41:23 -05:00
Samuel Dionne-Riel
32f86364a1
boot/init: Make udev a dependency for the switch root target
...
In some instances, e.g. really slow CPU, udev might not have run, and
libinput will not be able to work appropriately.
That is because uevent files will be missing.
2021-02-20 16:40:38 -05:00
Samuel Dionne-Riel
7332254db2
Merge pull request #298 from MetaDark/fix-libxkbcommon
...
boot/lib/lvgui: fix libxkbcommon after nixpkgs#108004
2021-02-15 17:22:37 -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
aacd53d02d
Merge pull request #301 from samueldr-wip/fix/gadget-mode-error
...
stage-1/usb-gadget: Fix error message error
2021-02-13 00:20:49 -05:00
Samuel Dionne-Riel
34ad416e77
stage-1/usb-gadget: Fix error message error
...
`#constantize` does not exist on `String`.
This would only have been an issue in the improbable cause that a daemon
is not configured for an FFS gadget.
2021-02-11 19:52:38 -05:00
Samuel Dionne-Riel
746321b6cc
pine64-pinephone: Forward wifi mac address from bootloader
2021-02-11 18:15:34 -05:00
Samuel Dionne-Riel
f0a7e33767
boot/init: switch root forwards FDT properties as needed
2021-02-11 18:15:34 -05:00
Samuel Dionne-Riel
ff73bb6ccf
stage-0: Allow adding nodes and props to forward
2021-02-11 18:15:34 -05:00
Samuel Dionne-Riel
3014bcb858
stage-0: Add fdt-forward
2021-02-11 18:15:34 -05:00
Samuel Dionne-Riel
c81e858ea5
initrd: Add kexectool in stage-0 module
2021-02-11 18:15:34 -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
715ea5927b
shell.nix: Add dtc and ubootTools
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
b667d2298f
boot/init: kexec now uses generation DTB if possible
...
Fixes #264
2021-02-11 18:15:23 -05:00
Samuel Dionne-Riel
c85712a663
system-build: Add DTB mapping
2021-02-11 18:14:30 -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
Samuel Dionne-Riel
826315aa11
system-build: Init module adding details to toplevel
...
For now, device-name... but see following commit.
2021-02-11 18:14:30 -05:00
Samuel Dionne-Riel
2a46962d76
boot/init: Honor skipping kexec
2021-02-11 18:14:30 -05:00
Samuel Dionne-Riel
aea3b46d13
boot/recovery-menu: Add option to skip kexec
...
But why?
Multiple reasons:
- generation kernel does not work as expected
- booting a boot.img with an experimental kernel
I'm sure there's other reasons too.
Fixes #266
2021-02-11 18:14:30 -05:00
Samuel Dionne-Riel
5d50144468
boot/recovery-menu: Pass data around using JSON
2021-02-11 18:14:30 -05:00
Kira Bruneau
7beb26204f
boot/lib/lvgui: fix libxkbcommon after nixpkgs#108004
2021-02-09 17:55:57 -05:00
Samuel Dionne-Riel
fc65d0a89b
Merge pull request #297 from MetaDark/fix-dtb-detection
...
kernel-builder: Fix detecting dtb support (after nixpkgs#110544)
2021-02-08 17:13:09 -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
Samuel Dionne-Riel
1c54996c35
Merge pull request #296 from MetaDark/concatenate-paths
...
kernel-builder: Avoid string interpolation for path concatenation
2021-02-08 15:40:43 -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
33337d35c8
Merge pull request #295 from danielfullmer/google-marlin-wifi
...
Enable WiFi for google-marlin
2021-02-05 01:32:04 -05:00
Daniel Fullmer
07de379128
google-marlin: Enable wifi support
2021-02-04 21:41:28 -08:00
Daniel Fullmer
af52589928
google-marlin: Add firmware package
2021-02-04 21:38:12 -08:00
Daniel Fullmer
7612248a3d
google-marlin: Remove redundant boot option
...
firmware_class.path is implicitly set via mobile.system.vendor.partition
2021-02-04 21:38:03 -08:00
Samuel Dionne-Riel
186c491641
Merge pull request #238 from eamsden/eamsden/parameterize-package-set
...
Make the package set a parameter instead of using `<nixpkgs>` everywhere
2021-02-02 14:54:16 -05:00
Samuel Dionne-Riel
a538c87aea
ci: Actually run instantiate task
2021-02-02 05:52:46 -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
ede8fa5834
uefi-x86_64: Fix kernel package eval
...
See https://github.com/NixOS/nixpkgs/issues/111504 for the reason behind
this workaround.
2021-02-02 05:37:31 -05:00
Samuel Dionne-Riel
ed93aa4678
modules/initrd-kernel: Fix mocked kernelPackages
...
.ci/instantiate-all.nix wouldn't pass otherwise.
2021-02-02 05:37:31 -05:00
Samuel Dionne-Riel
22d8328969
xiaomi-tissot: Fix kernel builder call for boot.kernelPackages
2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
ca37afbf3c
xiaomi-lavender: Fix kernel builder call for boot.kernelPackages
2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
f8d71a80bd
xiaomi-begonia: Fix kernel builder call for boot.kernelPackages
2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
6d0c3880ca
sony-pioneer: Fix kernel builder call for boot.kernelPackages
2021-02-02 01:58:41 -05:00