MrRockchip

shitwpa

Feb 9th, 2026
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.68 KB | None | 0 0
  1. diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
  2. index 743c8acd6..76f6ab6d2 100644
  3. --- a/wpa_supplicant/Makefile
  4. +++ b/wpa_supplicant/Makefile
  5. @@ -1,13 +1,63 @@
  6. BINALL=wpa_supplicant wpa_cli
  7.  
  8. ALL = $(BINALL)
  9. -ALL += systemd/wpa_supplicant.service
  10. -ALL += systemd/[email protected]
  11. -ALL += systemd/[email protected]
  12. -ALL += systemd/[email protected]
  13. -ALL += dbus/fi.w1.wpa_supplicant1.service
  14. -
  15. -EXTRA_TARGETS=dynamic_eap_methods
  16. +### ALL += systemd/wpa_supplicant.service
  17. +### ALL += systemd/[email protected]
  18. +### ALL += systemd/[email protected]
  19. +### ALL += systemd/[email protected]
  20. +### ALL += dbus/fi.w1.wpa_supplicant1.service
  21. +
  22. +### EXTRA_TARGETS=dynamic_eap_methods
  23. +
  24. +#LDFLAGS=-L/home/artix/my-floppy-distro/x86_64-linux-musl-cross/lib -L/home/artix/my-floppy-distro/x86_64-linux-musl-cross/x86_64-linux-musl/lib -static -Wl,--gc-sections -Wl,--strip-all
  25. +
  26. +#EXTRA_CFLAGS=-Os -ffunction-sections -fdata-sections -fno-unwind-tables -fno-asynchronous-unwind-tables -flto -fomit-frame-pointer -fmerge-all-constants -fno-stack-protector
  27. +
  28. +LDFLAGS = -L/home/artix/my-floppy-distro/x86_64-linux-musl-cross/lib \
  29. + -L/home/artix/my-floppy-distro/x86_64-linux-musl-cross/x86_64-linux-musl/lib \
  30. + -static \
  31. + -s \
  32. + -Wl,--gc-sections \
  33. + -Wl,--strip-all \
  34. + -Wl,--build-id=none \
  35. + -Wl,-z,norelro \
  36. + -Wl,--hash-style=sysv \
  37. + -Wl,--no-eh-frame-hdr \
  38. + -Wl,-z,noseparate-code \
  39. + -Wl,--no-undefined-version \
  40. + -Wl,--as-needed \
  41. + -Wl,--sort-common \
  42. + -Wl,--sort-section=alignment \
  43. + -Wl,--compress-debug-sections=none \
  44. + -Wl,--warn-common \
  45. + -Wl,--fatal-warnings \
  46. + -Wl,--discard-all \
  47. + -Wl,--discard-locals \
  48. + -Wl,--no-ld-generated-unwind-info \
  49. + -Wl,--orphan-handling=place \
  50. + -no-pie
  51. +
  52. +EXTRA_CFLAGS = -static \
  53. + -Os \
  54. + -s \
  55. + -ffunction-sections -fdata-sections \
  56. + -fno-unwind-tables -fno-asynchronous-unwind-tables \
  57. + -fno-stack-protector -fomit-frame-pointer \
  58. + -fmerge-all-constants -fno-ident \
  59. + -fno-math-errno \
  60. + -fno-unroll-loops \
  61. + -ffast-math \
  62. + -fno-plt \
  63. + -fvisibility=hidden \
  64. + -fno-exceptions \
  65. + -march=x86-64 \
  66. + -mtune=generic \
  67. + -fno-align-functions \
  68. + -fno-align-jumps \
  69. + -fno-align-loops \
  70. + -fno-align-labels
  71. +
  72. +EXTRA_TARGETS=""
  73.  
  74. CONFIG_FILE=.config
  75. include ../src/build.rules
  76. @@ -41,9 +91,9 @@ LIBS_p := $(LIBS)
  77. endif
  78. endif
  79.  
  80. -export LIBDIR ?= /usr/local/lib
  81. -export INCDIR ?= /usr/local/include
  82. -export BINDIR ?= /usr/local/sbin
  83. +export LIBDIR ?= /home/artix/my-floppy-distro/x86_64-linux-musl-cross/usr/lib
  84. +export INCDIR ?= /home/artix/my-floppy-distro/x86_64-linux-musl-cross/usr/include
  85. +export BINDIR ?= /home/artix/my-floppy-distro/x86_64-linux-musl-cross/sbin
  86. PKG_CONFIG ?= pkg-config
  87.  
  88. CFLAGS += $(EXTRA_CFLAGS)
  89. @@ -1321,15 +1371,15 @@ LIBS += -ltommath
  90. LIBS_p += -ltommath
  91. endif
  92. CONFIG_INTERNAL_AES=y
  93. -CONFIG_INTERNAL_DES=y
  94. +###CONFIG_INTERNAL_DES=y
  95. CONFIG_INTERNAL_SHA1=y
  96. -CONFIG_INTERNAL_MD4=y
  97. +###CONFIG_INTERNAL_MD4=y
  98. CONFIG_INTERNAL_MD5=y
  99. CONFIG_INTERNAL_SHA256=y
  100. -CONFIG_INTERNAL_SHA384=y
  101. -CONFIG_INTERNAL_SHA512=y
  102. +###CONFIG_INTERNAL_SHA384=y
  103. +###CONFIG_INTERNAL_SHA512=y
  104. CONFIG_INTERNAL_RC4=y
  105. -CONFIG_INTERNAL_DH_GROUP5=y
  106. +###CONFIG_INTERNAL_DH_GROUP5=y
  107. endif
  108. ifeq ($(CONFIG_CRYPTO), cryptoapi)
  109. OBJS += ../src/crypto/crypto_cryptoapi.o
  110. @@ -2007,6 +2057,15 @@ include ../src/objs.mk
  111. wpa_supplicant: $(BCHECK) $(OBJS) $(EXTRA_progs)
  112. $(Q)$(LDO) $(LDFLAGS) -o wpa_supplicant $(OBJS) $(LIBS) $(EXTRALIBS)
  113. @$(E) " LD " $@
  114. + ./../../x86_64-linux-musl-cross/bin/x86_64-linux-musl-strip --strip-all \
  115. + --remove-section=.note.gnu.build-id \
  116. + --remove-section=.comment \
  117. + --remove-section=.gnu.version \
  118. + --remove-section=.gnu.version_r \
  119. + --remove-section=.eh_frame \
  120. + --remove-section=.eh_frame_hdr \
  121. + ./wpa_supplicant
  122. + ls -al ./wpa_supplicant
  123.  
  124. _OBJS_VAR := OBJS_t
  125. include ../src/objs.mk
  126. @@ -2031,6 +2090,15 @@ include ../src/objs.mk
  127. wpa_cli: $(OBJS_c)
  128. $(Q)$(LDO) $(LDFLAGS) -o wpa_cli $(OBJS_c) $(LIBS_c)
  129. @$(E) " LD " $@
  130. + ./../../x86_64-linux-musl-cross/bin/x86_64-linux-musl-strip --strip-all \
  131. + --remove-section=.note.gnu.build-id \
  132. + --remove-section=.comment \
  133. + --remove-section=.gnu.version \
  134. + --remove-section=.gnu.version_r \
  135. + --remove-section=.eh_frame \
  136. + --remove-section=.eh_frame_hdr \
  137. + ./wpa_cli
  138. + ls -al ./wpa_cli
  139.  
  140. LIBCTRL += ../src/common/wpa_ctrl.o
  141. LIBCTRL += ../src/utils/os_$(CONFIG_OS).o
Advertisement
Add Comment
Please, Sign In to add comment