Changes between Initial Version and Version 1 of Build_Debug


Ignore:
Timestamp:
10/26/14 12:56:43 (9 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Build_Debug

    v1 v1  
     1== Build and Debug ==
     2=== Optimization flags ==
     3I did set the compile optimization flags in my ~/.rmprc It looks like this:
     4
     5{{{
     6optflags: armv3l -O0 -g -march=armv3
     7optflags: armv4b -O0 -g -march=armv4
     8optflags: armv4l -O0 -g -march=armv4
     9optflags: armv4tl -O0 -g -march=armv4t
     10optflags: armv5tel -O0 -g -march=armv5te
     11optflags: armv5tejl -O0 -g -march=armv5te
     12optflags: armv6l -O0 -g -march=armv6
     13optflags: armv7l -O0 -g -march=armv7
     14optflags: armv7hl -O0 -g -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -mno-thumb
     15optflags: armv7nhl -O0 -g -march=armv7-a -mfloat-abi=hard -mfpu=neon -mno-thumb
     16optflags: armv7thl -O0 -g -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -mthumb
     17optflags: armv7tnhl -O0 -g -march=armv7-a -mfloat-abi=hard -mfpu=neon -mthumb
     18}}}
     19
     20In addition I added this into ~/.rpmmacros
     21{{{
     22%debug_package %{nil}
     23}}}
     24
     25and in the ofono.spec file i changed the install section to:
     26
     27{{{
     28%install
     29export DONT_STRIP=1
     30rm -rf %{buildroot}
     31}}}
     32
     33and for the Version I changed in the ofono.spec
     34{{{
     35Version:    1.14+guhl01
     36}}}
     37
     38There is an error in the date format of one line in the rpm/ofono.changes. '''Change that line'''!
     39
     40=== building ===
     41I did the initial build with
     42
     43{{{
     44mb2 -s rpm/ofono.spec -t $VENDOR-$DEVICE-armv7hl build
     45}}}
     46later builds I just did with (in the ofono directory where the Makefile is)
     47{{{
     48sb2 -t $VENDOR-$DEVICE-armv7hl
     49make
     50}}}
     51
     52=== install ===
     53The first install i did using rpm
     54{{{
     55rpm -e --nodeps ofono
     56rpm -i /home/nemo/ofono-1.14+guhl01-1.armv7hl.rpm
     57}}}
     58after that i just copied the ofonod executabel to /usr/sbin/ofonod
     59
     60=== debug ===
     61on the phone:
     62{{{
     63export OFONO_ARGS=--noplugin=he910,dun_gw_bluez5,hfp_bluez5,hfp_ag_bluez5,cdma_provision,bluez5,isimodem,n900,u8500,qmimodem,gobi,cdmamodem,isiusb,nwmodem,ztemodem,iceramodem,huaweimodem,calypsomodem,swmodem,mbmmodem,hsomodem,ifxmodem,stemodem,dunmodem,hfpmodem,speedupmodem,phonesim
     64gdbserver :3050 /usr/sbin/ofonod -n -d $OFONO_ARGS
     65}}}
     66
     67on the pc:
     68{{{
     69ddd --debugger /usr/bin/arm-linux-gnueabi-gdb
     70}}}
     71change the path to where ever your ddd --debugger /usr/bin/arm-linux-gnueabi-gdb is.
     72
     73Then set your breakpoints and continue
     74
     75