* Hopefully this won't break things. Moved to a doins because make modules_install keeps breaking sandbox and won't cross-build

This commit is contained in:
grimmlin 2009-05-27 15:12:07 +00:00
parent 27e38444df
commit ac67324e21
3 changed files with 94 additions and 42 deletions

View file

@ -10,6 +10,6 @@ AUX failed_ieee80211_inject-2.6.22.patch 772 RMD160 ff6f70125009e3cd151ad12d8c2f
AUX failed_ipw2200_ipw2200-1.2.1-inject.patch 2207 RMD160 b7ff866af15d91bc882f8c9f0f4f743e63e53b6f SHA1 2ff94a5031c826044fee3508e479cd04bb3abd00 SHA256 21cd575d13ef9a6d2beafea9070ca68296b4f187f2d46d23ea450b8eb1c78761
AUX failed_linux-wlanng-kernel-2.6.28.patch 11623 RMD160 23d11bb21ba059b7a0d7a2c597e5ae8224670dde SHA1 8d8d11912160dd8b38b805c928ea746ff9192ba8 SHA256 fd4bd200617c5f28e3a0ae58e5fa02f80279ad98aafed6c2e3d5b249a9b617c6
AUX failed_openembedded-orinoco-remove-all-which-are-in-hostap-HACK.patch 6606 RMD160 e479eb0e796aec521e2269d50e9ccc4426e1da55 SHA1 c76220bb8f3a118a224e555517b7e111603da47e SHA256 6b761693587871591fc0ce96273d37f769f61d28f637c1692d931300c4f04504
AUX whynot.patch 2961 RMD160 38f272e7c1cee82cf4f8f26b3aa08c9360681aee SHA1 22d01946299a1a04473b97a362d7071865fbe7dc SHA256 be35e98b5ac26133ef22e8863d3e2728c83183a724e04b8c6e6f2514ea3f56ae
AUX whynot.patch 4106 RMD160 ac38e8dbbe1a59607fe16b36f327a9ba73a001e7 SHA1 2208598c9f9811d368db099c863be2a2af11681e SHA256 956cf3a0a8b8e1f0f0e3df985e351799f325a44e4cddf042d677a9e8109b7c9e
DIST compat-wireless-2.6.30-rc6.tar.bz2 1678784 RMD160 f0d69b99d37732a39ba01fdd869d150db8a55037 SHA1 1e91215069ba8cd46654836279dacc964d9dc854 SHA256 6b2beba044860624d44a0a8cc5a701b1243d9dd89f7d028daca12b4ca41d6512
EBUILD compat-wireless-2.6.30_rc6.ebuild 1801 RMD160 cd618e567f9e8f71be4b22857d3899041afdbf75 SHA1 99fb9b2f55eb4d940fb02d4edae1eb7105c71c52 SHA256 a2896ef3b500cc9de4370dcdc32ca6a16ea285bc51aaecc659ec055639da1beb
EBUILD compat-wireless-2.6.30_rc6.ebuild 2023 RMD160 f30413aaea53305db3e8f85ca0ed34e3476b21c7 SHA1 352747c7fc2d22a4f3a1424f16527c0a46974a13 SHA256 f142c9b95802984b38fecea1a3fd068fad99124628cf6c04f7b1d07f77c35c0b

View file

@ -21,6 +21,7 @@ IUSE="kernel_linux +injection"
S=${WORKDIR}/${MY_P}
CONFIG_CHECK="!DYNAMIC_FTRACE"
RESTRICT="strip"
#BUILD_TARGETS="all"
#MODULE_NAMES="${PN}(:${S}:${S})"
@ -46,8 +47,16 @@ src_compile() {
}
src_install() {
dodir /lib/modules/${KV_FULL}/updates
emake KVER="${KV_FULL}" DESTDIR="${D}" KMODDIR_ARG="INSTALL_MOD_DIR=updates" KMODPATH_ARG="INSTALL_MOD_PATH=${D}" install || die "install failed"
for file in `find ./ -name \*.ko`
do
MY_DIR="/lib/modules/${KV_FULL}/updates/$(dirname ${file})"
dodir "${MY_DIR}"
insinto "${MY_DIR}"
doins "${file}"
done
# dodir /lib/modules/${KV_FULL}/updates
# emake KVER="${KV_FULL}" DESTDIR="${D}" KMODDIR_ARG="INSTALL_MOD_DIR=updates" KMODPATH_ARG="INSTALL_MOD_PATH=${D}" install || die "install failed"
dodoc README || die
}

View file

