110-openwrt_targets.patch 2.2 KB

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