summaryrefslogtreecommitdiff
path: root/include/package-defaults.mk
diff options
context:
space:
mode:
authorLuke McKee <hojuruku@gmail.com>2016-07-24 02:00:24 +0700
committerFelix Fietkau <nbd@nbd.name>2016-07-29 20:27:34 +0200
commiteadf5fb7f8313d78fa503665e96457d080e6e3f9 (patch)
tree22697a856c3d56963786b557eeb38389d10b0549 /include/package-defaults.mk
parent009d6d602496947877766df6f152c713056201de (diff)
downloadmtk-20170518-eadf5fb7f8313d78fa503665e96457d080e6e3f9.zip
mtk-20170518-eadf5fb7f8313d78fa503665e96457d080e6e3f9.tar.gz
mtk-20170518-eadf5fb7f8313d78fa503665e96457d080e6e3f9.tar.bz2
cmake: include/cmake.mk add CMAKE_BINARY_SUBDIR to allow out of source tree builds
Some packages need out of source tree building with cmake, for example when building kernel modules. See an example here: https://sourceforge.net/p/accel-ppp/code/ci/master/tree/README Signed-off-by: Luke McKee <hojuruku@gmail.com> Signed-off-by: Felix Fietkau <nbd@nbd.name> [cleanup, rework]
Diffstat (limited to 'include/package-defaults.mk')
-rw-r--r--include/package-defaults.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/package-defaults.mk b/include/package-defaults.mk
index 2896b4c..e371c3b 100644
--- a/include/package-defaults.mk
+++ b/include/package-defaults.mk
@@ -136,7 +136,7 @@ MAKE_INSTALL_FLAGS = \
$(MAKE_FLAGS) \
DESTDIR="$(PKG_INSTALL_DIR)"
-MAKE_PATH = .
+MAKE_PATH ?= .
define Build/Compile/Default
+$(MAKE_VARS) \