summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-01-19 18:33:40 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-01-19 18:33:40 +0000
commitf74967da5cedf16a5ae3fa4d65b8e6272b8f20dc (patch)
tree48848bd63c03e1b5fcab61eb1651a6043bab9bf4 /package
parentb5136193e6d0e455a08158ccfcb9c735f728d433 (diff)
downloadbuildroot-novena-f74967da5cedf16a5ae3fa4d65b8e6272b8f20dc.tar.gz
buildroot-novena-f74967da5cedf16a5ae3fa4d65b8e6272b8f20dc.zip
- make sure to pass the target cflags in
Diffstat (limited to 'package')
-rw-r--r--package/microcom/microcom.mk12
1 files changed, 7 insertions, 5 deletions
diff --git a/package/microcom/microcom.mk b/package/microcom/microcom.mk
index f8a3ecbdb..1f7a758d2 100644
--- a/package/microcom/microcom.mk
+++ b/package/microcom/microcom.mk
@@ -37,20 +37,22 @@ microcom-source: $(DL_DIR)/$(MICROCOM_SOURCE)
$(MICROCOM_DIR)/.unpacked: $(DL_DIR)/$(MICROCOM_SOURCE)
mkdir -p $(MICROCOM_DIR)
$(ZCAT) $(DL_DIR)/$(MICROCOM_SOURCE) | tar -C $(MICROCOM_DIR) $(TAR_OPTIONS) -
- touch $(MICROCOM_DIR)/.unpacked
+ toolchain/patch-kernel.sh $(MICROCOM_DIR) package/microcom/ \*.patch
+ touch $@
$(MICROCOM_DIR)/.configured: $(MICROCOM_DIR)/.unpacked
- $(SED) 's~gcc~${TARGET_CC}~' $(MICROCOM_DIR)/Makefile
- touch $(MICROCOM_DIR)/.configured
+ $(SED) 's~gcc~$$(CC)~' -e 's~-O~$$(CFLAGS)~' $(MICROCOM_DIR)/Makefile
+ touch $@
$(MICROCOM_DIR)/microcom: $(MICROCOM_DIR)/.configured
- $(MAKE) -C $(MICROCOM_DIR)
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(MICROCOM_DIR)
$(TARGET_DIR)/usr/bin/microcom: $(MICROCOM_DIR)/microcom
install -c $(MICROCOM_DIR)/microcom $(TARGET_DIR)/usr/bin/microcom
microcom-clean:
- rm $(MICROCOM_DIR)/*.o
+ rm -f $(MICROCOM_DIR)/*.o $(MICROCOM_DIR)/microcom \
+ $(TARGET_DIR)/usr/bin/microcom
microcom-dirclean:
rm -rf $(MICROCOM_DIR)