1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 21:11:34 +03:00
Commit Graph

101 Commits

Author SHA1 Message Date
Samuel Dionne-Riel
b42063fe70 boot/gui: Fix for new back button implementation 2020-07-25 21:56:50 -04:00
Samuel Dionne-Riel
55938bab90 boot/gui: Rely on the GUI builder 2020-07-23 19:21:50 -04:00
Samuel Dionne-Riel
659b627d6e script-loader: ensure anything lvgui needs is provided...
...by loading it last
2020-07-23 18:07:45 -04:00
Samuel Dionne-Riel
9f50617ba7 boot/gui: Fix cross-compilation breakage
Turns out that `mruby`'s require looks at the actual file name (not the
link) when deciding between loading bytecode or ruby code.

Cross-compilation appends the system to derivation names.

Fun ensues.

This fixes the issue by using `runCommand`, for which it doesn't happen.
2020-06-26 17:38:12 -04:00
Samuel Dionne-Riel
b38caeec1a boot/init: Fixup for $PROGRAM_NAME now pointing to the applet
We know that the loader is at "/loader" in our initrd. Use that
knowledge.
2020-05-31 18:54:07 -04:00
Samuel Dionne-Riel
6d6df159ef boot/script-loader: Add environment support to wrapper 2020-05-31 18:54:07 -04:00
Samuel Dionne-Riel
dfedfda949 boot/script-loader: Provide appropriate $0 and $PROGRAM_NAME 2020-05-31 18:54:07 -04:00
Samuel Dionne-Riel
d617424ded boot/gui: review build with a proper derivation
Then, the simulator is re-tooled to use it, and the new wrapper thingy.
2020-05-31 18:54:07 -04:00
Samuel Dionne-Riel
21b17451b2 boot/init: add wrap to script-loader
This allows wrapping an applet into a script that will start it.
2020-05-31 18:54:07 -04:00
Samuel Dionne-Riel
ba9a9852af boot/init: Remove unused variable 2020-05-23 01:43:12 -04:00
Samuel Dionne-Riel
3e50ec600f boot/gui: review simulator build
Can be launched with `DEBUGGER="gdb --args" ./result/bin/simulator`.
2020-05-23 01:43:12 -04:00
Samuel Dionne-Riel
528c8b8bdb boot/gui: Further fix applets for LVNanoSVG namespace change 2020-05-21 18:15:21 -04:00
Samuel Dionne-Riel
aa2deb72b6 boot/gui: Fix with added introspection 2020-05-19 23:27:36 -04:00
Samuel Dionne-Riel
cc1a2e75e5 boot/gui: Moving LVNanoSVG hacks under the hacks namespace 2020-05-18 21:49:04 -04:00
Samuel Dionne-Riel
6692f6d6f4 boot/init: Use the new error reporting applet 2020-03-09 19:45:49 -04:00
Samuel Dionne-Riel
b2f4aecdd4 boot/error: Init error reporting applet 2020-03-09 19:44:27 -04:00
Samuel Dionne-Riel
c35116cdcd boot/init: Use the new boot/splash applet 2020-03-09 17:34:31 -04:00
Samuel Dionne-Riel
426f31113d boot/splash: Init splash applet 2020-03-09 17:31:03 -04:00
Samuel Dionne-Riel
8fad3b296e boot/gui: Use mruby that will splice
Using `loader.mruby` will not splice :(
2020-03-08 17:05:15 -04:00
Samuel Dionne-Riel
9c8e1f7d17 boot/gui: Fix console restoring on exit 2020-03-08 17:05:15 -04:00
Samuel Dionne-Riel
a083acef55 boot/gui: Use newly split script loader in simulator 2020-03-01 23:27:56 -05:00
Samuel Dionne-Riel
12c9d29f58 boot/init: Use the newly split script-loader 2020-03-01 23:27:56 -05:00
Samuel Dionne-Riel
11897bcdb6 boot/script-loader: Split into its distinct package 2020-03-01 22:21:31 -05:00
Samuel Dionne-Riel
8594a19538 boot/gui: Use the loader's mruby build
It doesn't change the mrbc end-result.
2020-03-01 22:02:45 -05:00
Samuel Dionne-Riel
e1e1333669 boot/gui: Workaround unexplained issue
It seems that `mruby-time-strftime` here is causing the garbage
collector to fail in strange ways *only* in the simulator.

It's all fine in QEMU and on hardware.
2020-03-01 22:02:19 -05:00
Samuel Dionne-Riel
804182854a boot/gui: Properly dry run commands on simulator 2020-03-01 17:29:30 -05:00
Samuel Dionne-Riel
660804cdf7 boot-gui-simulator: init package 2020-03-01 17:28:50 -05:00
Samuel Dionne-Riel
5e88e7efcf boot/gui: Allow running without generations file
This should *maybe* remove the Generations tab, as it's empty.
2020-03-01 16:58:39 -05:00
Samuel Dionne-Riel
ac95c64c92 boot/gui: Fix bad arguments handling for simulator 2020-03-01 16:58:07 -05:00
Samuel Dionne-Riel
20f2cbcc56 init: Interrupt boot when some keys are held. 2020-02-29 16:10:00 -05:00
Samuel Dionne-Riel
2b2d2ad7ea boot/applets: Add key-held utility 2020-02-29 16:10:00 -05:00
Samuel Dionne-Riel
d79466747d boot/init: Launch boot GUI when asked 2020-02-29 16:10:00 -05:00
Samuel Dionne-Riel
584c484d0c boot/gui: Init boot GUI 2020-02-28 23:14:09 -05:00
Samuel Dionne-Riel
3b9d04d3bd stage-1: workaround issue with e2fsck successfully failing 2020-02-28 23:14:09 -05:00
Samuel Dionne-Riel
26b4215547 boot/init: Add newly required dependencies 2020-02-28 23:14:09 -05:00
Samuel Dionne-Riel
68e4c2b7f3 boot/init: Split interpreter from script
This needs the following commits where the init script will now tell the
loader to load init.mrb
2020-02-28 23:14:09 -05:00
Samuel Dionne-Riel
95016e1250 boot/init: Add autoResize support 2020-02-03 21:58:22 -05:00
Samuel Dionne-Riel
7e9a7875ac boot/init: Mark as 0.1 2020-02-03 21:58:22 -05:00
Samuel Dionne-Riel
c4f76db65f boot/init: Handle remounting existing mounts
This is used to ensure mount points are mounted with the right options,
if for some reason they were already mounted.

Reasons they could be mounted? They could have been required for things
like logging the boot.
2020-02-03 21:58:21 -05:00
Samuel Dionne-Riel
8962b595f5 boot/init: brown sad phone on main failure 2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
d349e66554 boot/init: Use System#shell if available on failure
When it is available, it is assumed it is okay to use.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
67f907c952 initrd: System.write for login environment tasks 2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
75020873c8 initrd: System.write for graphics tasks 2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
462a3ae2e7 boot/init: System.write for hard reboot 2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
4f83d41d33 boot/init: Add System.write alias
This does the same thing as `File.write`, but with debug logging.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
cd963d2b59 boot/init: Allow crashing to bootloader 2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
a1e3d231be boot/init: Handle exception to flush logs
Otherwise, it somehow happened that the messages were truncated before
the kernel panic.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
c868bcea46 boot/init: Add network interface dependencies 2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
711a521f54 boot/init: Allows dependencies as an OR 2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
15964966b6 boot/init: Mounts will only wait for absolute paths 2020-02-03 16:19:10 -05:00