diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-04-25 10:02:34 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-04-25 10:02:34 +0000 |
commit | 6221a3f6ce513e1ca73e1716c1d45e98807f684a (patch) | |
tree | 0ec49a760e2eda3d0119590e77d736a29bd0a470 | |
parent | 03825e79da5b092d3cc19afc97a6db0b22e3a8dc (diff) | |
download | poky-6221a3f6ce513e1ca73e1716c1d45e98807f684a.tar.gz |
README.host.sdk: start documenting toolchain usage
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1548 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r-- | README.host.sdk | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/README.host.sdk b/README.host.sdk new file mode 100644 index 0000000000..cb05f76f00 --- /dev/null +++ b/README.host.sdk | |||
@@ -0,0 +1,49 @@ | |||
1 | Using Poky generated host SDK | ||
2 | ============================= | ||
3 | |||
4 | How to build host SDK | ||
5 | ==== | ||
6 | |||
7 | You need to setup Poky and then run one command: | ||
8 | |||
9 | $ bitbake meta-toolchain | ||
10 | |||
11 | Result would be tarball in tmp/deploy/sdk/ with everything needed to build for | ||
12 | your target device. Unpack this in / directory - toolchain will reside in | ||
13 | /usr/local/poky/arm/ dir. | ||
14 | |||
15 | Usage of SDK | ||
16 | ===== | ||
17 | |||
18 | First add toolchain into PATH: | ||
19 | |||
20 | $ export PATH=/usr/local/poky/arm/bin/:$PATH | ||
21 | |||
22 | Compiler is 'arm-poky-linux-gnueabi-gcc'. Building 'helloworld' example is | ||
23 | simple: | ||
24 | |||
25 | $ arm-poky-linux-gnueabi-gcc hello.c -o hello | ||
26 | $ file hello | ||
27 | hello: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux 2.6.14, dynamically linked (uses shared libs), not stripped | ||
28 | |||
29 | Autotools and SDK | ||
30 | ====== | ||
31 | |||
32 | 'Configure' scripts allow to specify Host, Target, Build architecture. To build | ||
33 | with Poky SDK you need to specify: | ||
34 | |||
35 | ./configure --target=arm-poky-linux-gnueabi --host=arm-poky-linux-gnueabi | ||
36 | |||
37 | |||
38 | Using packages from Poky | ||
39 | ======== | ||
40 | |||
41 | During development it is often situation that we want to use some libraries | ||
42 | which are available in Poky build. Their packages need to be unpacked to | ||
43 | /usr/local/poky/arm/arm-poky-linux-gnueabi/ directory. | ||
44 | |||
45 | For example to add libiw (from wireless-tools package) you need to unpack two | ||
46 | packages: | ||
47 | |||
48 | libiw29_29-pre20-r0_armv5te.ipk | ||
49 | libiw-dev_29-pre20-r0_armv5te.ipk | ||