https://redmine.replicant.us/https://redmine.replicant.us/favicon.ico?15984615062020-12-09T01:07:40ZReplicantReplicant - Issue #2195: Build the kernel in Replicant 11 sourceshttps://redmine.replicant.us/issues/2195?journal_id=84822020-12-09T01:07:40ZDenis 'GNUtoo' CarikliGNUtoo@cyberdimension.org
<ul></ul><p>To build the kernel, we need to have gcc.</p>
<p>Using the host gcc isn't going to work with the path interposer given the comments that are in the configuration file: The <code>gcc</code> binary contains code that drives the compilation. It then runs other binaries like <code>cc1</code>. Passing -B to GCC can make it find <code>cc1</code> but (1) that's ultra dirty, and (2) it fails to find it plugins.</p>
<p>As GCC was removed from the prebuilts in AOSP, and that depending on binaries isn't great, the idea would be to build GCC ourselves.</p>
<p>Since we were already doing it in Replicant 6, we could probably reuse the script Wolfgang did and adapt it to build a arm-none-eabi toolchain to build only the kenrel (to avoid dependencies on the headers needed for androideabi, which are now gone in the branches/tags of AOSP used by Replicant 11).</p>
<p>So far we need these additional dependencies on Trisquel 8:<br /><pre>
apt install libgmp-dev libmpfr-dev libmpc-dev
</pre></p> Replicant - Issue #2195: Build the kernel in Replicant 11 sourceshttps://redmine.replicant.us/issues/2195?journal_id=84842020-12-09T04:14:30ZDenis 'GNUtoo' CarikliGNUtoo@cyberdimension.org
<ul></ul><p>For now it will require a workaround on Trisquel 8 (as building the host toolchain fails if it doesn't find /usr/include/asm):<br /><pre>
sudo ln -s /usr/include/asm-generic /usr/include/asm
</pre></p>
<p>I'll try to get rid of it later on by installing more recent kernel headers (where it did the split between asm and asm-generic).</p>
<p>Ideally that toolchain build should probably be integrated completely in Android.</p> Replicant - Issue #2195: Build the kernel in Replicant 11 sourceshttps://redmine.replicant.us/issues/2195?journal_id=85122021-01-08T04:44:34ZDenis 'GNUtoo' CarikliGNUtoo@cyberdimension.org
<ul><li><strong>% Done</strong> changed from <i>0</i> to <i>70</i></li></ul><p>This now builds but it doesn't support modules yet</p> Replicant - Issue #2195: Build the kernel in Replicant 11 sourceshttps://redmine.replicant.us/issues/2195?journal_id=90052021-03-26T20:49:59Z_I3^ RELATIVISM
<ul><li><strong>Type of work</strong> <i>C programming, User testing</i> added</li></ul>