diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-12-02 18:30:42 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-12-02 18:30:42 +0000 |
commit | 89657b0216967e951e80dc07dd198de963a96d34 (patch) | |
tree | f125089ce4915164743fbb5682ab70cf6148c7cd /toolchain/uClibc/uclibc.mk | |
parent | 4ea7521817e3cd5e965794d37b2aef205d16481e (diff) |
- provide a 'make uclibc-config' target to make target specific configuration easy.
Diffstat (limited to 'toolchain/uClibc/uclibc.mk')
-rw-r--r-- | toolchain/uClibc/uclibc.mk | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/toolchain/uClibc/uclibc.mk b/toolchain/uClibc/uclibc.mk index ca1e49a6b..b0f17e274 100644 --- a/toolchain/uClibc/uclibc.mk +++ b/toolchain/uClibc/uclibc.mk @@ -65,7 +65,7 @@ $(UCLIBC_DIR)/.unpacked: $(DL_DIR)/$(UCLIBC_SOURCE) touch $(UCLIBC_DIR)/.unpacked uclibc-configured: dependencies kernel-headers $(UCLIBC_DIR)/.configured -$(UCLIBC_DIR)/.configured: $(UCLIBC_DIR)/.unpacked +$(UCLIBC_DIR)/.prepared: $(UCLIBC_DIR)/.unpacked cp $(UCLIBC_CONFIG_FILE) $(UCLIBC_DIR)/.config $(SED) 's,^CROSS_COMPILER_PREFIX=.*,CROSS_COMPILER_PREFIX="$(TARGET_CROSS)",g' \ -e 's,# TARGET_$(UCLIBC_TARGET_ARCH) is not set,TARGET_$(UCLIBC_TARGET_ARCH)=y,g' \ @@ -123,6 +123,9 @@ endif mkdir -p $(TOOL_BUILD_DIR)/uClibc_dev/usr/include mkdir -p $(TOOL_BUILD_DIR)/uClibc_dev/usr/lib mkdir -p $(TOOL_BUILD_DIR)/uClibc_dev/lib + touch $(UCLIBC_DIR)/.prepared + +$(UCLIBC_DIR)/.configured: $(UCLIBC_DIR)/.prepared $(MAKE1) -C $(UCLIBC_DIR) \ PREFIX=$(TOOL_BUILD_DIR)/uClibc_dev/ \ DEVEL_PREFIX=/usr/ \ @@ -140,6 +143,16 @@ $(UCLIBC_DIR)/lib/libc.a: $(UCLIBC_DIR)/.configured $(LIBFLOAT_TARGET) all touch -c $(UCLIBC_DIR)/lib/libc.a +uclibc-menuconfig: $(UCLIBC_DIR)/.prepared + $(MAKE1) -C $(UCLIBC_DIR) \ + PREFIX=$(TOOL_BUILD_DIR)/uClibc_dev/ \ + DEVEL_PREFIX=/usr/ \ + RUNTIME_PREFIX=$(TOOL_BUILD_DIR)/uClibc_dev/ \ + HOSTCC="$(HOSTCC)" \ + menuconfig && \ + touch $(UCLIBC_DIR)/.configured + + $(STAGING_DIR)/lib/libc.a: $(UCLIBC_DIR)/lib/libc.a $(MAKE1) -C $(UCLIBC_DIR) \ PREFIX= \ |