summaryrefslogtreecommitdiff
path: root/package/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/rules.mk')
-rw-r--r--package/rules.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/rules.mk b/package/rules.mk
index 916bb0f277..17f6c61ef3 100644
--- a/package/rules.mk
+++ b/package/rules.mk
@@ -213,7 +213,13 @@ define Build/Configure
endef
define Build/Compile/Default
-# TODO: add configurable default command
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ CC=$(TARGET_CC) \
+ CROSS="$(TARGET_CROSS)" \
+ PREFIX="$$(IDIR_$(1))" \
+ EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
+ ARCH="$(ARCH)" \
+ DESTDIR="$$(IDIR_$(1))"
endef
define Build/Compile