blob: d566b1642f3676ea970a1c32c08b2c39d881101a [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
Dan375638d2014-11-24 09:27:07 -06004cd op-build
Patrick Williams35aa29f2014-07-03 04:09:37 -05005. op-build-env
6op-build palmetto_defconfig && op-build
Brian Silverdd815de2014-07-11 10:22:08 -05007
8Building on *64-bit* Ubuntu/Debian systems
9==========================================
10
111. Install Ubuntu 14.04 or Debian 7.5 64-bit.
122. Install the packages necessary for the build:
Joel Stanley250ed722015-02-02 14:33:15 +103013> sudo apt-get install cscope ctags libz-dev libexpat-dev libc6-dev-i386 \
14 build-essential g++ git bison flex gcc-multilib g++-multilib \
15 libxml-simple-perl libxml-sax-perl libxml2-dev libxml2-utils xsltproc
Jeremy Kerrbf821102014-08-20 12:48:54 +0800163. Continue with the clone, environment setup, and build as noted above.
Brian Silverdd815de2014-07-11 10:22:08 -050017
18Building on *64-bit* Fedora systems
19==========================================
20
211. Install Fedora 20 64-bit.
222. Install the packages necessary for the build:
23> sudo yum install vim gcc-c++ flex bison git ctags cscope cpan expat-devel patch glibc-devel-i686 libgcc.i686 zlib-devel libstdc++.i686
243. Install PERL modules necessary for the build:
caustenb6bef672014-07-15 09:11:39 -050025> sudo cpan install XML::Simple YAML XML::SAX Fatal Thread/Queue.pm Env
Brian Silverdd815de2014-07-11 10:22:08 -050026
27Troubleshooting
28===============
29
caustenb6bef672014-07-15 09:11:39 -050030* If git is complaining about "fatal: reference is not a tree" with a commit matching a buildroot change, try:
31> rm -rf op-build/buildroot
Brian Silverdd815de2014-07-11 10:22:08 -050032> cd op-build
33> git clone --recursive git@github.com:open-power/buildroot.git
34
Brian Silverdd815de2014-07-11 10:22:08 -050035
36* If make is complaining during skiboot link phases, revert make to version 3.81
37-- On Fedora
38--> sudo rpm -del --nodeps make
39--> sudo wget ftp://fr2.rpmfind.net/linux/centos/6.5/os/x86_64/Packages/make-3.81-20.el6.x86_64.rpm
40--> sudo rpm --install make-3.81-20.el6.x86_64.rpm
41
caustenb6bef672014-07-15 09:11:39 -050042(instructions for make reversion from http://curiositydrivendevelopment.blogspot.com)