Changes between Version 4 and Version 5 of PortingSoftware
- Timestamp:
- 2014-05-12T12:16:57Z (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PortingSoftware
v4 v5 43 43 == Coastline == 44 44 45 Currently, Coastline is hosted as a separate Git [https://github.com/vhotspur/coastline repository on GitHub].46 45 47 46 Coastline is a set of scripts that allows the developer porting software to HelenOS capture the porting process in a reasonable way. … … 50 49 Use of Coastline means that the porting process is reproducible and it also allows to factor our common routines. 51 50 51 Coastline is hosted as a Bazaar repository that can be [source:coastline browsed on-line]. 52 To clone the repository, issue the following command: 53 54 {{{ 55 brz branch bzr://helenos.org/coastline 56 }}} 57 52 58 When the developer uses the Coastline, he is working with 3 directories. 53 59 The first one is the directory with Coastline checkout, in the scripts referred to as `HSCT_HOME`. 54 60 Second one is the build directory where the building happens. 55 61 And the last one is directory with HelenOS sources (`HSCT_HELENOS_ROOT`). 62 63 The following text assumes that following variables point to different directories where you have check-out of the Coastline and HelenOS mainline and also a build directory. 64 65 {{{ 66 HSCT_HOME=~/helenos/coastline 67 HSCT_HELENOS_ROOT=~/helenos/mainline 68 BUILD_DIR=~/helenos/coast-build-ia32 69 }}} 56 70 57 71 The build directory needs to be initialized first. … … 62 76 63 77 {{{ 64 $HSCT_HOME/hsct.sh init /path/to/HelenOS/source/tree 78 cd $BUILD_DIR 79 $HSCT_HOME/hsct.sh init $HSCT_HELENOS_ROOT 65 80 }}} 66 81 67 82 If you specify a profile (e.g. `ia32`) as a third argument, the initialization would prepare the build directory for that profile. 68 83 Specifying the word `build` as a last (fourth) argument would force a complete rebuild for the specified profile. 84 To avoid surprises from non-standard configuration, the recommended practice is to always forcefully rebuild the profile when initializing the directory: 85 86 {{{ 87 cd $BUILD_DIR 88 $HSCT_HOME/hsct.sh init $HSCT_HELENOS_ROOT ia32 build 89 }}} 69 90 70 91 Once the directory is initialized, the user can build the ported software. … … 72 93 73 94 {{{ 74 hsct.sh build <package>95 $HSCT_HOME/hsct.sh build <package> 75 96 }}} 76 97 … … 82 103 83 104 {{{ 84 hsct.sh install <package>105 $HSCT_HOME/hsct.sh install <package> 85 106 }}} 86 107 … … 89 110 90 111 {{{ 91 hsct.sh archive <package>112 $HSCT_HOME/hsct.sh archive <package> 92 113 }}} 93 114