1
0

README.config 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. -- Perl configuration --
  2. Perl uses a huge configuration file, normally generated via the Configure script
  3. at build-time. This fails when cross-compiling though, so we need to supply our
  4. own.
  5. We're using perlconfig.pl to piece together the final configuration from a bunch
  6. of configuration files(all ending in .config). Please refer to perlconfig.pl's
  7. POD for information on usage and syntax.
  8. Throughout the files, you will see a bunch of references to private symbols with
  9. the prefix "owrt". These are used to control output in an effort to both
  10. simplify writing configuration files, as well as to provide switchable options
  11. to select the feature set of the resulting perl installation.
  12. The following will be a summary/quick reference of all private symbols we're
  13. currently using:
  14. Passed via architecture configuration file(mipsel.config, i486.config, ...)
  15. ---------------------------------------------------------------------------
  16. Symbol Values Description
  17. owrt:bits 32/64 Target's native word length.
  18. owrt:endian little/big Target's endianness.
  19. owrt:arch mipsel, i486, ... Target's architecture name.
  20. owrt:sig_count 64/128 Number of signals the target
  21. provides(NSIG - 1).
  22. owrt:sigs * Symbolic names of the first 32 signals
  23. this architecture provides, in numeric
  24. order. Separated by whitespaces.
  25. owrt:sig_name_extra * Symbolic names of any additional signals
  26. this architecture provides after
  27. owrt:sig_count. Separated by
  28. whitespaces.
  29. owrt:sig_num_extra * Numeric values associated with the
  30. signal names provided in
  31. owrt:sig_name_extra. Separated by
  32. whitespaces.
  33. Passed via command line
  34. -----------------------
  35. Symbol Values Description
  36. owrt:libc glibc/uclibc/musl Which C library implementation is in
  37. use.
  38. owrt:threads yes/no Whether to enable threading support.
  39. owrt:ipv6 define/undef Whether to enable IPv6 support.
  40. owrt:target_cross * Target architecture's host triplet.
  41. owrt:target_cc * C compiler to use.
  42. owrt:gccversion * target_cc's version number.
  43. owrt:cflags * Additional C compiler flags.
  44. owrt:ldflags * Additional linker flags.
  45. owrt:staging_dir * Same as OpenWRT buildroot's
  46. $(STAGING_DIR).
  47. owrt:host_perl_prefix * host-perl installation prefix.
  48. Passed via version.config
  49. -------------------------
  50. Symbol Values Description
  51. owrt:perllibpath * Path to perl library files, from the
  52. target's point of view.