| 1 | #!/bin/sh
 | 
|---|
| 2 | 
 | 
|---|
| 3 | # plfs-config 
 | 
|---|
| 4 | 
 | 
|---|
| 5 | # Cross-LFS Build Options 
 | 
|---|
| 6 | #-----------------------------------------------
 | 
|---|
| 7 | #
 | 
|---|
| 8 | # Last Modified
 | 
|---|
| 9 | #       By     :        $LastChangedBy$
 | 
|---|
| 10 | #       Date   :        $LastChangedDate$
 | 
|---|
| 11 | #       Rev No :        $LastChangedRevision$
 | 
|---|
| 12 | #
 | 
|---|
| 13 | 
 | 
|---|
| 14 | #-----------------------------
 | 
|---|
| 15 | # Build configuration options
 | 
|---|
| 16 | #-----------------------------
 | 
|---|
| 17 | 
 | 
|---|
| 18 | # Set LFS to suit your tree.
 | 
|---|
| 19 | # (ie the mountpoint where your final partition resides)
 | 
|---|
| 20 | export LFS=/mnt/lfs
 | 
|---|
| 21 | 
 | 
|---|
| 22 | # Set to where you will install the tools
 | 
|---|
| 23 | # that are to run on the host.
 | 
|---|
| 24 | # This will include the cross compiler
 | 
|---|
| 25 | export HST_TOOLS=/home/lfs
 | 
|---|
| 26 | 
 | 
|---|
| 27 | # Set this to the location where the target tools
 | 
|---|
| 28 | # are to be installed
 | 
|---|
| 29 | export TGT_TOOLS=/tgt-tools
 | 
|---|
| 30 | 
 | 
|---|
| 31 | # Set SRC for your sourcedir, TARBALLS for where you store
 | 
|---|
| 32 | #  your tarballs
 | 
|---|
| 33 | 
 | 
|---|
| 34 | export SRC=/home/lfs/src
 | 
|---|
| 35 | export TARBALLS=/mnt/tarballs
 | 
|---|
| 36 | export PATCHES=/home/lfs/cross-lfs/patches
 | 
|---|
| 37 | export SCRIPTS=/home/lfs/cross-lfs/scripts
 | 
|---|
| 38 | export CONFIGS=/home/lfs/cross-lfs/configs
 | 
|---|
| 39 | 
 | 
|---|
| 40 | # Logging
 | 
|---|
| 41 | # Set for base of logging tree
 | 
|---|
| 42 | export LOGS=/home/lfs/logs/ppc750
 | 
|---|
| 43 | 
 | 
|---|
| 44 | export CONFLOGS=${LOGS}/conflogs
 | 
|---|
| 45 | export BUILDLOGS=${LOGS}/buildlogs
 | 
|---|
| 46 | export INSTLOGS=${LOGS}/instlogs
 | 
|---|
| 47 | export TESTLOGS=${LOGS}/testlogs
 | 
|---|
| 48 | 
 | 
|---|
| 49 | # Set your timezone and locale
 | 
|---|
| 50 | export TZ="Australia/Melbourne"
 | 
|---|
| 51 | export LC_ALL="en_AU"
 | 
|---|
| 52 | 
 | 
|---|
| 53 | # Set your umask
 | 
|---|
| 54 | umask 0022
 | 
|---|
| 55 | 
 | 
|---|
| 56 | #---------------
 | 
|---|
| 57 | # Cross Options
 | 
|---|
| 58 | #---------------
 | 
|---|
| 59 | 
 | 
|---|
| 60 | # set to the target architecture
 | 
|---|
| 61 | export TGT_ARCH=powerpc
 | 
|---|
| 62 | export TGT_CFLAGS="-mpowerpc -mcpu=750 -mtune=750"
 | 
|---|
| 63 | # Set to the target architectures target-triple
 | 
|---|
| 64 | export TARGET=powerpc-mac-linux-gnu
 | 
|---|
| 65 | 
 | 
|---|
| 66 | # set to the target-triple for the host we are building on
 | 
|---|
| 67 | # TODO: This should be set by uname
 | 
|---|
| 68 | export HOST=x86_64-pc-linux-gnu
 | 
|---|
| 69 | # This most of the time will be the same as ${HOST}
 | 
|---|
| 70 | export BUILD=${HOST}
 | 
|---|
| 71 | 
 | 
|---|
| 72 | # define to the default arch to place into */lib
 | 
