How to specify toolchain when using bloom to create Debian packages?

asked 2020-10-08 10:55:09 -0500

Dario Ugalde gravatar image

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

edit retag flag offensive close merge delete

Comments

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.

gvdhoorn gravatar image gvdhoorn  ( 2020-10-09 03:35:53 -0500 )edit