mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
3.7 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/avm/hostap/hostap-driver_nodepmod.diff
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. diff -ruN hostap-driver-0.2.1/Makefile hostap-driver-0.2.1-new/Makefile
  20. --- hostap-driver-0.2.1/Makefile 2004-04-29 06:39:27.000000000 +0200
  21. +++ hostap-driver-0.2.1-new/Makefile 2004-06-18 16:02:07.449699816 +0200
  22. @@ -47,7 +47,7 @@
  23. VERFILE := $(KERNEL_PATH)/include/linux/version.h
  24. KERNELRELEASE := $(shell if [ -r $(VERFILE) ]; \
  25. - then (cat $(VERFILE); echo UTS_RELEASE) | $(CC) $(INCLUDES) $(CFLAGS) -E - | tail -1 | xargs echo; \
  26. + then (cat $(VERFILE); echo UTS_RELEASE) | $(CC) $(INCLUDES) $(CFLAGS) -E - | tail -n 1 | xargs echo; \
  27. else uname -r; fi)
  28. KERNELVER := $(shell echo "$(KERNELRELEASE)" | \
  29. sed "s/\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/")
  30. @@ -62,6 +62,7 @@
  31. MSRC=driver/modules
  32. +
  33. # if Rules.make exists in the kernel tree, we assume 2.4 style modules
  34. # if it doesn't assume 2.6 style
  35. OLDMAKE = $(wildcard $(KERNEL_PATH)/Rules.make)
  36. @@ -90,6 +91,7 @@
  37. endif
  38. 2.4:
  39. + echo "Kernelver: $(KERNELVER) Kernelrelease: $(KERNELRELEASE) Modpath: $(MODPATH)"
  40. @if ! echo "$(KERNELRELEASE)" | grep -q "^2\.4"; then \
  41. echo "*** Can't build for 2.4 with a non-2.4 source!"; \
  42. exit 1; \
  43. @@ -98,6 +100,7 @@
  44. $(MAKE) install_all_info
  45. 2.6:
  46. + echo "Kernelver: $(KERNELVER) Kernelrelease: $(KERNELRELEASE) Modpath: $(MODPATH)"
  47. @if ! echo "$(KERNELRELEASE)" | grep -q "^2\.6" && \
  48. ! echo "$(KERNELRELEASE)" | grep -q "^2\.5"; then \
  49. echo "*** Can't build for 2.6 with a non-2.6 source!"; \
  50. @@ -142,12 +145,7 @@
  51. @if [ -r $(MODPATH)/kernel/drivers/net/wireless/hostap_crypt.ko ]; then \
  52. echo "You may need to remove old $(MODPATH)/kernel/drivers/net/wireless/hostap_crypt.ko"; \
  53. fi
  54. - @if [ -f "/boot/System.map-$(KERNELRELEASE)" ] || [ "$(CURRENTKV)" = "$(KERNELRELEASE)" ]; then \
  55. - echo "*** Running depmod..."; \
  56. - /sbin/depmod -ae; \
  57. - else \
  58. - echo "*** I won't run depmod because I can't find an appropriate System.map file or you are not running the same kernel as the one you are building against. Please run it manually when the conditions are correct..."; \
  59. - fi
  60. + echo "ROCKLinux: not running depmod in build."
  61. install_hostap: $(MSRC)/hostap.o
  62. @echo "Installing hostap.o to $(MODPATH_PCI)"
  63. @@ -167,7 +165,7 @@
  64. mkdir -p $(MODPATH_CS)
  65. cp -f $(MSRC)/$(MODULE_CS) $(MODPATH_CS)
  66. ifndef DESTDIR
  67. - /sbin/depmod -ae
  68. + echo "ROCKLinux: not running depmod in build."
  69. endif
  70. install_conf:
  71. @@ -183,13 +181,13 @@
  72. @echo "Installing $(MODULE_PLX) to $(MODPATH_PLX)"
  73. mkdir -p $(MODPATH_PLX)
  74. cp -f $(MSRC)/$(MODULE_PLX) $(MODPATH_PLX)
  75. - /sbin/depmod -ae
  76. + echo "ROCKLinux: not running depmod in build."
  77. install_pci: install_check install_crypt install_hostap
  78. @echo "Installing $(MODULE_PCI) to $(MODPATH_PCI)"
  79. mkdir -p $(MODPATH_PCI)
  80. cp -f $(MSRC)/$(MODULE_PCI) $(MODPATH_PCI)
  81. - /sbin/depmod -ae
  82. + echo "ROCKLinux: not running depmod in build."
  83. uninstall:
  84. find $(MODPATH) -name "hostap*" | xargs rm -f