diff options
author | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-11-02 02:42:06 +0000 |
---|---|---|
committer | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-11-02 02:42:06 +0000 |
commit | ce6935134808f99e5bcda21e8e7e3599aef0b43b (patch) | |
tree | 75814e710d040e17bbea4d72bbc73621ad76c341 /target/linux | |
parent | 0a6dc7ccb6f202f81f7d9f851b2d9c1bb0fbe5a1 (diff) |
use the cross-compiler to build additional packages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2312 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/package/alsa/Makefile | 4 | ||||
-rw-r--r-- | target/linux/package/fuse/Makefile | 1 | ||||
-rw-r--r-- | target/linux/package/hostap/Makefile | 1 | ||||
-rw-r--r-- | target/linux/package/madwifi/Makefile | 4 | ||||
-rw-r--r-- | target/linux/package/mini_fo/Makefile | 1 | ||||
-rw-r--r-- | target/linux/package/openswan/Makefile | 1 | ||||
-rw-r--r-- | target/linux/package/shfs/Makefile | 1 |
7 files changed, 11 insertions, 2 deletions
diff --git a/target/linux/package/alsa/Makefile b/target/linux/package/alsa/Makefile index f616fa077..6ac3156e4 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 39f5f38bc..26e8b69cf 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 06c063a5e..d28550975 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 089e68e94..6a13a181c 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 4ea3be838..033cd7279 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 3ea5cf7c4..fbfd7c968 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 ecb123872..0120d702c 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)" \ |