ghitchens / bake

[deprecated] - Configure, compile and share systems, toolchains and linux firmware.
55 stars 3 forks source link

Add erlinit.conf to system at assembly time #7

Open mobileoverlord opened 8 years ago

mobileoverlord commented 8 years ago

/etc/erlinit.conf needs to be pulled out of the system at system compile time and added to the rootfs at assembly time. The system should include an erlinit.conf to use as a default if one is not specified in the directory of assembly time overrides.

hilmer commented 8 years ago

Ahh, guess this is the reason I cannot switch to ttyAMA0 on my rpi.

I tried to change the BR2_PACKAGE_NERVES_CONFIG_PORT in .nerves/systems/nerves/rpi-0.4.0-rc2/.config but that had no effect.

Is there any progress on this, debugging would be far easier if the terminal could be in a window on my dev machine.

mobileoverlord commented 8 years ago

We have made progress on this, initially we thought we could pull the config file out into a shared reference location, but it would've broken the ability to provide a separate erlinit.conf file for different targets. To make this work, we have been working on integrating bake directly into the standard routine for mix commands. Doing this gives us the access to target config location so we can properly support multi target overrides. Over the next week, we will be posting more information on getting people to try out this new project structure. You can ping me on #nerves in elixir-lang slack and we can talk further.