1
0

110-openwrt_targets.patch 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. From 9a83f8fb7c46215dfb8d6dc2e2cc612bc2a0fd01 Mon Sep 17 00:00:00 2001
  2. From: Eneas U de Queiroz <cote2004-github@yahoo.com>
  3. Date: Thu, 27 Sep 2018 08:30:24 -0300
  4. Subject: Add librecmc targets
  5. Targets are named: linux-$(CONFIG_ARCH)-librecmc
  6. Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
  7. --- /dev/null
  8. +++ b/Configurations/25-librecmc.conf
  9. @@ -0,0 +1,48 @@
  10. +## Openwrt "CONFIG_ARCH" matching targets.
  11. +
  12. +# The targets need to end in '-librecmc' for the AFALG patch to work
  13. +
  14. +my %targets = (
  15. + "librecmc" => {
  16. + template => 1,
  17. + CFLAGS => add("\$(LIBRECMC_OPTIMIZATION_FLAGS)"),
  18. + },
  19. + "linux-aarch64-librecmc" => {
  20. + inherit_from => [ "linux-aarch64", "librecmc" ],
  21. + },
  22. + "linux-arc-librecmc" => {
  23. + inherit_from => [ "linux-generic32", "librecmc" ],
  24. + },
  25. + "linux-arm-librecmc" => {
  26. + inherit_from => [ "linux-armv4", "librecmc" ],
  27. + },
  28. + "linux-armeb-librecmc" => {
  29. + inherit_from => [ "linux-armv4", "librecmc" ],
  30. + },
  31. + "linux-i386-librecmc" => {
  32. + inherit_from => [ "linux-x86", "librecmc" ],
  33. + },
  34. + "linux-mips-librecmc" => {
  35. + inherit_from => [ "linux-mips32", "librecmc" ],
  36. + },
  37. + "linux-mips64-librecmc" => {
  38. + inherit_from => [ "linux64-mips64", "librecmc" ],
  39. + },
  40. + "linux-mips64el-librecmc" => {
  41. + inherit_from => [ "linux64-mips64", "librecmc" ],
  42. + },
  43. + "linux-mipsel-librecmc" => {
  44. + inherit_from => [ "linux-mips32", "librecmc" ],
  45. + },
  46. + "linux-powerpc-librecmc" => {
  47. + inherit_from => [ "linux-ppc", "librecmc" ],
  48. + },
  49. + "linux-x86_64-librecmc" => {
  50. + inherit_from => [ "linux-x86_64", "librecmc" ],
  51. + },
  52. +
  53. +### Basic default option
  54. + "linux-generic32-librecmc" => {
  55. + inherit_from => [ "linux-generic32", "librecmc" ],
  56. + },
  57. +);