update to 2.0.2, make http proxy an option, default on, adds 5kb
[openwrt.git] / openwrt / package / madwifi-tools / patches / 001-no_kerneldir.patch
1 diff -urN madwifi.old/Makefile.inc madwifi.dev/Makefile.inc
2 --- madwifi.old/Makefile.inc 2005-07-14 02:35:49.000000000 +0200
3 +++ madwifi.dev/Makefile.inc 2005-09-06 20:10:18.801794992 +0200
4 @@ -74,71 +74,6 @@
5
6 # TOOLPATH is the path which contains the crosscompile toolchain (?)
7
8 -ifeq ($(strip ${BUS}),AHB)
9 -# Bus type AHB forces the target platform to be mipsisa32.
10 -TARGET := mipsisa32-be-elf
11 -
12 -# Bus type AHB requires KERNELPATH and TOOLPATH to be set manually.
13 -ifndef KERNELPATH
14 -$(error KERNELPATH must be defined for bus type AHB.)
15 -endif
16 -ifndef TOOLPATH
17 -$(error TOOLPATH must be defined for bus type AHB.)
18 -endif
19 -
20 -else
21 -
22 -KERNELPATH ?= $(firstword $(wildcard $(DESTDIR)/lib/modules/$(shell uname -r)/build /usr/src/linux))
23 -
24 -ifeq ($(KERNELPATH),)
25 -$(error KERNELPATH must be defined)
26 -endif
27 -
28 -endif
29 -
30 -# sanity check: does KERNELPATH exist?
31 -ifeq ($(wildcard $(KERNELPATH)),)
32 -$(error KERNELPATH: $(KERNELPATH) does not exist)
33 -endif
34 -
35 -# KERNELRELEASE is the target kernel's version. If KERNELRELEASE
36 -# is not set in the environment then it is taken from the running
37 -# system.
38 -# To determine the correct version a mini-Makefile is piped to make
39 -# which includes the Makefile in KERNELPATH and prints out the version.
40 -# This is done to come by problems recently introduced with some distros
41 -# and newer kernel releases.
42 -#
43 -# Note: '\044' used instead of '$' in order to avoid make complaining like
44 -# "Recursive variable `KERNELRELEASE' references itself (eventually)."
45 -KERNELRELEASE ?= $(shell echo -e 'madwifi_$$_`date +%s`:\n\t@echo \044(KERNELRELEASE)\ninclude Makefile' | make -C $(KERNELPATH) -s -f-)
46 -
47 -# KERNELCONF is the name of the file that holds the configuration
48 -# of the target kernel.
49 -KERNELCONF ?= ${KERNELPATH}/.config
50 -
51 -# sanity check: does KERNELCONF exist?
52 -ifeq ($(wildcard $(KERNELCONF)),)
53 -$(error KERNELCONF: $(KERNELCONF) does not exist.)
54 -endif
55 -
56 -# SYSTEMMAP is the name of the System.map file for the target
57 -# kernel. This will be needed when DESTDIR is defined in order
58 -# to run depmod properly.
59 -SYSTEMMAP ?= ${KERNELPATH}/System.map
60 -
61 -# MODULEPATH nominates the directory where the modules will be
62 -# installed to
63 -ifeq ($(strip ${BUS}),AHB)
64 -MODULEPATH := ${KERNELPATH}/arch/mips/ar531x/RAMDISK/rootdir/lib/modules/${KERNELRELEASE}/net
65 -else
66 -MODULEPATH ?= /lib/modules/${KERNELRELEASE}/net
67 -endif
68 -
69 -# WIRELESSEXT contains information about the version of the wireless
70 -# extensions that are available in the target kernel
71 -WIRELESSEXT ?= $(shell cat $(KERNELPATH)/include/linux/wireless.h | grep "\#define WIRELESS_EXT" | cut -f2)
72 -
73 # Some settings that depend on actual kernel release
74 ifneq ($(findstring 2.6,$(KERNELRELEASE)),)
75 export-objs :=
This page took 0.055954 seconds and 5 git commands to generate.