mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 21:00:37 +02:00
trace-cmd: lazily evaluate extra plugins list, fixes stray build errors causing by missing operands to cp if the package was never built yet
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34390 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
6f86c4bd05
commit
7dec93c04e
@ -35,9 +35,7 @@ MAKE_FLAGS += \
|
|||||||
prefix=/usr
|
prefix=/usr
|
||||||
|
|
||||||
PLUGINS_DIR := $(PKG_INSTALL_DIR)/usr/lib/trace-cmd/plugins
|
PLUGINS_DIR := $(PKG_INSTALL_DIR)/usr/lib/trace-cmd/plugins
|
||||||
PLUGINS_ALL = $(patsubst $(PLUGINS_DIR)/plugin_%.so,%,$(wildcard $(PLUGINS_DIR)/plugin_*.so))
|
|
||||||
PLUGINS_MAIN := function hrtimer mac80211 sched_switch
|
PLUGINS_MAIN := function hrtimer mac80211 sched_switch
|
||||||
PLUGINS_EXTRA = $(filter-out $(PLUGINS_MAIN),$(PLUGINS_ALL))
|
|
||||||
|
|
||||||
TARGET_CFLAGS += --std=gnu99
|
TARGET_CFLAGS += --std=gnu99
|
||||||
|
|
||||||
@ -52,7 +50,10 @@ endef
|
|||||||
define Package/trace-cmd-extra/install
|
define Package/trace-cmd-extra/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/trace-cmd/plugins
|
$(INSTALL_DIR) $(1)/usr/lib/trace-cmd/plugins
|
||||||
$(CP) \
|
$(CP) \
|
||||||
$(patsubst %,$(PLUGINS_DIR)/plugin_%.so,$(PLUGINS_EXTRA)) \
|
$$(patsubst %,$(PLUGINS_DIR)/plugin_%.so, \
|
||||||
|
$$(filter-out $(PLUGINS_MAIN), \
|
||||||
|
$$(patsubst $(PLUGINS_DIR)/plugin_%.so,%, \
|
||||||
|
$$(wildcard $(PLUGINS_DIR)/plugin_*.so)))) \
|
||||||
$(1)/usr/lib/trace-cmd/plugins
|
$(1)/usr/lib/trace-cmd/plugins
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user