summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-03-05 00:56:05 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-03-05 00:56:05 +0000
commit831fd20927030b3c2d29f5ff4d90644e9b5b1890 (patch)
tree1706550e5d6179a7350448c462b9cede0b5bfaa3
parent75c1ca710a5e126ae2aa7d8a25167a9bc19ec0d9 (diff)
include kernel-defaults.mk and use $(KERNEL_MAKEOPTS)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19981 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/compcache/Makefile10
1 files changed, 3 insertions, 7 deletions
diff --git a/package/compcache/Makefile b/package/compcache/Makefile
index 8ca581b3d..98a1cadf5 100644
--- a/package/compcache/Makefile
+++ b/package/compcache/Makefile
@@ -29,6 +29,8 @@ define KernelPackage/compcache
$(PKG_BUILD_DIR)/sub-projects/allocators/xvmalloc-kmod/xvmalloc.$(LINUX_KMOD_SUFFIX)
endef
+include $(INCLUDE_DIR)/kernel-defaults.mk
+
XVM = sub-projects/allocators/xvmalloc-kmod
LZO = sub-projects/compression/lzo-kmod
@@ -38,13 +40,7 @@ BUILDFLAGS:=-DCONFIG_BLK_DEV_RAMZSWAP_STATS \
-g -Wall
define Build/Compile
- $(MAKE) -C "$(LINUX_DIR)" \
- CROSS_COMPILE="$(KERNEL_CROSS)" \
- CC="$(KERNEL_CC)" \
- ARCH="$(LINUX_KARCH)" \
- SUBDIRS="$(PKG_BUILD_DIR)" \
- EXTRA_CFLAGS="$(BUILDFLAGS)" \
- modules
+ $(MAKE) $(KERNEL_MAKEOPTS) EXTRA_CFLAGS="$(BUILDFLAGS)" M="$(PKG_BUILD_DIR)" modules
endef
define KernelPackage/compcache/install