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

779 Commits

Author SHA1 Message Date
Samuel Dionne-Riel
cc0561b040 mruby: change order gems are collected
This ensures no dependencies for a gem end up after `mruby-require`.
This is important since anything after `mruby-require` is implicitly
built as a shared library.
2020-02-28 23:14:09 -05:00
Samuel Dionne-Riel
3631ed1882 mruby: Allow gems to define native build inputs 2020-02-28 23:14:09 -05:00
Samuel Dionne-Riel
97c333b160 mruby: Save linker flags for future re-use
This will be used by `makeBin` so that using mrbgems requiring external
dependencies stays ergonomic.
2020-02-28 23:14:09 -05:00
Samuel Dionne-Riel
7eeee77f71 mruby-builder: stub handles ARGV and PROGRAM_NAME 2020-02-28 23:14:09 -05:00
Samuel Dionne-Riel
47d0914a49 mruby-builder: Move stub.c to a discrete file 2020-02-28 23:14:09 -05:00
Samuel Dionne-Riel
8e57a91279 mruby-builder: Make use of those cores 2020-02-28 23:14:09 -05:00
Samuel Dionne-Riel
1a60911898 documentation: Fix UTF-8 parsing
When not having glibcLocales, nor a proper LANG set, asciidoctor would
work in US-ASCII.
2020-02-04 17:18:43 -05:00
Samuel Dionne-Riel
8ee49d935d
Merge pull request #66 from samueldr-wip/feature/new-init
Completely bespoke stage-1 init, shell-free
2020-02-03 22:44:23 -05:00
Samuel Dionne-Riel
95016e1250 boot/init: Add autoResize support 2020-02-03 21:58:22 -05:00
Samuel Dionne-Riel
df1313d276 rootfs: Add e2fsprogs 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
8399cfa5a8 demo: Expose build attribute 2020-02-03 21:58:22 -05:00
Samuel Dionne-Riel
06dbca4706 xiaomi-tissot: Enable CONFIG_DEVPTS_MULTIPLE_INSTANCES 2020-02-03 21:58:22 -05:00
Samuel Dionne-Riel
c02373d322 xiaomi-lavender: Enable CONFIG_DEVPTS_MULTIPLE_INSTANCES 2020-02-03 21:58:22 -05:00
Samuel Dionne-Riel
54f8799520 oneplus-oneplus3: Enable CONFIG_DEVPTS_MULTIPLE_INSTANCES 2020-02-03 21:58:22 -05:00
Samuel Dionne-Riel
9542050705 motorola-addison: Enable CONFIG_DEVPTS_MULTIPLE_INSTANCES 2020-02-03 21:58:22 -05:00
Samuel Dionne-Riel
1c87211c89 google-walleye: Enable CONFIG_DEVPTS_MULTIPLE_INSTANCES 2020-02-03 21:58:21 -05:00
Samuel Dionne-Riel
3394658150 google-marlin: Enable CONFIG_DEVPTS_MULTIPLE_INSTANCES 2020-02-03 21:58:21 -05:00
Samuel Dionne-Riel
aaf540011b asus-z00t: Enable CONFIG_DEVPTS_MULTIPLE_INSTANCES 2020-02-03 21:58:21 -05:00
Samuel Dionne-Riel
6c3cfccf16 asus-flo: Enable CONFIG_DEVPTS_MULTIPLE_INSTANCES 2020-02-03 21:58:21 -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
7dd8408dd9 initrd: Fix early logging
We're now starting `bootlogd` first thing, this in turn allows it to
capture all logs. Though, this does mean that `sh` is back in the
critical path of the system. Anyway, it was never exactly out.
2020-02-03 21:58:21 -05:00
Samuel Dionne-Riel
8f8728b46a
Merge pull request #76 from samueldr-wip/devices/asus-dumo/kernel-5.5.0
asus-dumo: kernel 5.3.0 -> 5.5.0
2020-02-03 16:25:22 -05:00
Samuel Dionne-Riel
a53f7cf463 initrd: Expose extraUtils 2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
290d2ff757 initrd: Fix strace packaging 2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
bcda887e7a initrd-usb: ffs -> adb for ADB
It looks like it didn't matter for some device, but may be an issue for
`google-marlin`.

I'm not sure where the `ffs` feature name came from.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
53413080cc initrd-usb: Follow AOSP init order more closely
This is part of what may be required to fix ADB on google-marlin.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
3c2c24a832 docs: Document brown sad phone 2020-02-03 16:19:10 -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
57a7de2610 initrd-usb: Only enable when a mode is available 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
bdd234fc0e initrd-shell: Allows using a shell on failure...
This needs to be plugged into the init via duck-typing.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
c9f43ba25e demo: Remove "hard-shutdown" from system
It's not needed, and systemd's shutdown already handles `reboot
bootloader` appropriately, thus the `hardshutdown` replacement is not
required.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
36a78e23ea demo: System.write for brightness task in burn tool 2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
c15460b6d4 demo: Enable adbd in burn tool 2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
0815a83dcf demo: Greatly simplifies burn-tool 2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
22bd4406b0 demo: Use shell as a replacement for "loop-forever" 2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
2356bd2947 adb: Disables by default
This was a bit rude! There are security consideration in making adb
available!
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
f30f2e0e5e adb: Implement as a boot/init task 2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
4289996f3c initrd: System.write for USB gadget tasks 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
8d3833691b initrd: Setup ffs aliases before mounting functionfs
It turns out to be required for some devices.

Namely, google-marlin.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
74a1a190ca initrd-usb: Force device to declare mode
The detection cannot be done reliably. Some android_usb devices
(motorola-addison) have gadgetfs available, while some gadgetfs devices
will have the android_usb path available.

Anyway, this is probably better to explicitly declare the mode to use.
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
eee5b2d608 boot-initrd: Removes outdated option 2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
4cc403e3cd initrd-vendor: Stop assuming there is a vendor partition
Older devices will not have a vendor *partition*.
2020-02-03 16:19:10 -05:00