diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-07-31 16:13:00 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-07-31 16:13:00 +0000 |
commit | dd8226a46dcb79079f191e1a88658269e7f6ceb5 (patch) | |
tree | ec74fa1899a4f31bed9c3672ea41a8f1b7ee3247 | |
parent | 6d10c5993b6a4448bb7658f7e52fe7a9217dd040 (diff) | |
download | buildroot-novena-dd8226a46dcb79079f191e1a88658269e7f6ceb5.tar.gz buildroot-novena-dd8226a46dcb79079f191e1a88658269e7f6ceb5.zip |
- lzma needs a CXX cross-compiler
- minor cleanups while at it
-rw-r--r-- | package/lzma/Config.in | 1 | ||||
-rw-r--r-- | package/lzma/lzma.mk | 25 |
2 files changed, 16 insertions, 10 deletions
diff --git a/package/lzma/Config.in b/package/lzma/Config.in index 774d7711b..a72616fa9 100644 --- a/package/lzma/Config.in +++ b/package/lzma/Config.in @@ -1,6 +1,7 @@ config BR2_PACKAGE_LZMA_TARGET bool "Install lzma for the target system" default n + select BR2_GCC_CROSS_CXX help lzma utils on the target diff --git a/package/lzma/lzma.mk b/package/lzma/lzma.mk index 49a426ecd..ed511c9e0 100644 --- a/package/lzma/lzma.mk +++ b/package/lzma/lzma.mk @@ -24,19 +24,19 @@ $(DL_DIR)/$(LZMA_SOURCE): # ###################################################################### -$(LZMA_HOST_DIR)/.source: $(DL_DIR)/$(LZMA_SOURCE) +$(LZMA_HOST_DIR)/.unpacked: $(DL_DIR)/$(LZMA_SOURCE) $(LZMA_CAT) $(DL_DIR)/$(LZMA_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) - toolchain/patch-kernel.sh $(LZMA_HOST_DIR) package/lzma/ lzma\*.patch - touch $(LZMA_HOST_DIR)/.source + touch $@ -$(LZMA_HOST_DIR)/.configured: $(LZMA_HOST_DIR)/.source +$(LZMA_HOST_DIR)/.configured: $(LZMA_HOST_DIR)/.unpacked (cd $(LZMA_HOST_DIR); rm -f config.cache ;\ CC="$(HOSTCC)" \ CXX="$(HOSTCXX)" \ ./configure \ --prefix=/ \ ); - touch $(LZMA_HOST_DIR)/.configured; + touch $@ $(LZMA_HOST_DIR)/src/lzma/lzma: $(LZMA_HOST_DIR)/.configured $(MAKE) -C $(LZMA_HOST_DIR) all @@ -45,20 +45,24 @@ $(LZMA_HOST_DIR)/src/lzma/lzma: $(LZMA_HOST_DIR)/.configured $(STAGING_DIR)/bin/lzma: $(LZMA_HOST_DIR)/src/lzma/lzma $(MAKE) DESTDIR=$(STAGING_DIR) -C $(LZMA_HOST_DIR) install -lzma-host: uclibc $(STAGING_DIR)/bin/lzma - +lzma-host: $(STAGING_DIR)/bin/lzma +lzma-host-clean: + rm -f $(STAGING_DIR)/bin/lzma + -$(MAKE) -C $(LZMA_HOST_DIR) clean +lzma-host-dirclean: + rm -rf $(LZMA_HOST_DIR) ###################################################################### # # lzma target # ###################################################################### -$(LZMA_TARGET_DIR)/.source: $(DL_DIR)/$(LZMA_SOURCE) +$(LZMA_TARGET_DIR)/.unpacked: $(DL_DIR)/$(LZMA_SOURCE) $(LZMA_CAT) $(DL_DIR)/$(LZMA_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - toolchain/patch-kernel.sh $(LZMA_TARGET_DIR) package/lzma/ lzma\*.patch - touch $(LZMA_TARGET_DIR)/.source + touch $@ -$(LZMA_TARGET_DIR)/.configured: $(LZMA_TARGET_DIR)/.source +$(LZMA_TARGET_DIR)/.configured: $(LZMA_TARGET_DIR)/.unpacked (cd $(LZMA_TARGET_DIR); rm -f config.cache ;\ $(TARGET_CONFIGURE_OPTS) \ $(TARGET_CONFIGURE_ARGS) \ @@ -76,7 +80,7 @@ $(LZMA_TARGET_DIR)/.configured: $(LZMA_TARGET_DIR)/.source $(DISABLE_NLS) \ $(DISABLE_LARGEFILE) \ ); - touch $(LZMA_TARGET_DIR)/.configured; + touch $@ $(LZMA_TARGET_DIR)/src/lzma/lzma: $(LZMA_TARGET_DIR)/.configured $(MAKE) -C $(LZMA_TARGET_DIR) all @@ -107,6 +111,7 @@ lzma-dirclean: ############################################################# ifeq ($(strip $(BR2_PACKAGE_LZMA_HOST)),y) TARGETS+=lzma-host +HOST_SOURCE+=lzma-source endif ifeq ($(strip $(BR2_PACKAGE_LZMA_TARGET)),y) |