110-openwrt_targets.patch 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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,52 @@
  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-generic32", "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-mips-openwrt" => {
  35. + inherit_from => [ "linux-mips32", "openwrt" ],
  36. + },
  37. + "linux-mips64-openwrt" => {
  38. + inherit_from => [ "linux64-mips64", "openwrt" ],
  39. + },
  40. + "linux-mips64el-openwrt" => {
  41. + inherit_from => [ "linux64-mips64", "openwrt" ],
  42. + },
  43. + "linux-mipsel-openwrt" => {
  44. + inherit_from => [ "linux-mips32", "openwrt" ],
  45. + },
  46. + "linux-powerpc-openwrt" => {
  47. + inherit_from => [ "linux-ppc", "openwrt" ],
  48. + },
  49. + "linux-powerpc64-openwrt" => {
  50. + inherit_from => [ "linux-ppc64", "openwrt" ],
  51. + perlasm_scheme => "linux64v2",
  52. + },
  53. + "linux-x86_64-openwrt" => {
  54. + inherit_from => [ "linux-x86_64", "openwrt" ],
  55. + },
  56. +
  57. +### Basic default option
  58. + "linux-generic32-openwrt" => {
  59. + inherit_from => [ "linux-generic32", "openwrt" ],
  60. + },
  61. +);