- fix shell syntax
[packages/atmelwlandriver.git] / atmelwlandriver-makefile.patch
CommitLineData
8fa0f853 1--- atmelwlandriver/Makefile.kernelv2.6.orig 2005-11-20 19:57:50.225388500 +0100
2+++ atmelwlandriver/Makefile.kernelv2.6 2005-11-20 19:57:51.957496750 +0100
aae79fc2 3@@ -5,15 +5,13 @@
ab43d4dc
PS
4 SCRIPTSDIR=$(TOPDIR)/scripts
5 INC=$(TOPDIR)/src/includes
8fa0f853 6 VERSION=3.4.1.1
ab43d4dc
PS
7-MINOR_NUMBER=$(shell uname -r | cut -d . -f 3 | cut -d - -f 1)
8 ID:=$(shell id -u)
9 tmpDIR:=/tmp/atm$(shell date +%S.%s)
10 tmpDES:=$(tmpDIR)/atmelwlandriver
11 LVNET = $(shell pwd)/src/apps/cmd_line
12 WINTER = $(shell pwd)/src/apps/winter
a486aa77 13
ab43d4dc 14-KERNEL_VERSION:=$(shell uname -r)
9012671a 15-KERNEL_SOURCE:=/lib/modules/$(KERNEL_VERSION)/build
ab43d4dc 16+KERNEL_SOURCE:=/usr/src/linux
aae79fc2
JK
17 PCMCIA_DES = $(DESTDIR)/lib/modules/$(KERNEL_VERSION)/pcmcia
18 PCI_DES = $(DESTDIR)/lib/modules/$(KERNEL_VERSION)/kernel/drivers/net
19 USB_DES = $(DESTDIR)/lib/modules/$(KERNEL_VERSION)/kernel/drivers/usb
8fa0f853 20@@ -104,34 +102,15 @@
ab43d4dc
PS
21 $(all_targets): %:
22 @echo Building $@
23 @if [ ! -d $(OBJDIR)/$@ ]; then echo Bootstraping target $@; mkdir $(OBJDIR)/$@; fi
24- @if [ ! -d $(OBJDIR)/$@/debug ]; then \
25- mkdir $(OBJDIR)/$@/debug; \
26- for f in $(srcs); do (cd $(OBJDIR)/$@/debug; ln -s $(SUBDIRS)/$$f .); done \
27- fi
28 @if [ ! -d $(OBJDIR)/$@/release ]; then \
29 mkdir $(OBJDIR)/$@/release; \
30 for f in $(srcs); do (cd $(OBJDIR)/$@/release; ln -s $(SUBDIRS)/$$f .); done \
31 fi
32- @echo -e "\tDebug"
33- @if [ "$(buildonly)" == debug ] || [ "$(buildonly)" == "" ]; then \
34- echo obj-m=$@.o > $(OBJDIR)/$@/debug/Makefile; \
35- echo all: >> $(OBJDIR)/$@/debug/Makefile; \
36- if [ "$(MINOR_NUMBER)" -gt "5" ]; then \
37- echo -e $(debug_submake_new) >> $(OBJDIR)/$@/debug/Makefile; \
38- else \
39- echo -e $(debug_submake_old) >> $(OBJDIR)/$@/debug/Makefile; \
40- fi;\
41- (cd $(OBJDIR)/$@/debug; make) ; \
42- fi
43 @echo -e "\tRelease"
44 @if [ "$(buildonly)" == release ] || [ "$(buildonly)" == "" ]; then \
45 echo obj-m=$@.o > $(OBJDIR)/$@/release/Makefile; \
46 echo all: >> $(OBJDIR)/$@/release/Makefile; \
47- if [ "$(MINOR_NUMBER)" -gt "5" ]; then \
48- echo -e $(release_submake_new) >> $(OBJDIR)/$@/release/Makefile; \
49- else \
50- echo -e $(release_submake_old) >> $(OBJDIR)/$@/release/Makefile; \
51- fi;\
52+ echo -e $(release_submake_new) >> $(OBJDIR)/$@/release/Makefile; \
53 (cd $(OBJDIR)/$@/release; make) ; \
54 fi
a486aa77 55
This page took 0.042319 seconds and 4 git commands to generate.