summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
Diffstat (limited to 'target')
-rw-r--r--target/linux/package/alsa/Makefile4
-rw-r--r--target/linux/package/fuse/Makefile1
-rw-r--r--target/linux/package/hostap/Makefile1
-rw-r--r--target/linux/package/madwifi/Makefile4
-rw-r--r--target/linux/package/mini_fo/Makefile1
-rw-r--r--target/linux/package/openswan/Makefile1
-rw-r--r--target/linux/package/shfs/Makefile1
7 files changed, 11 insertions, 2 deletions
diff --git a/target/linux/package/alsa/Makefile b/target/linux/package/alsa/Makefile
index f616fa077f..6ac3156e47 100644
--- a/target/linux/package/alsa/Makefile
+++ b/target/linux/package/alsa/Makefile
@@ -44,7 +44,9 @@ $(PKG_BUILD_DIR)/.configured:
$(PKG_BUILD_DIR)/.built:
$(MAKE) -C $(PKG_BUILD_DIR) \
ARCH="$(LINUX_KARCH)" \
- c_opts="$(KERNEL_C_OPTS)"
+ CROSS_COMPILE="$(TARGET_CROSS)" \
+ c_opts="$(KERNEL_C_OPTS)" \
+ all
touch $@
$(IPKG_KMOD_ALSA):
diff --git a/target/linux/package/fuse/Makefile b/target/linux/package/fuse/Makefile
index 39f5f38bc5..26e8b69cf7 100644
--- a/target/linux/package/fuse/Makefile
+++ b/target/linux/package/fuse/Makefile
@@ -69,6 +69,7 @@ $(PKG_BUILD_DIR)/.built:
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
ARCH="$(LINUX_KARCH)" \
+ CROSS_COMPILE="$(TARGET_CROSS)" \
PATH="$(TARGET_PATH)" \
DESTDIR="$(PKG_INSTALL_DIR)" \
SUBDIRS="kernel" \
diff --git a/target/linux/package/hostap/Makefile b/target/linux/package/hostap/Makefile
index 06c063a5ea..d28550975b 100644
--- a/target/linux/package/hostap/Makefile
+++ b/target/linux/package/hostap/Makefile
@@ -31,6 +31,7 @@ $(PKG_BUILD_DIR)/.configured:
$(PKG_BUILD_DIR)/.built:
$(MAKE) -C $(KERNEL_DIR)/ \
ARCH="$(LINUX_KARCH)" \
+ CROSS_COMPILE="$(TARGET_CROSS)" \
SUBDIRS="$(PKG_BUILD_DIR)/driver/modules" \
modules
touch $@
diff --git a/target/linux/package/madwifi/Makefile b/target/linux/package/madwifi/Makefile
index 089e68e948..6a13a181c5 100644
--- a/target/linux/package/madwifi/Makefile
+++ b/target/linux/package/madwifi/Makefile
@@ -39,9 +39,11 @@ $(PKG_BUILD_DIR)/.built:
$(MAKE) -C $(PKG_BUILD_DIR) \
PATH="$(TARGET_PATH)" \
ARCH="$(LINUX_KARCH)" \
+ CROSS_COMPILE="$(TARGET_CROSS)" \
TARGET="$(HAL_TARGET)" \
TOOLPREFIX="$(KERNEL_CROSS)" \
- KERNELPATH="$(KERNEL_DIR)"
+ KERNELPATH="$(KERNEL_DIR)" \
+ all
touch $@
$(IPKG_KMOD_MADWIFI):
diff --git a/target/linux/package/mini_fo/Makefile b/target/linux/package/mini_fo/Makefile
index 4ea3be8380..033cd7279e 100644
--- a/target/linux/package/mini_fo/Makefile
+++ b/target/linux/package/mini_fo/Makefile
@@ -31,6 +31,7 @@ $(PKG_BUILD_DIR)/.built:
$(MAKE) -C $(PKG_BUILD_DIR) \
PATH="$(TARGET_PATH)" \
ARCH="$(LINUX_KARCH)" \
+ CROSS_COMPILE="$(TARGET_CROSS)" \
KERNELVERSION="$(KERNEL_VERSION)" \
KERNEL_SRC="$(KERNEL_DIR)" \
all
diff --git a/target/linux/package/openswan/Makefile b/target/linux/package/openswan/Makefile
index 3ea5cf7c4f..fbfd7c968e 100644
--- a/target/linux/package/openswan/Makefile
+++ b/target/linux/package/openswan/Makefile
@@ -28,6 +28,7 @@ $(PKG_BUILD_DIR)/.built:
$(TARGET_CONFIGURE_OPTS) \
KERNELSRC="$(KERNEL_DIR)" \
ARCH="$(LINUX_KARCH)" \
+ CROSS_COMPILE="$(TARGET_CROSS)" \
USERCOMPILE="$(FLAGS)" \
module
diff --git a/target/linux/package/shfs/Makefile b/target/linux/package/shfs/Makefile
index ecb123872d..0120d702cd 100644
--- a/target/linux/package/shfs/Makefile
+++ b/target/linux/package/shfs/Makefile
@@ -31,6 +31,7 @@ $(PKG_BUILD_DIR)/.built:
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
ARCH="$(LINUX_KARCH)" \
+ CROSS_COMPILE="$(TARGET_CROSS)" \
PATH="$(TARGET_PATH)" \
OFLAGS="$(TARGET_CFLAGS)" \
CC="$(TARGET_CC)" \