blob: 638e5f1d3910363099679c13f128b57a128be89d [file] [log] [blame]
Patrick Williams35aa29f2014-07-03 04:09:37 -05001=== Building an image ===
2
3git clone --recursive git@github.com:open-power/op-build.git
4. op-build-env
5op-build palmetto_defconfig && op-build
Brian Silverdd815de2014-07-11 10:22:08 -05006
7Building on *64-bit* Ubuntu/Debian systems
8==========================================
9
101. Install Ubuntu 14.04 or Debian 7.5 64-bit.
112. Install the packages necessary for the build:
caustenb6bef672014-07-15 09:11:39 -050012> sudo apt-get install cscope ctags libz-dev libexpat-dev libc6-dev-i386 gcc g++ git bison flex gcc-multilib g++-multilib
Brian Silverdd815de2014-07-11 10:22:08 -0500133. Install PERL modules necessary for the build:
caustenb6bef672014-07-15 09:11:39 -050014> sudo cpan install XML::Simple XML::SAX::Expat
Brian Silverdd815de2014-07-11 10:22:08 -0500154. Override the /bin/dash default shell configuration, you want to answer "no":
caustenb6bef672014-07-15 09:11:39 -050016> sudo dpkg-reconfigure dash
Brian Silverdd815de2014-07-11 10:22:08 -0500175. Continue with the clone, environment setup, and build as noted above.
18
19Building on *64-bit* Fedora systems
20==========================================
21
221. Install Fedora 20 64-bit.
232. Install the packages necessary for the build:
24> sudo yum install vim gcc-c++ flex bison git ctags cscope cpan expat-devel patch glibc-devel-i686 libgcc.i686 zlib-devel libstdc++.i686
253. Install PERL modules necessary for the build:
caustenb6bef672014-07-15 09:11:39 -050026> sudo cpan install XML::Simple YAML XML::SAX Fatal Thread/Queue.pm Env
Brian Silverdd815de2014-07-11 10:22:08 -050027
28Troubleshooting
29===============
30
caustenb6bef672014-07-15 09:11:39 -050031* If git is complaining about "fatal: reference is not a tree" with a commit matching a buildroot change, try:
32> rm -rf op-build/buildroot
Brian Silverdd815de2014-07-11 10:22:08 -050033> cd op-build
34> git clone --recursive git@github.com:open-power/buildroot.git
35
Brian Silverdd815de2014-07-11 10:22:08 -050036
37* If make is complaining during skiboot link phases, revert make to version 3.81
38-- On Fedora
39--> sudo rpm -del --nodeps make
40--> sudo wget ftp://fr2.rpmfind.net/linux/centos/6.5/os/x86_64/Packages/make-3.81-20.el6.x86_64.rpm
41--> sudo rpm --install make-3.81-20.el6.x86_64.rpm
42
caustenb6bef672014-07-15 09:11:39 -050043(instructions for make reversion from http://curiositydrivendevelopment.blogspot.com)