Date: Thu, 26 Jun 2014 12:50:01 GMT From: estaszuk@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r270074 - soc2014/estaszuk/microblaze-head/head Message-ID: <201406261250.s5QCo1BM089894@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: estaszuk Date: Thu Jun 26 12:50:01 2014 New Revision: 270074 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=270074 Log: Adding build instructions Added: soc2014/estaszuk/microblaze-head/head/BUILDING_MICROBLAZE Modified: soc2014/estaszuk/microblaze-head/head/src.conf Added: soc2014/estaszuk/microblaze-head/head/BUILDING_MICROBLAZE ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2014/estaszuk/microblaze-head/head/BUILDING_MICROBLAZE Thu Jun 26 12:50:01 2014 (r270074) @@ -0,0 +1,23 @@ +This file contains most recent instructions about +building current version of FreeBSD for microblaze target + +To begin a proper toolchain will be needed. Currently the easiest way to obtain +a toolchain is using a bash script './microblaze-gcc/build-toolchain.sh'. + +You can then put created install dir whatever you want it. +Next edit './src.conf' file and change 'MB-TOOLCHAIN' value to the path where +toolchain has been moved (remember about 'bin' subdirectory). + +After that type 'make kernel-toolchain' and wait to complete. This step currently +does not build microblaze toolchain, but will make some necessary tools for next +steps (config, etc.). + +Now it's time to set env value 'TARGET_ARCH' to 'microblaze'. + +You can change the MAKEOBJDIRPREFIX env if you do not want to use default directory +(/usr/obj/microblaze.microblaze). + +And finally this can be executed: +`make SRCCONF=${PWD}/src.conf buildkernel` + + Modified: soc2014/estaszuk/microblaze-head/head/src.conf ============================================================================== --- soc2014/estaszuk/microblaze-head/head/src.conf Thu Jun 26 12:26:09 2014 (r270073) +++ soc2014/estaszuk/microblaze-head/head/src.conf Thu Jun 26 12:50:01 2014 (r270074) @@ -1,3 +1,4 @@ +MB-TOOLCHAIN= /mnt/install3/bin WITHOUT_CLANG_IS_CC= yes WITHOUT_CRYPT= yes WITHOUT_WIRELESS= yes @@ -9,14 +10,14 @@ TARGET_ARCH= microblaze KERNCONF= MICROBLAZEDEF #KERN= RPI-B -CC= /mnt/install3/bin/mb-gcc -CXX= /mnt/install3/bin/mb-g++ -AS= /mnt/install3/bin/mb-as -LD= /mnt/install3/bin/mb-ld -AR= /mnt/install3/bin/mb-ar -NM= /mnt/install3/bin/mb-nm -OBJCOPY= /mnt/install3/bin/mb-objcopy -SIZE= /mnt/install3/bin/mb-size +CC= ${MB-TOOLCHAIN}/mb-gcc +CXX= ${MB-TOOLCHAIN}/mb-g++ +AS= ${MB-TOOLCHAIN}/mb-as +LD= ${MB-TOOLCHAIN}/mb-ld +AR= ${MB-TOOLCHAIN}/mb-ar +NM= ${MB-TOOLCHAIN}/mb-nm +OBJCOPY= ${MB-TOOLCHAIN}/mb-objcopy +SIZE= ${MB-TOOLCHAIN}/mb-size NO_WERROR=yes WERROR=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406261250.s5QCo1BM089894>