Patrick Williams | 35aa29f | 2014-07-03 04:09:37 -0500 | [diff] [blame] | 1 | === Building an image === |
| 2 | |
| 3 | git clone --recursive git@github.com:open-power/op-build.git |
Dan | 375638d | 2014-11-24 09:27:07 -0600 | [diff] [blame] | 4 | cd op-build |
Patrick Williams | 35aa29f | 2014-07-03 04:09:37 -0500 | [diff] [blame] | 5 | . op-build-env |
| 6 | op-build palmetto_defconfig && op-build |
Brian Silver | dd815de | 2014-07-11 10:22:08 -0500 | [diff] [blame] | 7 | |
| 8 | Building on *64-bit* Ubuntu/Debian systems |
| 9 | ========================================== |
| 10 | |
| 11 | 1. Install Ubuntu 14.04 or Debian 7.5 64-bit. |
| 12 | 2. Install the packages necessary for the build: |
Joel Stanley | 250ed72 | 2015-02-02 14:33:15 +1030 | [diff] [blame] | 13 | > 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 Kerr | bf82110 | 2014-08-20 12:48:54 +0800 | [diff] [blame] | 16 | 3. Continue with the clone, environment setup, and build as noted above. |
Brian Silver | dd815de | 2014-07-11 10:22:08 -0500 | [diff] [blame] | 17 | |
| 18 | Building on *64-bit* Fedora systems |
| 19 | ========================================== |
| 20 | |
| 21 | 1. Install Fedora 20 64-bit. |
| 22 | 2. Install the packages necessary for the build: |
Chris Austen | bfdc327 | 2015-03-03 15:44:53 -0600 | [diff] [blame] | 23 | > sudo yum update vim-minimal |
| 24 | > 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 Silver | dd815de | 2014-07-11 10:22:08 -0500 | [diff] [blame] | 25 | 3. Install PERL modules necessary for the build: |
Chris Austen | bfdc327 | 2015-03-03 15:44:53 -0600 | [diff] [blame] | 26 | > 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 Silver | dd815de | 2014-07-11 10:22:08 -0500 | [diff] [blame] | 27 | |
| 28 | Troubleshooting |
| 29 | =============== |
| 30 | |
causten | b6bef67 | 2014-07-15 09:11:39 -0500 | [diff] [blame] | 31 | * 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 Silver | dd815de | 2014-07-11 10:22:08 -0500 | [diff] [blame] | 33 | > cd op-build |
| 34 | > git clone --recursive git@github.com:open-power/buildroot.git |
| 35 | |
Brian Silver | dd815de | 2014-07-11 10:22:08 -0500 | [diff] [blame] | 36 | |
| 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 | |
causten | b6bef67 | 2014-07-15 09:11:39 -0500 | [diff] [blame] | 43 | (instructions for make reversion from http://curiositydrivendevelopment.blogspot.com) |