blob: 12cc2237d2f0089f35af246273f090d2394cd3ed [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:
Jeremy Kerr06070e52014-08-20 11:46:29 +080012> sudo apt-get install cscope ctags libz-dev libexpat-dev libc6-dev-i386 gcc g++ git bison flex gcc-multilib g++-multilib libxml-simple-perl libxml-sax-perl
133. Override the /bin/dash default shell configuration, you want to answer "no":
caustenb6bef672014-07-15 09:11:39 -050014> sudo dpkg-reconfigure dash
Jeremy Kerr06070e52014-08-20 11:46:29 +0800154. Continue with the clone, environment setup, and build as noted above.
Brian Silverdd815de2014-07-11 10:22:08 -050016
17Building on *64-bit* Fedora systems
18==========================================
19
201. Install Fedora 20 64-bit.
212. Install the packages necessary for the build:
22> sudo yum install vim gcc-c++ flex bison git ctags cscope cpan expat-devel patch glibc-devel-i686 libgcc.i686 zlib-devel libstdc++.i686
233. Install PERL modules necessary for the build:
caustenb6bef672014-07-15 09:11:39 -050024> sudo cpan install XML::Simple YAML XML::SAX Fatal Thread/Queue.pm Env
Brian Silverdd815de2014-07-11 10:22:08 -050025
26Troubleshooting
27===============
28
caustenb6bef672014-07-15 09:11:39 -050029* If git is complaining about "fatal: reference is not a tree" with a commit matching a buildroot change, try:
30> rm -rf op-build/buildroot
Brian Silverdd815de2014-07-11 10:22:08 -050031> cd op-build
32> git clone --recursive git@github.com:open-power/buildroot.git
33
Brian Silverdd815de2014-07-11 10:22:08 -050034
35* If make is complaining during skiboot link phases, revert make to version 3.81
36-- On Fedora
37--> sudo rpm -del --nodeps make
38--> sudo wget ftp://fr2.rpmfind.net/linux/centos/6.5/os/x86_64/Packages/make-3.81-20.el6.x86_64.rpm
39--> sudo rpm --install make-3.81-20.el6.x86_64.rpm
40
caustenb6bef672014-07-15 09:11:39 -050041(instructions for make reversion from http://curiositydrivendevelopment.blogspot.com)