blob: 4e6da0e64719b6a1269626c21b2c8f66c9113097 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
## Define module metadata.
## It is mandatory for every module to use this template.
##
## $(1) module name (uppercase)
## $(2) module name (lowercase)
## $(3) list of prerequisite modules (uppercase)
##
define import.MODULE.defs
## indicates module is defined; useful for conditionals
$(1).enabled = 1
## module name (lowercase)
$(1).name = $(2)
## list of prerequisite modules (uppercase)
$(1).prerequisites = $(3)
## add to global list of modules
MODULES.NAMES += $(1)
MODULES.names += $(2)
endef
##
## $(1) module name (uppercase)
##
define import.MODULE.rules
.PHONY: $($(1).name).build $($(1).name).clean
$($(1).name).report:
@$(MAKE) report.true REPORT=module REPORT.module=$(1)
## aggregate
report.modules:: $($(1).name).report
endef
|