LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-23-2006, 11:18 PM   #1
bhuvanmital
LQ Newbie
 
Registered: Dec 2005
Posts: 23

Rep: Reputation: 15
How to make my patch / installer for my linux code?


I have made a driver and i want to make a package (RPM) for it? There are quite a few rpm guides on the net to help me make rpms. However i want to know if there is any other method to make an installer for my driver?

Can i use the patch command to make new directory structures?? I am dealing with new files that i've written for my driver. I'm not too sure if i can make a patch for my driver.

Please help me out with this.
 
Old 04-24-2006, 08:56 AM   #2
NomadX
Member
 
Registered: Jul 2005
Location: Portland, OR
Distribution: Debian Testing
Posts: 78

Rep: Reputation: 15
There are several ways you can go...

Quote:
Originally Posted by bhuvanmital
I have made a driver and i want to make a package (RPM) for it? There are quite a few rpm guides on the net to help me make rpms. However i want to know if there is any other method to make an installer for my driver?

Can i use the patch command to make new directory structures?? I am dealing with new files that i've written for my driver. I'm not too sure if i can make a patch for my driver.

Please help me out with this.
Heres a good howto about patches in general:
http://drupal.org/diffandpatch

Patches will usually be applied to a kernel before compiling it, which doesnt sound like what you really want to do.

If you wish to make your kernel and device driver (re)installable from your current configuration (so that if you booboo your next compile, going back is easy) You just need to build a kernel rpm using whatever means is best for your system here is a general rpm howto:

http://grid-it.cnaf.infn.it/index.php?rpmbuild&type=1

but I wouldnt be surprised if you could find one specific to your distro if google it.. This is probably the easiest way, but you'll need to stumble through it once before you'll know how

You'd then need to make sure that either that same source package or a seperate package, contained all your new driver files and paths, files you changed, etc.

It should be a matter of using insmod on the driver after that.

.. or maybe if you remember everything you did to get your driver to work you could simply add all the necessary new or changed files to a tar with full path/permission preservation, and simply untar it to recover that setup.. This would likely be problematic and take a few test tries but would likely work too.

Hope that points ya in a usefull direction, I'm tired and dont know what distro or I'd have looked into for you :P

DrStoney

Last edited by NomadX; 04-24-2006 at 09:03 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to build a patch installer with rpm? zhouxjgester Linux - Software 2 09-12-2005 08:42 AM
How To Make Installer In Linux Bash Scripting pak_abdul Programming 1 05-24-2005 08:37 AM
Microsoft is not able to patch its code! Nukem General 3 04-02-2004 12:39 PM
Slackware Installer Source Code cybermonkey Slackware 9 01-22-2004 05:06 PM
how to make my own linux installer.. johnyy Linux - Software 5 12-04-2003 12:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration