diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-01-19 15:50:31 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-01-19 15:50:31 +0000 |
commit | 21797cd3d683c34b0d59255fb9a0e9ea48c69c36 (patch) | |
tree | 329f9f27614de746c09e0acb6050413c38c9b772 /Makefile | |
parent | 023c65c2b38b5a1c74fc42d6b5600c84ec9bd627 (diff) |
Some more separation of kernel build Makefile from original one. This is
a small change functionality-wise but makes it much simpler to move
things around.
It also fixes the major issue of issue #11141, with only xpp issue left
for proper kernel 2.6.24 support.
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3706 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -5,6 +5,13 @@ # # +ifneq ($(KBUILD_EXTMOD),) +# We only get in here if we're from kernel 2.6 <= 2.6.8 and going through +# Kbuild. Later versions will include Kbuild instead of Makefile. +include Kbuild + +else + CFLAGS+=-DSTANDALONE_ZAPATA -DBUILDING_TONEZONE ifeq ($(MAKELEVEL),0) @@ -127,6 +134,7 @@ obj-m+=$(BUILD_SUBDIR_MODULES:%=%/) include $(src)/Makefile.kernel26 else +KBUILD_OBJ_M=$(BUILD_TOPDIR_MODULES:%=%.o) $(BUILD_SUBDIR_MODULES:%=%/) ifeq ($(BUILDVER),linux24) INSTALL_MODULES:=$(BUILD_TOPDIR_MODULES:%=%.o) @@ -178,7 +186,8 @@ MODULE_ALIASES=wcfxs wctdm8xxp wct2xxp KFLAGS+=-DSTANDALONE_ZAPATA CFLAGS+=-DSTANDALONE_ZAPATA -KMAKE = $(MAKE) -C $(KSRC) SUBDIRS=$(PWD) HOTPLUG_FIRMWARE=$(HOTPLUG_FIRMWARE) +KMAKE = $(MAKE) -C $(KSRC) SUBDIRS=$(PWD) \ + HOTPLUG_FIRMWARE=$(HOTPLUG_FIRMWARE) KBUILD_OBJ_M="$(KBUILD_OBJ_M)" KMAKE_INST = $(KMAKE) \ INSTALL_MOD_PATH=$(DESTDIR) INSTALL_MOD_DIR=misc modules_install @@ -674,3 +683,6 @@ menuselect-tree: zaptel.xml firmware/firmware.xml .PHONY: menuselect distclean dist-clean clean version.h all _all install b410p devices programs modules tests devel data stackcheck install-udev config update install-programs install-modules install-include install-libs install-utils-subdirs utils-subdirs uninstall-modules endif + +#end of: ifneq ($(KBUILD_EXTMOD),) +endif |