Changeset 410


Ignore:
Timestamp:
Oct 6, 2012, 10:10:36 PM (10 years ago)
Author:
ehem
Message:

Add the ability to for plugins to have their own Makefile included into
DebWRT's build. Document this.

Location:
branches/contrib/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/contrib/plugins/README

    r273 r410  
    33Layout:
    44
    5   plugins/<plugin-name/        - plugin directory
    6   plugins/<plugin-name/debwrt  - debwrt patches
    7   plugins/<plugin-name/openwrt - openwrt patches
    8   plugins/<plugin-name/README  - information about the plugin
     5  plugins/<plugin-name>/           - plugin directory
     6  plugins/<plugin-name>/README     - information about the plugin
     7  plugins/<plugin-name>/plugin.mk  - included as a Makefile by plugins.mk
     8  plugins/<plugin-name>/debwrt     - debwrt patches
     9  plugins/<plugin-name>/openwrt    - openwrt patches
    910
    1011All plugins are enabled by default and all patches part of the plugin will be
     
    1516make (menu)config. OpenWrt patches are automatically applied in sort order
    1617after OpenWrt has been checked out.
     18
     19plugin.mk is included by the plugins.mk Makefile.  The suggested usage is to
     20add a plugin's target as a prerequisite of an existing DebWrt target.  The
     21plugin's target will then be invoked before that DebWrt target.
    1722
    1823Make targets to manage plugings. Normally only needed when developing a plugin. Targets:
  • branches/contrib/plugins/plugins.mk

    r285 r410  
    22#
    33# Copyright (C) 2011 Johan van Zoomeren <amain@debwrt.net>
     4#
     5# Copyright (C) 2012 Elliott Mitchell <ehem+debwrt@m5p.com>
     6#       2012-10-06  merged OpenWRT patching with DebWRT's patching of OpenWRT
     7#       2012-10-06  added ability to include Makefile from plugins
    48#
    59# This program is free software: you can redistribute it and/or modify
     
    2125        PLUGIN_LIST:=$(PLUGIN)
    2226endif
     27
     28-include $(addprefix plugins/,$(addsuffix /plugin.mk,$(PLUGIN_LIST)))
     29
     30##need to resolve the -p0 vs -p1 issue first
     31## # add the plugin patches to the list of patches to OpenWRT
     32## OPENWRT_PATCH_DIRS += $(wildcard $(addprefix $(TOPDIR)/plugins/,$(addsuffix /openwrt,$(PLUGIN_LIST))))
     33
     34
    2335
    2436plugins/apply: plugins/apply-debwrt
Note: See TracChangeset for help on using the changeset viewer.