blob: 81b1f6c65570862c2aa429d2261fea348d0caa4a [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:
Adriana Kobylak1fbf7882015-04-27 13:22:36 -050013> sudo apt-get install cscope ctags libz-dev libexpat-dev \
Jeremy Kerrcaf30d42015-09-17 17:29:11 +080014 python language-pack-en texinfo \
Adriana Kobylak1fbf7882015-04-27 13:22:36 -050015 build-essential g++ git bison flex unzip \
Joel Stanley250ed722015-02-02 14:33:15 +103016 libxml-simple-perl libxml-sax-perl libxml2-dev libxml2-utils xsltproc
Jeremy Kerrbf821102014-08-20 12:48:54 +0800173. Continue with the clone, environment setup, and build as noted above.
Brian Silverdd815de2014-07-11 10:22:08 -050018
19Building on *64-bit* Fedora systems
20==========================================
21
221. Install Fedora 20 64-bit.
232. Install the packages necessary for the build:
Chris Austenbfdc3272015-03-03 15:44:53 -060024> sudo yum update vim-minimal
25> sudo yum install vim gcc-c++ flex bison git ctags cscope expat-devel patch glibc-devel.i686 libgcc.i686 zlib-devel zlib-static libstdc++.i686 libxml2-devel.i686
Brian Silverdd815de2014-07-11 10:22:08 -0500263. Install PERL modules necessary for the build:
Chris Austenbfdc3272015-03-03 15:44:53 -060027> sudo yum install "perl(XML::Simple)" "perl(YAML)" "perl(XML::SAX)" "perl(Fatal)" "perl(Thread::Queue)" "perl(Env)" "perl(XML::LibXML)" "perl(Digest::SHA1)"
Brian Silverdd815de2014-07-11 10:22:08 -050028
29Troubleshooting
30===============
31
caustenb6bef672014-07-15 09:11:39 -050032* If git is complaining about "fatal: reference is not a tree" with a commit matching a buildroot change, try:
33> rm -rf op-build/buildroot
Brian Silverdd815de2014-07-11 10:22:08 -050034> cd op-build
35> git clone --recursive git@github.com:open-power/buildroot.git
36
Brian Silverdd815de2014-07-11 10:22:08 -050037
38* If make is complaining during skiboot link phases, revert make to version 3.81
39-- On Fedora
40--> sudo rpm -del --nodeps make
41--> sudo wget ftp://fr2.rpmfind.net/linux/centos/6.5/os/x86_64/Packages/make-3.81-20.el6.x86_64.rpm
42--> sudo rpm --install make-3.81-20.el6.x86_64.rpm
43
caustenb6bef672014-07-15 09:11:39 -050044(instructions for make reversion from http://curiositydrivendevelopment.blogspot.com)