176
edits
| Line 97: | Line 97: | ||
Now that your N810 is all set, you're ready to debug and profile just about any program built for ARMEL target. We're going to use our fennec example hereafter. | Now that your N810 is all set, you're ready to debug and profile just about any program built for ARMEL target. We're going to use our fennec example hereafter. | ||
* Build fennec with debug symbols | * Build fennec with debug symbols | ||
Now go back to your desktop and log onto scratchbox CHINOOK-ARMEL-2007 target. Build fennec by following instructions at [[ | Now go back to your desktop and log onto scratchbox CHINOOK-ARMEL-2007 target. Build fennec by following instructions at [[Mobile/Build/Fennec]]. | ||
You may choose to build fennec for DEBUG or PERF, but be sure to add the following line to your mozconfig in order to get | You may choose to build fennec for DEBUG or PERF, but be sure to add the following line to your mozconfig in order to get debug symbols in the resultant libs : | ||
ac_add_options --enable-debugger-info-modules | ac_add_options --enable-debugger-info-modules | ||
* Package fennec | * Package fennec | ||
At this point, you may tar and copy fennec objdir/mobile/dist/bin folder to your device for testing, but this folder might still contain some symlinks, so it's better to package fennec before sending it over to the N810. So, from the 'objdir/mobile' folder, type : | At this point, you may tar and copy fennec <objdir>/mobile/dist/bin folder to your device for testing, but this folder might still contain some symlinks, so it's better to package fennec before sending it over to the N810. So, from the 'objdir/mobile' folder, type : | ||
make package PKG_SKIP_STRIP=1 | make package PKG_SKIP_STRIP=1 | ||
::<i>The 'PKG_SKIP_STRIP=1' flag is important as it tells make NOT to strip debugging symbols off packaged libs!<i/> | ::<i>The 'PKG_SKIP_STRIP=1' flag is important as it tells make NOT to strip debugging symbols off packaged libs!<i/> | ||
You'll now find the packaged fennec under '<objdir>/mobile/dist/fennec'. copy the package outside of scratchbox prior to copying it over to the N810 : | |||
cd <objdir>/mobile/dist; # replace <objdir> by the actual objdir directory | |||
cp -R fennec /tmp | |||
edits