diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-03-21 17:53:00 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-03-21 17:53:00 +0000 |
commit | 2c9a56bd3c5d54356877a023879b9f2e6529063d (patch) | |
tree | ca1e8f0c1164cc3f5ba2762031eec7042fb39c76 /package/microcom/microcom.mk | |
parent | 8db2e4f50d3dc36678b26fb8548de2b4c69166c3 (diff) |
- support BR2_PREFER_IMA for microcom
Diffstat (limited to 'package/microcom/microcom.mk')
-rw-r--r-- | package/microcom/microcom.mk | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/package/microcom/microcom.mk b/package/microcom/microcom.mk index 4fd7ca16b..a57b882f2 100644 --- a/package/microcom/microcom.mk +++ b/package/microcom/microcom.mk @@ -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 |