Package pwrrpi containing runtime archives compiled with crosscompiler for raspbian on Raspberry PI. 1. Install cross compiler sudo apt-get install gcc-6-arm-linux-gnueabihf-base gcc-6-arm-linux-gnueabihf g++-6-arm-linux-gnueabihf 2. Define pwre links to the cross compiler export pwre_cc=arm-linux-gnueabihf-gcc-6 export pwre_cxx=arm-linux-gnueabihf-g++-6 export pwre_ar=arm-linux-gnueabihf-ar 3. Define a link to the exe directory of the host release export pwre_host_exe=/data1/x5-0-0/rls/os_linux/hw_x86/exp/exe 4. Create an pwre environment for the rpi release with hardware arm pwre add x500rpi Source root? /data0/x5-0-0/pwr/src Import root? /data0/x5-0-0/rls/os_linux/hw_x86 Build root? /data0/x5-0-0/rls Build type? OS? linux Hardware? arm 5. Build arm release pwre init x500rpi mkdir $pwre_broot pwre configure --ebuild pwre create_all_modules pwre import rt pwre import java pwre ebuild rt 6. Build the package Set version in the control file and build with pwre build tools/pkg deb src rpi