summaryrefslogtreecommitdiff
path: root/kernel/GNUmakefile
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-03-03 22:04:02 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-03-03 22:04:02 +0000
commitdb06a6740c1feef2e64f7f0cc4e6538c14c64e5a (patch)
treec0a01f831b9a56ebd2471a64a87042043a39c290 /kernel/GNUmakefile
parent82b61e7a86917a4638da81d99e0fb38fa35ca5f5 (diff)
* Pass some extra variables explicitly in the 2.4 build.
* Clean up the 2.4 kernel GNUMakefile. Should hopefully fix issue #12056. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3921 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'kernel/GNUmakefile')
-rw-r--r--kernel/GNUmakefile34
1 files changed, 9 insertions, 25 deletions
diff --git a/kernel/GNUmakefile b/kernel/GNUmakefile
index 3ec8aa6..6da0928 100644
--- a/kernel/GNUmakefile
+++ b/kernel/GNUmakefile
@@ -67,7 +67,10 @@ MODULE_ALIASES=wcfxs wctdm8xxp wct2xxp
KFLAGS+=-DSTANDALONE_ZAPATA
-MOD_DIR:=$(DESTDIR)/lib/modules/$(KVERS)/misc
+MOD_DIR:=/lib/modules/$(KVERS)/misc
+
+MAKE_SUBDIR = $(MAKE) CC=$(CC) LD=$(LD) \
+ KFLAGS="$(KFLAGS) -I.." CFLAGS="$(CFLAGS) -I.."
all: modules
@@ -99,7 +102,7 @@ makefw: makefw.c
modules: $(ALL_MODULES)
wct4xxp/wct4xxp.o:
- $(MAKE) -C wct4xxp KFLAGS="$(KFLAGS) -I.." CFLAGS="$(CFLAGS) -I.."
+ $(MAKE_SUBDIR) -C wct4xxp
tor2.o: tor2-hw.h tor2fw.h
@@ -110,10 +113,10 @@ wcusb.o: wcusb.h
wctdm.o: wctdm.h
wctdm24xxp/wctdm24xxp.o:
- $(MAKE) -C wctdm24xxp KFLAGS="$(KFLAGS) -I.." CFLAGS="$(CFLAGS) -I.."
+ $(MAKE_SUBDIR) -C wctdm24xxp
wcte12xp/wcte12xp.o:
- $(MAKE) -C wcte12xp KFLAGS="$(KFLAGS) -I.." CFLAGS="$(CFLAGS) -I.."
+ $(MAKE_SUBDIR) -C wcte12xp
pciradio.o: radfw.h
@@ -125,30 +128,11 @@ zaptel.o: zaptel-base.o $(ZAPTEL_HPEC)
$(filter-out zaptel.o,$(BUILD_TOPDIR_MODULES:%=%.o)) zaptel-base.o: %.o: %.c zaptel.h
$(CC) $(KFLAGS) -o $@ -c $<
-install: all devices install-modules install-programs install-firmware
- @echo "###################################################"
- @echo "###"
- @echo "### Zaptel installed successfully."
- @echo "### If you have not done so before, install init scripts with:"
- @echo "###"
- @echo "### make config"
- @echo "###"
- @echo "###################################################"
-
-BASENAMES=$(sort $(shell for x in $(ALL_MODULES); do basename $x; done))
-uninstall-modules:
-
-BASENAMES=$(sort $(shell for mod in $(ALL_MODULES); do basename $$mod; done))
-
-install-modules: $(INSTALL_MODULES) uninstall-modules
- $(INSTALL) -d $(DESTDIR)$(MOD_DIR)
- $(INSTALL) -m 644 $(INSTALL_MODULES) $(DESTDIR)$(MOD_DIR)
- [ `id -u` = 0 ] && /sbin/depmod -a $(KVERS) || :
clean:
rm -f makefw tor2fw.h radfw.h
rm -f *.o
- $(MAKE) -C wct4xxp clean
+ $(MAKE_SUBDIR) -C wct4xxp clean
rm -rf .tmp_versions
rm -f core
@@ -156,5 +140,5 @@ distclean: dist-clean
dist-clean: clean
-.PHONY: menuselect distclean dist-clean clean all _all install modules config install-modules uninstall-modules
+.PHONY: distclean dist-clean clean all modules