Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[PROGRAMMING] Learn C, Build a rom

$
0
0
Ever want to learn C? Want to build a rom too?? Well this thread will then be for you! I have combined learning C with building a rom in a small little program that is sent to github and well committed. The best part is, you the learner, will have the ability to submit additions you do to the program with your new C skills and have it published right here in this thread with your name! Cool right?

So first things first, you have to git clone the source
just run the command below
Code:

git clone git://github.com/simonsimons34/build_helper.git
Now, learn C and have fun. There are tutorials here that are teaching C here on xda, and this provides real life working WARNING free examples. It shows you how make files work, linking objects with the linker to get one bianary (like the kernel) and how to make code available to other built in files. It also shows you how to use an include/ directory.

if you submit code, please post a patch here with the purpose (for learning purposes) this can be done by running
Code:

diff -rupN unchangedfoldername/ folderwithmychanges/ > mychange.patch
in turn, patches can be applied with
Code:

cd mycodedir/
patch -p1 < /location/of/patch/patchname.patch

Any suggestions are welcome, as well as all discussion. Eventually I want to teach you how to compile this code on the NDK and use a library to build ssh support in so you could ssh to a build server and run the scripts from your phone.

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>