This guide will learn you to make changes to one of the SHR projects. (Like shr-dialer)
Before actually contributing code, please refer to Coding Conventions.
You should have done Building SHR and Getting started developing SHR before you can do this guide.
Just building an SHR project
cd shr-testing . setup-env #only once per session
Now you can start building:
bitbake -c clean shr-dialer bitbake -c build shr-dialer
You should always be in the shr-testing directory before you can use the bitbake command. If you aren't in this directory, you have chance on failures. You should always do the clean command before you do the build command. It makes that bitbake will build the newest files. (In other circumstances it could build the caches)
Changing and building an SHR project
cd shr-testing/shr-apps/shr-dialer # do all your changes in this folder cd ../../ bitbake -c clean shr-dialer bitbake -c build shr-dialer
Now you can find the ipk in tmp/deploy/glibc/ipk/armv4t/shr-dialer*.ipk
Installing it into your Neo FreeRunner?/1973
scp tmp/deploy/glibc/ipk/armv4t/shr-dialer*.ipk root@192.168.0.202:/home/root ssh root@192.168.0.202
First we gonna delete the cache of opkg. Else opkg will always install the packages that is located on the internet. (You can regenerate the cache by doing 'opkg update')
rm /var/lib/opkg/*
If that package is still the default installed package, you have to do
opkg install shr-dialer*.ipk -force-downgrade
else you can do
opkg install shr-dialer*.ipk
Voila now you have successfully changed the package shr-dialer and uploaded it into your neo for testing purpose.
