Changeset 34390


Ignore:
Timestamp:
2012-11-27T19:08:42+01:00 (5 years ago)
Author:
jow
Message:

trace-cmd: lazily evaluate extra plugins list, fixes stray build errors causing by missing operands to cp if the package was never built yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/devel/trace-cmd/Makefile

    r34002 r34390  
    3636 
    3737PLUGINS_DIR := $(PKG_INSTALL_DIR)/usr/lib/trace-cmd/plugins 
    38 PLUGINS_ALL = $(patsubst $(PLUGINS_DIR)/plugin_%.so,%,$(wildcard $(PLUGINS_DIR)/plugin_*.so)) 
    3938PLUGINS_MAIN := function hrtimer mac80211 sched_switch 
    40 PLUGINS_EXTRA = $(filter-out $(PLUGINS_MAIN),$(PLUGINS_ALL)) 
    4139 
    4240TARGET_CFLAGS += --std=gnu99 
     
    5351        $(INSTALL_DIR) $(1)/usr/lib/trace-cmd/plugins 
    5452        $(CP) \ 
    55                 $(patsubst %,$(PLUGINS_DIR)/plugin_%.so,$(PLUGINS_EXTRA)) \ 
     53                $$(patsubst %,$(PLUGINS_DIR)/plugin_%.so, \ 
     54                        $$(filter-out $(PLUGINS_MAIN), \ 
     55                                $$(patsubst $(PLUGINS_DIR)/plugin_%.so,%, \ 
     56                                        $$(wildcard $(PLUGINS_DIR)/plugin_*.so)))) \ 
    5657                $(1)/usr/lib/trace-cmd/plugins 
    5758endef 
Note: See TracChangeset for help on using the changeset viewer.