Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Patching Features
« previous next »
  • Print
Pages: [1]

Author Topic: Patching Features  (Read 1999 times)

Offline Rcdude10tc32

  • Member
  • *
  • Posts: 20
Patching Features
« on: January 06, 2008, 09:06:38 AM »
I wrote a couple features for my rockbox that are just some things I like, not really valuable to the total build. Everytime I want to upgrade to a new firmware I have to go back into the code and add all the stuff for my aditional features.  What would be  the best process to be able to just apply my changes to newer code.

Thanks
-Justin
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Patching Features
« Reply #1 on: January 06, 2008, 09:34:35 AM »
I'm not quite sure what you are asking.

Obviously every time you want to upgrade you need to compile a new build.  If you are using svn, when you svn up it should try to sync your changes with the updated source, and you can then compile.  Unless there is a clash you should not need to reapply (patch) your changes to the soure every time.
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline Rcdude10tc32

  • Member
  • *
  • Posts: 20
Re: Patching Features
« Reply #2 on: January 06, 2008, 09:58:08 AM »
no you totally got it, thats basically the solution. I've been reading about SVN and i'm not using it yet. I've just been downloading the lastest source and using a text editor.   I didn't know it auto-updates your code, thats actually really awesome.  Thanks alot

-Justin
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Patching Features
« Reply #3 on: January 06, 2008, 09:59:40 AM »
I would thoroughly recommend using SVN over downloading the source, it is so much more powerful.  What operating system are you on?
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline psycho_maniac

  • Member
  • *
  • Posts: 814
    • MyWebPage
Re: Patching Features
« Reply #4 on: January 06, 2008, 10:25:30 AM »
yeah using "svn up" is so much easier. all i have to do is go to my rockbox directory type "svn up" then when thats done go to my buld folder and run the make && make zip.
Logged
Please SEARCH the wiki | Please read the Forum Guidelines | Please Read the Manual
I Own A Gigabeat F80

Offline Rcdude10tc32

  • Member
  • *
  • Posts: 20
Re: Patching Features
« Reply #5 on: January 06, 2008, 11:07:34 AM »
I'm on XP at the moment, but i'm going to linux (Ubuntu) for this real soon.  I'm sick of cygwin taking so long.  But for now I just installed svn, got it all working, and it is awesome.  I for some reason thought it was going to be a lot harder than it was.  Is installing svn on linux just as simple?

Oh and psycho_maniac, thanks as well,
I was having trouble making a simulator build earlier, It had been a little while since I had to use cygwin and I forgot to mkdir the build directory, and your post reminded me that.  ha so thanks!
« Last Edit: January 06, 2008, 11:12:35 AM by Rcdude10tc32 »
Logged

Offline Tri Nguyen

  • Member
  • *
  • Posts: 7
Re: Patching Features
« Reply #6 on: January 06, 2008, 11:12:49 AM »
If you use ubuntu then you just need to type "sudo apt-get install subversion" on a terminal and anything is installed.
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Patching Features
« Reply #7 on: January 06, 2008, 12:07:43 PM »
Yes, as Tri Nguyen says, subversion is dead easy to install on linux.  Whilst (IMO) building on linux is the quickest/easiest solution, have you also looked at the VMWare image?  It is a lot quicker to build than cygwin.
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline yapper

  • Rockbox Expert
  • Member
  • *
  • Posts: 794
Re: Patching Features
« Reply #8 on: January 06, 2008, 01:25:46 PM »
There is a good guide in the wiki http://www.rockbox.org/twiki/bin/view/Main/SimpleGuideToCompiling

Slightly off topic, but using my old laptop (Windows XP/Celeron M 1.5GHz/256M RAM/Cygwin), it takes 340 seconds to 'make' r16005 after a 'make clean'.

Does anyone have timings for a similar PC using VMWare and/or linux?
Logged
G2 iPod 20GB / Sansa c240 v1 + 2GB microSD / Sansa c250 v1 / Sansa e250 v1 + 8GB microSDHC / Sansa Fuze v2 + 32GB microSDHC

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Patching Features
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.092 seconds with 15 queries.