User:DanielDrake/Notes: Difference between revisions
Jump to navigation
Jump to search
DanielDrake (talk | contribs) No edit summary |
DanielDrake (talk | contribs) No edit summary |
||
Line 13: | Line 13: | ||
== building == |
== building == |
||
* <tt>cd ~/SPECS; rpmbuild -bb --target=`uname -m |
* <tt>cd ~/SPECS; rpmbuild -bb --target=`uname -m foo.spec</tt> |
||
* output is in ~/RPMS/<arch> |
* output is in ~/RPMS/<arch> |
||
Line 40: | Line 40: | ||
* run <tt>copy-nand u:\osXYZ.img</tt>? |
* run <tt>copy-nand u:\osXYZ.img</tt>? |
||
* this wipes everything |
* this wipes everything |
||
* run <tt>boot</tt> |
Revision as of 17:52, 16 June 2008
RPM dev
initial setup
- install packages: fedora-rpmdevtools yum-utils
- run rpmdev-setuptree to create ~/rpmbuild hierarchy and .rpmmacros settings
obtaining/unpacking source and preparing build env
- Find the source RPM either in the fedora archives or run yumdownloader --source <package>
- install build-dependencies: sudo yum-builddep foo.src.rpm
- unpack the sources: rpm -Uvh foo.src.rpm
unpacking sources
- only if you want to generate new patches or whatever: cd ~/SPECS; rpmbuild -bp --target=`uname -m` foo.spec
building
- cd ~/SPECS; rpmbuild -bb --target=`uname -m foo.spec
- output is in ~/RPMS/<arch>
installing
- sudo rpm -ivh --force ../RPMS/foo.rpm
links
- install custom kernel: http://fedoraproject.org/wiki/Docs/CustomKernel
- includes some of the above
- how to use rpm: http://www.rpm.org/max-rpm/
- fedora packager's handbook
- building packages guide
- fedora package cvs
misc
- query installed sofware version: rpm -q <package>
additional notes for XO devel
- other packages needed: git
- other development utils I use: quilt
easy flashing from USB
- download osXYZ.img and osXYZ.crc to usb drive
- plug usb drive into XO
- press esc during boot to reach openfirmware prompt
- run copy-nand u:\osXYZ.img?
- this wipes everything
- run boot