aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/uClibc/utils
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-06-30 21:44:05 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-06-30 21:44:05 +0000
commitc3caa1b768728fc9daf833c55f846d6bc2362efb (patch)
tree342dfb390ad368a22b7139caa2220c45b2203fc9 /toolchain/uClibc/utils
parent59b384dabe20a4930b1c8ff4e0f48367cc080662 (diff)
downloadupstream-c3caa1b768728fc9daf833c55f846d6bc2362efb.tar.gz
upstream-c3caa1b768728fc9daf833c55f846d6bc2362efb.tar.bz2
upstream-c3caa1b768728fc9daf833c55f846d6bc2362efb.zip
uClibc: split the package into the main directory and the headers/ and utils/ subdirectories to clean up build order and fix quilt support
SVN-Revision: 32557
Diffstat (limited to 'toolchain/uClibc/utils')
-rw-r--r--toolchain/uClibc/utils/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/toolchain/uClibc/utils/Makefile b/toolchain/uClibc/utils/Makefile
new file mode 100644
index 0000000000..d9efda0e93
--- /dev/null
+++ b/toolchain/uClibc/utils/Makefile
@@ -0,0 +1,24 @@
+PATH_PREFIX=..
+
+include ../common.mk
+
+HOST_STAMP_BUILT:=$(HOST_BUILD_DIR)/.utils_built
+HOST_STAMP_INSTALLED:=$(TOOLCHAIN_DIR)/stamp/.uclibc_utils_installed
+
+define Host/Compile
+ $(SED) 's,^CROSS=.*,CROSS=$(TARGET_CROSS),g' $(HOST_BUILD_DIR)/Rules.mak
+ $(UCLIBC_MAKE) $(TOOLCHAIN_JOBS) PREFIX= utils
+endef
+
+define Host/Install
+ $(INSTALL_DIR) $(TOOLCHAIN_DIR)/bin
+ $(INSTALL_BIN) \
+ $(HOST_BUILD_DIR)/utils/ldd \
+ $(TOOLCHAIN_DIR)/bin/
+ $(INSTALL_DIR) $(TOOLCHAIN_DIR)/sbin
+ $(INSTALL_BIN) \
+ $(HOST_BUILD_DIR)/utils/ldconfig \
+ $(TOOLCHAIN_DIR)/sbin/
+endef
+
+$(eval $(call HostBuild))