diff --git a/package/refpolicy/refpolicy.mk b/package/refpolicy/refpolicy.mk index dc038001bd..edfbb3542c 100644 --- a/package/refpolicy/refpolicy.mk +++ b/package/refpolicy/refpolicy.mk @@ -105,12 +105,13 @@ define REFPOLICY_CONFIGURE_CMDS $(SED) "/MONOLITHIC/c\MONOLITHIC = y" $(@D)/build.conf $(SED) "/NAME/c\NAME = targeted" $(@D)/build.conf $(REFPOLICY_CONFIGURE_SYSTEMD) + $(REFPOLICY_COPY_EXTRA_MODULES) + $(REFPOLICY_MAKE) -C $(@D) bare conf + $(REFPOLICY_CONFIGURE_MODULES) endef define REFPOLICY_BUILD_CMDS - $(REFPOLICY_COPY_EXTRA_MODULES) - $(REFPOLICY_MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) bare conf - $(REFPOLICY_CONFIGURE_MODULES) + $(REFPOLICY_MAKE) -C $(@D) policy endef define REFPOLICY_INSTALL_STAGING_CMDS