- support BR2_PREFER_IMA for microcom
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 21 Mar 2007 17:53:00 +0000 (17:53 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 21 Mar 2007 17:53:00 +0000 (17:53 -0000)
package/microcom/microcom.mk

index 4fd7ca16b2d651cac8b4f1ebaf6fb7809ff526fd..a57b882f2c8b1316044564377f30381ff7a28b27 100644 (file)
@@ -45,10 +45,14 @@ $(MICROCOM_DIR)/.configured: $(MICROCOM_DIR)/.unpacked
        touch $@
 
 $(MICROCOM_DIR)/microcom: $(MICROCOM_DIR)/.configured
+ifeq ($(BR2_PREFER_IMA),y)
+       (cd $(MICROCOM_DIR) ; \
+        $(TARGET_CC) $(TARGET_CFLAGS) $(CFLAGS_COMBINE) \
+               $(CFLAGS_WHOLE_PROGRAM) -o $@ $(wildcard $(MICROCOM_DIR)/*.c); \
+       )
+else
        $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS)" $(MAKE) -C $(MICROCOM_DIR)
-       #(cd $(MICROCOM_DIR) ; \
-       # $(TARGET_CC) $(TARGET_CFLAGS) --combine -fwhole-program -o $@ $(wildcard $(MICROCOM_DIR)/*.c); \
-       #)
+endif
        $(STRIP) -s $@
 
 $(TARGET_DIR)/usr/bin/microcom: $(MICROCOM_DIR)/microcom