Changeset 489


Ignore:
Timestamp:
Nov 9, 2012, 12:56:46 AM (10 years ago)
Author:
ehem
Message:

Disable this again, this works in my environment, but since it seems to break
builds elsewhere...

File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/contrib/plugins/example/plugin.mk.example

    r488 r489  
    2626# This handles enabling/disabling the example plugin
    2727#
    28 ifeq($(CONFIG_$(PLUGIN_VAR)_ENABLE),y)
     28ifeq ($(CONFIG_$(PLUGIN_VAR)_ENABLE),y)
    2929
    3030#
    31 # TODO: check UUID and CONFVER
     31# Here we check the UUID and configuration version from the .config.  They
     32# should match us, if they don't something has happened.
    3233#
    33 # "50b4589d-6e13-4514-b57e-a7ec36e056b3" and "1.0"
     34ifneq ("50b4589d-6e13-4514-b57e-a7ec36e056b3",$(CONFIG_$(PLUGIN_VAR)_UUID))
     35$(error Configuration for $(PLUGIN_NAME) out of date/mismatched, reconfigure to fix.)
     36endif
     37ifneq ("1.0",$(CONFIG_$(PLUGIN_VAR)_CONFVER))
     38$(warn $(PLUGIN_NAME) is version 1.0, configuration is version $(call qstrip,$(CONFIG_$(PLUGIN_VAR)_CONFVER)), results may not be good.)
     39endif
     40
     41#
     42# This would cause our patches to be applied to the OpenWRT download, check
     43# openwrt/patches/README for the naming rules (they are important!).  This will
     44# apply patches in openwrt/all to function on all branches and then include
     45# patches from branch-specific subdirectory.  This is eval'd since we need
     46# $(PLUGIN_PATH), which references $(PLUGIN_ID) to be expanded now, while
     47# $(PLUGIN_ID) is valid.
     48#
     49#$(eval OPENWRT_PATCH_DIRS += "$(PLUGIN_PATH)/openwrt/all" \
     50#       $(PLUGIN_PATH)/openwrt/$(OPENWRT_BRANCH))
     51#
     52# A line like this follows the traditional behavior for plugin patches to the
     53# OpenWRT build portion.  All patches in the directory will be used, but you
     54# can use the filename to restrict patches to a specific OpenWRT branch (see
     55# openwrt/patches/README).  This is eval'd since we need $(PLUGIN_PATH), which
     56# references $(PLUGIN_ID) to be expanded now, while $(PLUGIN_ID) is valid.
     57#
     58#$(eval OPENWRT_PATCH_DIRS += "$(PLUGIN_PATH)/openwrt")
    3459
    3560#
     
    5782# $(PLUGIN_ID) will no longer exist.
    5883#
    59 $(PLUGIN_RULE)/test: PLUGIN_ID := $(PLUGIN_ID)
     84$(PLUGIN_RULE)/test $(PLUGIN_RULE)/unplug: PLUGIN_ID := $(PLUGIN_ID)
    6085
    6186#
     
    6590#
    6691$(PLUGIN_RULE)/test:
    67         @echo I\'m located in the directory \"$(PLUGIN_NAME)\", the variable is \"$($(PLUGIN_VAR)_TESTVAR)\", my id is $(PLUGIN_ID) you are number 6
     92        @echo I\'m located in the directory \"$(PLUGIN_NAME)\", the variable is \"$($(PLUGIN_VAR)_TESTVAR)\"\; my id is $(PLUGIN_ID)\; you are number 6
    6893
     94#
     95# This adds us as a prerequisite of the "plugins/unplug" rule.  This is for
     96# removal of our plugin.  This is unconditional since if we need to remove all
     97# traces of ourself, whether or not we're actually enabled in the current
     98# configuration.
     99#
     100plugins/unplug: $(PLUGIN_RULE)/unplug
     101
     102#
     103# If any files in the DebWRT tree were modified, we need to remove those
     104# modifications now.  Since this example plugin doesn't do that, we simply
     105# produce a pithy message.
     106#
     107$(PLUGIN_RULE)/unplug:
     108        @echo Help\! Help\! I\'m being repressed\! I\'m number $(PLUGIN_ID), and I\'m being removed\!
     109
Note: See TracChangeset for help on using the changeset viewer.