Cross-Compiled Linux from Scratch

Cross-Compiled Linux from Scratch

Cross-Compiled Linux From Scratch Version 2.0.0-PowerPC Cross-Compiled Linux From Scratch: Version 2.0.0-PowerPC Copyright © 2005–2013 Joe Ciccone, Jim Gifford & Ryan Oliver Based on LFS, Copyright © 1999–2013 Gerard Beekmans Copyright © 2005-2013, Joe Ciccone, Jim Gifford, & Ryan Oliver All rights reserved. This material may be distributed only subject to the terms and conditions set forth in the Open Publication License v1.0 or later (the latest version is presently available at http://www.opencontent.org/openpub/). Linux® is a registered trademark of Linus Torvalds. This book is based on the "Linux From Scratch" book, that was released under the following license: Copyright © 1999–2013, Gerard Beekmans All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: • Redistributions in any form must retain the above copyright notice, this list of conditions and the following disclaimer • Neither the name of “Linux From Scratch” nor the names of its contributors may be used to endorse or promote products derived from this material without specific prior written permission • Any material derived from Linux From Scratch must contain a reference to the “Linux From Scratch” project THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Cross-Compiled Linux From Scratch - Version 2.0.0-PowerPC Table of Contents Preface ...................................................................................................................................................................... viii i. Foreword ......................................................................................................................................................... viii ii. Audience ........................................................................................................................................................ viii iii. Prerequisites ................................................................................................................................................... ix iv. Host System Requirements ............................................................................................................................. x v. Typography ...................................................................................................................................................... xi vi. Structure ......................................................................................................................................................... xii vii. Errata ........................................................................................................................................................... xiii I. Introduction ............................................................................................................................................................. 1 1. Introduction ....................................................................................................................................................... 2 1.1. Cross-LFS Acknowledgements ............................................................................................................... 2 1.2. How to Build a CLFS System ................................................................................................................ 3 1.3. Master Changelog .................................................................................................................................... 4 1.4. Changelog for PowerPC ........................................................................................................................ 12 1.5. Resources ............................................................................................................................................... 12 1.6. Help ........................................................................................................................................................ 13 II. Preparing for the Build ........................................................................................................................................ 15 2. Preparing a New Partition .............................................................................................................................. 16 2.1. Introduction ............................................................................................................................................ 16 2.2. Creating a New Partition ....................................................................................................................... 16 2.3. Creating a File System on the Partition ................................................................................................ 16 2.4. Mounting the New Partition .................................................................................................................. 17 3. Packages and Patches ..................................................................................................................................... 19 3.1. Introduction ............................................................................................................................................ 19 3.2. All Packages .......................................................................................................................................... 19 3.3. Additional Packages for PowerPC ........................................................................................................ 25 3.4. Needed Patches ...................................................................................................................................... 26 3.5. Additional Patches for PowerPC ........................................................................................................... 27 4. Final Preparations ........................................................................................................................................... 29 4.1. About ${CLFS} ..................................................................................................................................... 29 4.2. Creating the ${CLFS}/tools Directory .................................................................................................. 29 4.3. Creating the ${CLFS}/cross-tools Directory ........................................................................................ 30 4.4. Adding the CLFS User ......................................................................................................................... 30 4.5. Setting Up the Environment .................................................................................................................. 31 4.6. About the Test Suites ............................................................................................................................ 32 III. Make the Cross-Compile Tools ......................................................................................................................... 33 5. Constructing Cross-Compile Tools ................................................................................................................ 34 5.1. Introduction ............................................................................................................................................ 34 5.2. Build CFLAGS ...................................................................................................................................... 34 5.3. Build Variables ...................................................................................................................................... 35 5.4. Linux-Headers-3.4.17 ............................................................................................................................ 36 5.5. File-5.11 ................................................................................................................................................. 37 5.6. M4-1.4.16 ............................................................................................................................................... 38 5.7. Ncurses-5.9 ............................................................................................................................................ 39 5.8. GMP-5.0.5 .............................................................................................................................................. 40 iii Cross-Compiled Linux From Scratch - Version 2.0.0-PowerPC 5.9. MPFR-3.1.1 ............................................................................................................................................ 41 5.10. MPC-1.0.1 ...........................................................................................................................................

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    314 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us