summaryrefslogtreecommitdiff
path: root/package/network/utils
diff options
context:
space:
mode:
authorKarl Vogel <karl.vogel@gmail.com>2017-10-13 11:10:03 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2017-10-29 16:17:05 +0100
commit76378c6b9fe6aa7fcdbbc7c050ae6392b71a72b8 (patch)
treee9ccda96723ab5f40b39af552e13e13e35f29304 /package/network/utils
parent851644bf5bf0415b9937f8bf4f34c38ba7c59ccf (diff)
downloadmtk-20170518-76378c6b9fe6aa7fcdbbc7c050ae6392b71a72b8.zip
mtk-20170518-76378c6b9fe6aa7fcdbbc7c050ae6392b71a72b8.tar.gz
mtk-20170518-76378c6b9fe6aa7fcdbbc7c050ae6392b71a72b8.tar.bz2
build: use KERNEL_MAKE_FLAGS for kernel file compilations
The build system already defines KERNEL_CROSS which defaults to TARGET_CROSS. Make use of this variable for kernel makefiles. Signed-off-by: Karl Vogel <karl.vogel@gmail.com>
Diffstat (limited to 'package/network/utils')
-rw-r--r--package/network/utils/xtables-addons/Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/package/network/utils/xtables-addons/Makefile b/package/network/utils/xtables-addons/Makefile
index a1415fc..b1e134e 100644
--- a/package/network/utils/xtables-addons/Makefile
+++ b/package/network/utils/xtables-addons/Makefile
@@ -43,8 +43,7 @@ CONFIGURE_ARGS+= \
define Build/Compile
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
- ARCH="$(LINUX_KARCH)" \
- CROSS_COMPILE="$(TARGET_CROSS)" \
+ $(KERNEL_MAKE_FLAGS) \
DESTDIR="$(PKG_INSTALL_DIR)" \
DEPMOD="/bin/true" \
all
@@ -52,8 +51,7 @@ endef
define Build/Install
$(MAKE) -C $(PKG_BUILD_DIR) \
- ARCH="$(LINUX_KARCH)" \
- CROSS_COMPILE="$(TARGET_CROSS)" \
+ $(KERNEL_MAKE_FLAGS) \
DESTDIR="$(PKG_INSTALL_DIR)" \
DEPMOD="/bin/true" \
install