Rules.modular: Fix file context verification.
Disabled modules were included in the file contexts, resulting in false verification errors.
This commit is contained in:
parent
a1820d2b38
commit
2b74c54f62
|
@ -5,7 +5,7 @@
|
|||
|
||||
all_modules := $(base_mods) $(mod_mods) $(off_mods)
|
||||
all_interfaces := $(all_modules:.te=.if)
|
||||
all_mod_fc := $(addprefix $(tmpdir)/,$(notdir $(all_modules:.te=.mod.fc)))
|
||||
enabled_mod_fc := $(addprefix $(tmpdir)/,$(notdir $(base_mods:.te=.mod.fc) $(mod_mods:.te=.mod.fc)))
|
||||
|
||||
base_pkg := $(builddir)base.pp
|
||||
base_fc := $(builddir)base.fc
|
||||
|
@ -31,7 +31,7 @@ vpath %.te $(all_layers)
|
|||
vpath %.if $(all_layers)
|
||||
vpath %.fc $(all_layers)
|
||||
|
||||
.SECONDARY: $(all_mod_fc:.mod.fc=.mod) $(all_mod_fc)
|
||||
.SECONDARY: $(enabled_mod_fc:.mod.fc=.mod) $(enabled_mod_fc)
|
||||
|
||||
########################################
|
||||
#
|
||||
|
@ -86,7 +86,7 @@ $(builddir)%.pp: $(tmpdir)/%.mod $(tmpdir)/%.mod.fc
|
|||
@test -d $(builddir) || mkdir -p $(builddir)
|
||||
$(verbose) $(SEMOD_PKG) -o $@ -m $< -f $<.fc
|
||||
|
||||
$(tmpdir)/all_mods.fc: $(all_mod_fc)
|
||||
$(tmpdir)/all_mods.fc: $(enabled_mod_fc)
|
||||
$(verbose) cat $^ > $@
|
||||
|
||||
########################################
|
||||
|
|
Loading…
Reference in New Issue