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 |
| 4 | . op-build-env |
| 5 | op-build palmetto_defconfig && op-build |
Brian Silver | dd815de | 2014-07-11 10:22:08 -0500 | [diff] [blame] | 6 | |
| 7 | Building on *64-bit* Ubuntu/Debian systems |
| 8 | ========================================== |
| 9 | |
| 10 | 1. Install Ubuntu 14.04 or Debian 7.5 64-bit. |
| 11 | 2. Install the packages necessary for the build: |
Jeremy Kerr | 06070e5 | 2014-08-20 11:46:29 +0800 | [diff] [blame] | 12 | > 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 |
Jeremy Kerr | bf82110 | 2014-08-20 12:48:54 +0800 | [diff] [blame] | 13 | 3. Continue with the clone, environment setup, and build as noted above. |
Brian Silver | dd815de | 2014-07-11 10:22:08 -0500 | [diff] [blame] | 14 | |
| 15 | Building on *64-bit* Fedora systems |
| 16 | ========================================== |
| 17 | |
| 18 | 1. Install Fedora 20 64-bit. |
| 19 | 2. Install the packages necessary for the build: |
| 20 | > sudo yum install vim gcc-c++ flex bison git ctags cscope cpan expat-devel patch glibc-devel-i686 libgcc.i686 zlib-devel libstdc++.i686 |
| 21 | 3. Install PERL modules necessary for the build: |
causten | b6bef67 | 2014-07-15 09:11:39 -0500 | [diff] [blame] | 22 | > sudo cpan install XML::Simple YAML XML::SAX Fatal Thread/Queue.pm Env |
Brian Silver | dd815de | 2014-07-11 10:22:08 -0500 | [diff] [blame] | 23 | |
| 24 | Troubleshooting |
| 25 | =============== |
| 26 | |
causten | b6bef67 | 2014-07-15 09:11:39 -0500 | [diff] [blame] | 27 | * If git is complaining about "fatal: reference is not a tree" with a commit matching a buildroot change, try: |
| 28 | > rm -rf op-build/buildroot |
Brian Silver | dd815de | 2014-07-11 10:22:08 -0500 | [diff] [blame] | 29 | > cd op-build |
| 30 | > git clone --recursive git@github.com:open-power/buildroot.git |
| 31 | |
Brian Silver | dd815de | 2014-07-11 10:22:08 -0500 | [diff] [blame] | 32 | |
| 33 | * If make is complaining during skiboot link phases, revert make to version 3.81 |
| 34 | -- On Fedora |
| 35 | --> sudo rpm -del --nodeps make |
| 36 | --> sudo wget ftp://fr2.rpmfind.net/linux/centos/6.5/os/x86_64/Packages/make-3.81-20.el6.x86_64.rpm |
| 37 | --> sudo rpm --install make-3.81-20.el6.x86_64.rpm |
| 38 | |
causten | b6bef67 | 2014-07-15 09:11:39 -0500 | [diff] [blame] | 39 | (instructions for make reversion from http://curiositydrivendevelopment.blogspot.com) |