Slides from my 35C3 cross-compile workshop


#1

In case someone is interested, these are my slides from the cross-compiling workshop on the 35th chaos communication congress in Leipzig: https://docs.google.com/presentation/d/11B3Igxj0KmsxgT_UQvKufd5El_oH-T__Sl3JNCZeOnY/edit?usp=sharing

Unfortunally the recording broke. If someone wants to have the same talk on their NixOS meetup, I would be happy to give my talk again to get a proper video.


#2

Good summary! Well done!


#3

That was great, I learned a lot. Som hypothetically, if you have a buildInput that has a host component and a build component, it should be split in two different packages?


#4

@wmertens Usually you would refer to the from build component to the library that is meant for the target.
You then call the other component target library instead of host library.
I.e. gcc from buildPackage has a dependency on libgcc that is compiled for the target. This is because
gcc could be cross-compiled from architecture A to architecture B but it actually produces code for the architecture C. libgcc also then needs to be compiled for the target, which is architecture C instead of architecture B, which gcc can run on.


#5

my web browser is not supported, html presentation requires
javascript… shame


#6

It’s just Google docs, how about opening it in incognito mode where you allow JavaScript?

I understand that you want to limit js, but how do you use discourse, or your online banking?


#7

A pullrequest to make crosscompiling Raspberry PI images possible. ( I haven’t tried it yet )


#8

docs :books: will export to plain text

wget "https://docs.google.com/presentation/d/11B3Igxj0KmsxgT_UQvKufd5El_oH-T__Sl3JNCZeOnY/export/txt?id=11B3Igxj0KmsxgT_UQvKufd5El_oH-T__Sl3JNCZeOnY" -O 'Nix cross-compiling.txt'

or pdf

https://docs.google.com/presentation/d/11B3Igxj0KmsxgT_UQvKufd5El_oH-T__Sl3JNCZeOnY/export/pdf?id=11B3Igxj0KmsxgT_UQvKufd5El_oH-T__Sl3JNCZeOnY

wget "https://docs.google.com/presentation/d/11B3Igxj0KmsxgT_UQvKufd5El_oH-T__Sl3JNCZeOnY/export/pdf?id=11B3Igxj0KmsxgT_UQvKufd5El_oH-T__Sl3JNCZeOnY" -O 'Nix-cross-compiling.pdf'

#9

this works, thanks a lot!