@ -1,7 +1,7 @@
diff -Naur compat-wireless-2.6.30-rc6/Makefile compat-wireless-2.6.30-rc6-hackedup/Makefile
--- compat-wireless-2.6.30-rc6/Makefile 2009-05-17 17:48:36.000000000 -0400
+++ compat-wireless-2.6.30-rc6-hackedup/Makefile 2009-05-21 02:09:05.000000000 -0400
@@ -3,7 +3,7 @@
diff -Naur compat-wireless-2.6.30-rc6.orig/Makefile compat-wireless-2.6.30-rc6/Makefile
--- compat-wireless-2.6.30-rc6.orig/Makefile 2009-05-17 21:48:36.000000000 +0000
+++ compat-wireless-2.6.30-rc6/Makefile 2009-05-27 12:21:51.000000000 +0000
@@ -3,13 +3,10 @@
ifneq ($(origin $(KLIB)), undefined)
KMODPATH_ARG:= "INSTALL_MOD_PATH=$(KLIB)"
else
@ -10,7 +10,13 @@ diff -Naur compat-wireless-2.6.30-rc6/Makefile compat-wireless-2.6.30-rc6-hacked
endif
export KLIB_BUILD ?= $(KLIB)/build
# Sometimes not available in the path
@@ -59,19 +59,20 @@
-MODPROBE := /sbin/modprobe
-MADWIFI=$(shell $(MODPROBE) -l ath_pci)
-OLD_IWL=$(shell $(MODPROBE) -l iwl4965)
ifneq ($(KERNELRELEASE),)
@@ -59,92 +56,26 @@
@md5sum $(COMPAT_CONFIG) > $(CONFIG_CHECK)
install: uninstall modules
@ -32,48 +38,85 @@ diff -Naur compat-wireless-2.6.30-rc6/Makefile compat-wireless-2.6.30-rc6-hacked
- @install scripts/athload /usr/sbin/
- @install scripts/b43load /usr/sbin/
- @install scripts/iwl-load /usr/sbin/
- @if [ ! -z $(MADWIFI) ]; then \
- echo ;\
- echo -n "Note: madwifi detected, we're going to disable it. " ;\
- echo "If you would like to enable it later you can run:" ;\
- echo " sudo athenable madwifi" ;\
- echo ;\
- echo Running athenable ath5k...;\
- /usr/sbin/athenable ath5k ;\
- fi
- @if [ ! -z $(OLD_IWL) ]; then \
- echo ;\
- echo -n "Note: iwl4965 detected, we're going to disable it. " ;\
- echo "If you would like to enable it later you can run:" ;\
- echo " sudo iwl-load iwl4965" ;\
- echo ;\
- echo Running iwl-enable iwlagn...;\
- /usr/sbin/iwl-enable iwlagn ;\
- fi
+ @install scripts/athenable $(DESTDIR)/usr/sbin/
+ @install scripts/b43enable $(DESTDIR)/usr/sbin/
+ @install scripts/iwl-enable $(DESTDIR)/usr/sbin/
+ @install scripts/athload $(DESTDIR)/usr/sbin/
+ @install scripts/b43load $(DESTDIR)/usr/sbin/
+ @install scripts/iwl-load $(DESTDIR)/usr/sbin/
@if [ ! -z $(MADWIFI) ]; then \
echo ;\
echo -n "Note: madwifi detected, we're going to disable it. " ;\
@@ -79,7 +80,7 @@
echo " sudo athenable madwifi" ;\
echo ;\
echo Running athenable ath5k...;\
- /usr/sbin/athenable ath5k ;\
+# /usr/sbin/athenable ath5k ;\
fi
@if [ ! -z $(OLD_IWL) ]; then \
echo ;\
@@ -88,7 +89,7 @@
echo " sudo iwl-load iwl4965" ;\
echo ;\
echo Running iwl-enable iwlagn...;\
- /usr/sbin/iwl-enable iwlagn ;\
+# /usr/sbin/iwl-enable iwlagn ;\
fi
@# If on distributions like Mandriva which like to
@# compress their modules this will find out and do
@@ -96,7 +97,7 @@
@# it for you. Reason is some old version of modutils
@# won't know mac80211.ko should be used instead of
@# mac80211.ko.gz
@./scripts/compress_modules
- @/sbin/depmod -ae
+# @/sbin/depmod -ae
@echo
@echo "Currently detected wireless subsystem modules:"
@echo
@@ -158,7 +159,7 @@
@rm -f $(KLIB)/$(KMODDIR)/drivers/misc/eeprom/eeprom_93cx6.ko*
@rm -f $(KLIB)/$(KMODDIR)/drivers/misc/eeprom_93cx6.ko*
@rm -f $(KLIB)/$(KMODDIR)/drivers/net/b44.ko*
- @/sbin/depmod -ae
+# @/sbin/depmod -ae
@echo
@echo "Your old wireless subsystem modules were left intact:"
@echo
- @echo
- @echo "Currently detected wireless subsystem modules:"
- @echo
- @$(MODPROBE) -l mac80211
- @$(MODPROBE) -l cfg80211
- @$(MODPROBE) -l lib80211
- @$(MODPROBE) -l adm8211
- @$(MODPROBE) -l at76c50x-usb
- @$(MODPROBE) -l ath5k
- @$(MODPROBE) -l ath9k
- @$(MODPROBE) -l b43
- @$(MODPROBE) -l b43legacy
- @$(MODPROBE) -l b44
- @$(MODPROBE) -l ssb
- @$(MODPROBE) -l rc80211_simple
- @$(MODPROBE) -l iwlcore
- @$(MODPROBE) -l iwl3945
- @$(MODPROBE) -l iwlagn
- @$(MODPROBE) -l ipw2100
- @$(MODPROBE) -l ipw2200
- @$(MODPROBE) -l libipw
- @$(MODPROBE) -l lib80211
- @$(MODPROBE) -l lib80211_crypt
- @$(MODPROBE) -l libertas_cs
- @$(MODPROBE) -l libertas_tf
- @$(MODPROBE) -l libertas_tf_usb
- @$(MODPROBE) -l ub8xxx
- @$(MODPROBE) -l p54pci
- @$(MODPROBE) -l p54usb
- @$(MODPROBE) -l rt2400pci
- @$(MODPROBE) -l rt2500pci
- @$(MODPROBE) -l rt2500usb
- @$(MODPROBE) -l rt61pci
- @$(MODPROBE) -l rt73usb
- @$(MODPROBE) -l usbnet
- @$(MODPROBE) -l cdc_ether
- @$(MODPROBE) -l rndis_host
- @$(MODPROBE) -l rndis_wlan
- @$(MODPROBE) -l rtl8180
- @$(MODPROBE) -l rtl8187
- @$(MODPROBE) -l zd1211rw
- @echo
- @echo Now run:
- @echo
- @echo make unload
- @echo
- @echo And then load the wireless module you need. If unsure reboot.
- @echo
uninstall:
@# New location, matches upstream