File:  [ELWIX - Embedded LightWeight unIX -] / elwix / BUILD.txt
Revision 1.5.2.1: download - view: text, annotated - select for diffs - revision graph
Mon Nov 21 17:25:33 2016 UTC (7 years, 7 months ago) by misho
Branches: elwix2_3
Diff to: branchpoint 1.5: preferred, unified
adds verbosity and explanation

    1:  -= How-to build ELWIX system project =-
    2: =========================================
    3: $Id: BUILD.txt,v 1.5.2.1 2016/11/21 17:25:33 misho Exp $
    4: =========================================
    5: 
    6:  I. Intro
    7:  	Before starting any work on ELWIX must we prepare environment.
    8: 
    9: What this means ::
   10:  - We must downloading freebsd sources from CVS/SVN repository and put on separate place from /usr/src.
   11: Set in config/rc.elwix variable BSDSRC="..." with place where you get freebsd sources.
   12:  - We gather from ELWIX CVS repository kodicom_mux project. After this we need to patch our freebsd
   13: sources like that "cd <where you put freebsd sources>; patch -p0 < <kodicom_mux/contrib/kodicom.patch>"
   14:  - We must checkout from ELWIX CVS repository core libraries "libait*" , "embedtools", "embedaddons" 
   15: and GPLv2 "gpl/*" projects
   16:  - Optional download of 3th party software for ELWIX firmware. Project name is embedaddon from ELWIX CVS
   17: 
   18:  II. Build system process
   19:  	1. Init build structures with clean directory tree
   20: 		./build_init.sh <filename of project config>
   21: 	2. Cross compile entire userland software
   22: 		./build_world.sh
   23: 	3. Cross compile ELWIX kernel
   24: 		./build_kernel.sh
   25: 	4. Cross compile ELWIX tools
   26: 		./build_tools.sh
   27: 	5. Cross compile optional 3th party software 
   28: 		./build_3thparty.sh
   29: ---------------------------------------------------------------------------------
   30: 	6. Now is moment for build BaseFS ELWIX system
   31: 		./build_base.sh
   32: ---------------------------------------------------------------------------------
   33: 	7. Moment comes for build big system binary and inject rootfs image into kernel
   34: 		./build_rootfs.sh
   35: 	8. Make romfs image and build big fat second stage firmware image
   36: 		./build_romfs.sh
   37: 	9. Now is moment for build RootFS ELWIX system
   38: 		./build_fs.sh
   39: ---------------------------------------------------------------------------------
   40: 
   41:  Ok, now we did ELWIX version and placed to build/release directory like tar.gz file
   42: 
   43:  Example of produced tar balls::
   44:  	ELWIX_X.X_target_{base|rootfs|rootfsext}_size_arch_date.tar.gz
   45: 
   46:  III. Build storage image
   47: 
   48:  IV. Information
   49: 	For more information
   50:  	Michael Pounov <misho@elwix.org> or <support@elwix.org>
   51: 
   52:  Best regards
   53:    Michael Pounov
   54: -----
   55: ELWIX - Embedded LightWeight unIX -

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>