Skip to content

Commit

Permalink
README.md fixes... again
Browse files Browse the repository at this point in the history
  • Loading branch information
mlouiset committed Sep 11, 2014
1 parent 176f977 commit d405b9a
Showing 1 changed file with 21 additions and 27 deletions.
48 changes: 21 additions & 27 deletions README.md
Expand Up @@ -55,19 +55,19 @@ It requires a few configuration in order to run:


Define APU building environment: Define APU building environment:
-------------------------------- --------------------------------
- Define APU_HOME environment variable (for instance in your .bashrc file) - Define APU_HOME environment variable (for instance in your .bashrc file)
```sh ```sh
export APU_HOME=/usr/local/src/ong/dev-tools/apu-tools/ export APU_HOME=/usr/local/src/ong/dev-tools/apu-tools/
``` ```
- Add APU_HOME to your PATH - Add APU_HOME to your PATH
```sh ```sh
export PATH=$PATH:$APU_HOME export PATH=$PATH:$APU_HOME
``` ```
- Create a folder so called ".apu" in your homedir - Create a folder so called ".apu" in your homedir
```sh ```sh
$ mkdir $HOME/.apu/ $ mkdir $HOME/.apu/
``` ```
- and add file $HOME/.apu/apu-tools.conf with following content: - and add file $HOME/.apu/apu-tools.conf with following content:




```sh ```sh
Expand All @@ -78,7 +78,7 @@ HOST_ARCH="x86"
NEXUS_BASE=http://$NEXUS_SRV_ADDR:$NEXUS_SRV_PORT/nexus NEXUS_BASE=http://$NEXUS_SRV_ADDR:$NEXUS_SRV_PORT/nexus
``` ```


- Don't forget to source your .bashrc file if you've changed it. - Don't forget to source your .bashrc file if you've changed it.


Compiling for CentOs: Compiling for CentOs:
===================== =====================
Expand All @@ -95,28 +95,26 @@ Cross-compiling for Raspberry Pi B (rpib):
------------------------------------------ ------------------------------------------
Toolchain to use is provided with "poky-eglibc-i686-arm-toolchain-1.4.1.sh", Toolchain to use is provided with "poky-eglibc-i686-arm-toolchain-1.4.1.sh",
for Raspberry Pi B for Raspberry Pi B
1. install the toolchain in $HOME/toolchains/poky/1.4.1/ - Install the toolchain in $HOME/toolchains/poky/1.4.1/
2. Create the path $HOME/.apu/toolchains/org/yoctoproject/toolchain-poky-eglibc-arm/1.4.1/ - Create the path $HOME/.apu/toolchains/org/yoctoproject/toolchain-poky-eglibc-arm/1.4.1/
and add file toolchain.cfg in it, with the following content: and add file toolchain.cfg in it, with the following content:

```sh ```sh
export TOOLCHAIN_HOME=$HOME/toolchains/poky/1.4.1/ export TOOLCHAIN_HOME=$HOME/toolchains/poky/1.4.1/
export PATH=$TOOLCHAIN_HOME/sysroots/i686-pokysdk-linux/usr/bin/armv6-vfp-poky-linux-gnueabi:$PATH export PATH=$TOOLCHAIN_HOME/sysroots/i686-pokysdk-linux/usr/bin/armv6-vfp-poky-linux-gnueabi:$PATH
``` ```

- Go to the source directory:
3. Go to the source directory:
```sh ```sh
$ cd /usr/local/src/ong/targets/target-cross-rpib $ cd /usr/local/src/ong/targets/target-cross-rpib
``` ```
4. Generate the APU file: - Generate the APU file:
```sh ```sh
$ apu-make install noarch $ apu-make install noarch
``` ```
5. Install the APU file: - Install the APU file:
```sh ```sh
$ apu-make install-target rpib $ apu-make install-target rpib
``` ```
6. Then, you can build the ONG for rpbi - Then, you can build the ONG for rpbi
```sh ```sh
$ cd /usr/local/src/ong/ $ cd /usr/local/src/ong/
$ ./build_ong.sh rpib $ ./build_ong.sh rpib
Expand All @@ -126,29 +124,27 @@ $ ./build_ong.sh rpib
Cross-compiling for "Connected Object" v2 (cov2): Cross-compiling for "Connected Object" v2 (cov2):
------------------------------------------------- -------------------------------------------------
Toolchain to use is provided with "gcc_4.5.1.tar.bz2", for ARM 920T Toolchain to use is provided with "gcc_4.5.1.tar.bz2", for ARM 920T
1. Install the toolchain in $HOME/toolchains/cov2/4.5.1/ - Install the toolchain in $HOME/toolchains/cov2/4.5.1/
2. Create the path - Create the path
$HOME/.apu/toolchains/com/actility/m2m/toolchain-arm-none-linux-gnueabi/4.5.1/ $HOME/.apu/toolchains/com/actility/m2m/toolchain-arm-none-linux-gnueabi/4.5.1/
and add file toolchain.cfg in it, with the following content: and add file toolchain.cfg in it, with the following content:

```sh ```sh
export TOOLCHAIN_HOME=$HOME/toolchains/cov2/4.5.1/ export TOOLCHAIN_HOME=$HOME/toolchains/cov2/4.5.1/
export PATH=$TOOLCHAIN_HOME/bin:$PATH export PATH=$TOOLCHAIN_HOME/bin:$PATH
``` ```

- Go to the source directory:
3. Go to the source directory:
```sh ```sh
$ cd /usr/local/src/ong/targets/target-cross-cov2 $ cd /usr/local/src/ong/targets/target-cross-cov2
``` ```
4. Generate the APU file: - Generate the APU file:
```sh ```sh
$ apu-make install noarch $ apu-make install noarch
``` ```
5. Install the APU file: - Install the APU file:
```sh ```sh
$ apu-make install-target cov2 $ apu-make install-target cov2
``` ```
6. Then, you can build the ONG for cov2 - Then, you can build the ONG for cov2
```sh ```sh
$ cd /usr/local/src/ong/ $ cd /usr/local/src/ong/
$ ./build_ong.sh cov2 $ ./build_ong.sh cov2
Expand All @@ -159,25 +155,23 @@ Cross-compiling for centos6-x86 under centos6-x86_64:
----------------------------------------------------- -----------------------------------------------------
You may also want to install a 64bits OS, but need to cross-compile for 32bits target. You may also want to install a 64bits OS, but need to cross-compile for 32bits target.
To do that, you'll need to generate and install the target-cross-centos6-x86 APU: To do that, you'll need to generate and install the target-cross-centos6-x86 APU:

- Go to the source directory:
1. Go to the source directory:
```sh ```sh
$ cd /usr/local/src/ong/targets/target-cross-centos6-x86 $ cd /usr/local/src/ong/targets/target-cross-centos6-x86
``` ```
2. Generate the APU file: - Generate the APU file:
```sh ```sh
$ apu-make install noarch $ apu-make install noarch
``` ```
3. Install the APU file: - Install the APU file:
```sh ```sh
$ apu-make install-target cross-centos6-x86 $ apu-make install-target cross-centos6-x86
``` ```
4. Then, you can build the ONG for centos6-x86 - Then, you can build the ONG for centos6-x86
```sh ```sh
$ cd /usr/local/src/ong/ $ cd /usr/local/src/ong/
$ ./build_ong.sh centos6-x86 $ ./build_ong.sh centos6-x86
``` ```







0 comments on commit d405b9a

Please sign in to comment.