README.host.sdk 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. Using Poky generated host SDK
  2. =============================
  3. How to build host SDK
  4. ====
  5. You need to setup Poky and then run one command:
  6. $ bitbake meta-toolchain
  7. Result would be tarball in tmp/deploy/sdk/ with everything needed to build for
  8. your target device. Unpack this in / directory - toolchain will reside in
  9. /usr/local/poky/arm/ dir.
  10. Usage of SDK
  11. =====
  12. First add toolchain into PATH:
  13. $ export PATH=/usr/local/poky/arm/bin/:$PATH
  14. Compiler is 'arm-poky-linux-gnueabi-gcc'. Building 'helloworld' example is
  15. simple:
  16. $ arm-poky-linux-gnueabi-gcc hello.c -o hello
  17. $ file hello
  18. hello: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux 2.6.14, dynamically linked (uses shared libs), not stripped
  19. Autotools and SDK
  20. ======
  21. 'Configure' scripts allow to specify Host, Target, Build architecture. To build
  22. with Poky SDK you need to specify:
  23. ./configure --target=arm-poky-linux-gnueabi --host=arm-poky-linux-gnueabi
  24. Using packages from Poky
  25. ========
  26. During development it is often situation that we want to use some libraries
  27. which are available in Poky build. Their packages need to be unpacked to
  28. /usr/local/poky/arm/arm-poky-linux-gnueabi/ directory.
  29. For example to add libiw (from wireless-tools package) you need to unpack two
  30. packages:
  31. libiw29_29-pre20-r0_armv5te.ipk
  32. libiw-dev_29-pre20-r0_armv5te.ipk
  33. Copyright (C) 2006-2007 OpenedHand Ltd.