Developer-iscsi:local.conf

From foonas
Jump to: navigation, search

foonas-iscsi local.conf

This is a default foonas-iscsi local.conf that can be reused for different platforms for building from svn. You may want or need to change the DL_DIR variable to point to a more preferable location to store downloaded sources, and you must enter the machine name for your platform by modifying the MACHINE variable. In addition to this you may need to modify the BBFILES variable depending on where your foonas sources are installed. If you are building on multiple cores/CPUs then you will also want to uncomment and possibly modify the PARALLEL_MAKE variable, this should be configured to use the number of cores/CPUs + 1.

Note that this local.conf will only work for foonas-iscsi and not the other foonas distributions.

   # Use this to specify where BitBake should place the downloaded sources into
   DL_DIR = "${HOME}/sources"
   
   # Delete the line below. Then specify which .bb files to consider for
   # your build. Typically this will be something like BBFILES = "/path/to/openembedded/packages/*/*.bb"
   BBFILES = "/stuff/org.openembedded.dev/packages/*/*.bb"
   
   PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial"
   PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc:gcc-cross"
   PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}g++:gcc-cross"
   
   MACHINE = ""
   TARGET_OS = "linux"
   DISTRO = "foonas-iscsi"
   
   # So far, angstrom.conf sets ENABLE_BINARY_LOCALE_GENERATION
   # to generate binary locale packages at build time using qemu-native and
   # thereby guarantee i18n support on all devices. If your build breaks on 
   # qemu-native consider disabling ENABLE_BINARY_LOCALE_GENERATION (note that
   # this breaks i18n on devices with less than 128MB RAM) or installing
   # a working third-party qemu (e.g. provided by your distribution) and
   # adding qemu-native to ASSUME_PROVIDED. Caveat emptor, since third-party
   # qemus lack patches needed to work with various OE targets.
   # ENABLE_BINARY_LOCALE_GENERATION = "0"
   # ASSUME_PROVIDED += "qemu-native"
   
   MACHINE_KERNEL_VERSION = "2.6"
   
   # Uncomment one of these to build packages during the build process.
   # This is done automatically if you set DISTRO (see above)
   # INHERIT = "package_ipk"
   # INHERIT = "package_tar"
   # INHERIT += "insane"
   
   # Add the required image file system types below. Valid are jffs2, tar, cramfs and ext2
   
   # Uncomment this to disable the parse cache (not recommended).
   # CACHE = ""
   
   # Uncomment this if you want BitBake to emit debugging output
   # BBDEBUG = "yes"
   
   # Uncomment these two if you want BitBake to build images useful for debugging. 
   # Note that INHIBIT_PACKAGE_STRIP needs a package format to be defined.
   # Also note that OE now produces -dbg packages which contain debugging symbols.
   # DEBUG_BUILD = "1"
   # INHIBIT_PACKAGE_STRIP = "1"
   
   # Uncomment these to build a package such that you can use gprof to profile it.
   # NOTE: This will only work with 'linux' targets, not
   # 'linux-uclibc', as uClibc doesn't provide the necessary
   # object files.  Also, don't build glibc itself with these
   # flags, or it'll fail to build.
   #
   # PROFILE_OPTIMIZATION = "-pg"
   # SELECTED_OPTIMIZATION = "${PROFILE_OPTIMIZATION}"
   # LDFLAGS =+ "-pg"
   
   # Uncomment this to enable parallel make.
   # This allows make to spawn mutliple processes to take advantage of multiple 
   # processors. Useful on SMP machines. This may break some packages - we're
   # in the process of marking these so let us know if you find any.
   # PARALLEL_MAKE = "-j 3"
   
   # Uncomment this if you want BitBake to emit the log if a build fails.
   # BBINCLUDELOGS = "yes"
Personal tools