summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2007-04-25 10:02:34 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2007-04-25 10:02:34 +0000
commit6221a3f6ce513e1ca73e1716c1d45e98807f684a (patch)
tree0ec49a760e2eda3d0119590e77d736a29bd0a470
parent03825e79da5b092d3cc19afc97a6db0b22e3a8dc (diff)
downloadopenembedded-core-6221a3f6ce513e1ca73e1716c1d45e98807f684a.tar.gz
openembedded-core-6221a3f6ce513e1ca73e1716c1d45e98807f684a.tar.bz2
openembedded-core-6221a3f6ce513e1ca73e1716c1d45e98807f684a.tar.xz
openembedded-core-6221a3f6ce513e1ca73e1716c1d45e98807f684a.zip
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.sdk49
1 files changed, 49 insertions, 0 deletions
diff --git a/README.host.sdk b/README.host.sdk
new file mode 100644
index 000000000..cb05f76f0
--- /dev/null
+++ b/README.host.sdk
@@ -0,0 +1,49 @@
+Using Poky generated host SDK
+=============================
+
+How to build host SDK
+====
+
+You need to setup Poky and then run one command:
+
+$ bitbake meta-toolchain
+
+Result would be tarball in tmp/deploy/sdk/ with everything needed to build for
+your target device. Unpack this in / directory - toolchain will reside in
+/usr/local/poky/arm/ dir.
+
+Usage of SDK
+=====
+
+First add toolchain into PATH:
+
+$ export PATH=/usr/local/poky/arm/bin/:$PATH
+
+Compiler is 'arm-poky-linux-gnueabi-gcc'. Building 'helloworld' example is
+simple:
+
+$ arm-poky-linux-gnueabi-gcc hello.c -o hello
+$ file hello
+hello: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux 2.6.14, dynamically linked (uses shared libs), not stripped
+
+Autotools and SDK
+======
+
+'Configure' scripts allow to specify Host, Target, Build architecture. To build
+with Poky SDK you need to specify:
+
+./configure --target=arm-poky-linux-gnueabi --host=arm-poky-linux-gnueabi
+
+
+Using packages from Poky
+========
+
+During development it is often situation that we want to use some libraries
+which are available in Poky build. Their packages need to be unpacked to
+/usr/local/poky/arm/arm-poky-linux-gnueabi/ directory.
+
+For example to add libiw (from wireless-tools package) you need to unpack two
+packages:
+
+libiw29_29-pre20-r0_armv5te.ipk
+libiw-dev_29-pre20-r0_armv5te.ipk