From owner-svn-soc-all@FreeBSD.ORG Thu Jun 26 12:50:02 2014 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C533966A for ; Thu, 26 Jun 2014 12:50:02 +0000 (UTC) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9902B2550 for ; Thu, 26 Jun 2014 12:50:02 +0000 (UTC) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.8/8.14.8) with ESMTP id s5QCo2sg090077 for ; Thu, 26 Jun 2014 12:50:02 GMT (envelope-from estaszuk@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.8/8.14.8/Submit) id s5QCo1BM089894 for svn-soc-all@FreeBSD.org; Thu, 26 Jun 2014 12:50:01 GMT (envelope-from estaszuk@FreeBSD.org) Date: Thu, 26 Jun 2014 12:50:01 GMT Message-Id: <201406261250.s5QCo1BM089894@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to estaszuk@FreeBSD.org using -f From: estaszuk@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r270074 - soc2014/estaszuk/microblaze-head/head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jun 2014 12:50:02 -0000 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=