How to specify toolchain when using bloom to create Debian packages?
I'm working on Ubuntu 18.04 with ROS melodic. I was able to specify a toolchain file for catkin_make to cross compile my workspace for arm64. I want to create Debian files for my packages that are also cross compiled, but when I run bloom-generate into fakeroot the deb files produced are built to my native processor (amd64) instead of the target (arm64). I've tried specifying the DCMAKE_TOOLCHAIN_FILE in the debian/rules file the same way I did for my workspace compilation but this led to the native deb as specified before. I would greatly appreciate any advice on how to specify the toolchain during deb creation process.
Regards, Dario
Isn't generating-the-source-archive a separate step from building-the-package?
I would expect you need to provide info on the toolchain for the latter, not the the former.
Perhaps the patching support in Bloom would allow you to alter the contents of the
debian
folder before things get build.