|---|
| 73 | # This is NOT necessarily the compilers default.
 | 
|---|
| 74 | # Valid values are 31 (s390), 32 and 64
 | 
|---|
| 75 | export LIBDIRENV=32
 | 
|---|
| 76 | 
 | 
|---|
| 77 | # define to what you want to be the default environment for
 | 
|---|
| 78 | # this system.
 | 
|---|
| 79 | export DEFAULTENV=32
 | 
|---|
| 80 | 
 | 
|---|
| 81 | #---------------
 | 
|---|
| 82 | # Build Options
 | 
|---|
| 83 | #---------------
 | 
|---|
| 84 | 
 | 
|---|
| 85 | # PARALLEL MAKE FLAGS
 | 
|---|
| 86 | #---------------------
 | 
|---|
| 87 | # Set to the desired level of parallelism.
 | 
|---|
| 88 | # eg PMFLAGS="-j 4"
 | 
|---|
| 89 | # If undesired, just set to an empty string.
 | 
|---|
| 90 | #
 | 
|---|
| 91 | export PMFLAGS="-j 4"
 | 
|---|
| 92 | 
 | 
|---|
| 93 | # KERNEL HEADERS
 | 
|---|
| 94 | #----------------
 | 
|---|
| 95 | # Set to "Y" to use sanitised headers for building userspace
 | 
|---|
| 96 | # against. Expects linux-libc-headers
 | 
|---|
| 97 | export USE_SANITISED_HEADERS=Y
 | 
|---|
| 98 | 
 | 
|---|
| 99 | # GCC
 | 
|---|
| 100 | #-----
 | 
|---|
| 101 | # Change the following to Y if you would like
 | 
|---|
| 102 | # to build gcc without bootstrap for ch5 and 6
 | 
|---|
| 103 | # shared builds ( save a few cycles :-) )
 | 
|---|
| 104 | export NOBOOTSTRAP=N
 | 
|---|
| 105 | 
 | 
|---|
| 106 | # Change the following to Y if you would like
 | 
|---|
| 107 | # to build the final gcc with version specific runtime libs.
 | 
|---|
| 108 | export USE_VER_SPEC_RT_LIBS=Y
 | 
|---|
| 109 | 
 | 
|---|
| 110 | # Change the following to Y if you would like
 | 
|---|
| 111 | # to build the final gcc with a program suffix
 | 
|---|
| 112 | export USE_PROGRAM_SUFFIX=Y
 | 
|---|
| 113 | 
 | 
|---|
| 114 | # Change the following to Y if you want to use the
 | 
|---|
| 115 | # Native Posix Thread Library instead of linuxthreads.
 | 
|---|
| 116 | export USE_NPTL=Y
 | 
|---|
| 117 | 
 | 
|---|
| 118 | # Are we building a multi-arch toolchain
 | 
|---|
| 119 | export MULTIARCH=N
 | 
|---|
| 120 | 
 | 
|---|
| 121 | # MISC
 | 
|---|
| 122 | #------
 | 
|---|
| 123 | # enable to build readline (and build bash against readline) for
 | 
|---|
| 124 | # target-native build
 | 
|---|
| 125 | export USE_READLINE=Y
 | 
|---|
| 126 | 
 | 
|---|
| 127 | # enable to use hotplug
 | 
|---|
| 128 | export USE_HOTPLUG=Y
 | 
|---|
| 129 | 
 | 
|---|
| 130 | # BOOTLOADERS
 | 
|---|
| 131 | #-------------
 | 
|---|
| 132 | # set only one of the following to "Y"
 | 
|---|
| 133 | export USE_LILO=N
 | 
|---|
| 134 | 
 | 
|---|
| 135 | # DEVICES
 | 
|---|
| 136 | #---------
 | 
|---|
| 137 | # Choose method for handling devices.
 | 
|---|
| 138 | #
 | 
|---|
| 139 | # Build will default to using MAKEDEV if nothing is selected here.
 | 
|---|
| 140 | #
 | 
|---|
| 141 | # Set either UDEV to Y for utilising udev (2.5/2.6 kernels only)
 | 
|---|
| 142 | # or DEVFS to Y for using devfs (2.4 kernels, deprecated 2.5 and 2.6)
 | 
|---|
| 143 | #
 | 
|---|
| 144 | export UDEV=Y
 | 
|---|
| 145 | export DEVFS=N
 | 
|---|
| 146 | 
 | 
|---|