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