INSTALL 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Rogue Embedded Systems DDK for the Linux kernel.
  2. Copyright (C) Imagination Technologies Ltd. All rights reserved.
  3. ======================================================================
  4. This file covers how to build and install the Imagination Technologies
  5. Rogue DDK for the Linux kernel. For full details, see the relevant platform
  6. guide.
  7. Build System Environment Variables
  8. -------------------------------------------
  9. The Rogue DDK Build scripts depend on a number of environment variables
  10. being set-up before compilation or installation of DDK software can
  11. commence:
  12. $DISCIMAGE
  13. The DDK Build scripts install files to the location specified by the
  14. DISCIMAGE environment variable. To do so, they need to know where the
  15. target system image resides:
  16. $ export DISCIMAGE=/path/to/filesystem
  17. If you are building on the target system, you can set this to '/'.
  18. $KERNELDIR
  19. When building the Rogue DDK kernel module, the build needs access
  20. to the headers of the Linux kernel.
  21. If you are building on the target machine, you can set this as follows:
  22. $ export KERNELDIR=/usr/src/linux-headers-`uname -r`
  23. $CROSS_COMPILE
  24. If you intend on targeting a platform that is different from your build
  25. machine (e.g., if you are compiling on an x86 but targeting ARM) you need
  26. to set the CROSS_COMPILE variable so that the build system uses the correct
  27. compiler. For example:
  28. $ export CROSS_COMPILE=arm-linux-gnueabihf-
  29. Build and Install Instructions
  30. -------------------------------------------
  31. The Rogue DDK configures different target builds within directories under
  32. build/linux/.
  33. The most interesting build targets are:
  34. build Makes everything
  35. clobber Removes all binaries for all builds as well.
  36. install Runs the install script generated by the build.
  37. The following variables may be set on the command line to influence a build.
  38. BUILD The type of build being performed.
  39. Alternatives are release, timing or debug.
  40. To build for, change to the appropriate target directory, for example:
  41. $ cd rogue_km/build/linux/<platform>
  42. $ make BUILD=debug
  43. $ sudo -E make install BUILD=debug