Fix inclusion of profile-specific packages from OpenWRT
This commit is contained in:
parent
d88fd8f8eb
commit
7087e591c0
11
Makefile
11
Makefile
@ -69,21 +69,30 @@ include tools/Makefile
|
|||||||
include toolchain/Makefile
|
include toolchain/Makefile
|
||||||
|
|
||||||
BOARD := ar71xx
|
BOARD := ar71xx
|
||||||
|
override SUBTARGET := generic
|
||||||
|
|
||||||
PROFILES :=
|
PROFILES :=
|
||||||
PROFILE_PACKAGES :=
|
PROFILE_PACKAGES :=
|
||||||
|
|
||||||
gluon_prepared_stamp := $(GLUON_BUILDDIR)/$(BOARD)/prepared
|
gluon_prepared_stamp := $(GLUON_BUILDDIR)/$(BOARD)/prepared
|
||||||
|
|
||||||
|
|
||||||
|
define Profile
|
||||||
|
$(eval $(call Profile/Default))
|
||||||
|
$(eval $(call Profile/$(1)))
|
||||||
|
$(1)_PACKAGES := $(PACKAGES)
|
||||||
|
endef
|
||||||
|
|
||||||
define GluonProfile
|
define GluonProfile
|
||||||
image/$(1): $(gluon_prepared_stamp)
|
image/$(1): $(gluon_prepared_stamp)
|
||||||
+$(GLUONMAKE) image PROFILE="$(1)" V=s$(OPENWRT_VERBOSE)
|
+$(GLUONMAKE) image PROFILE="$(1)" V=s$(OPENWRT_VERBOSE)
|
||||||
|
|
||||||
PROFILES += $(1)
|
PROFILES += $(1)
|
||||||
PROFILE_PACKAGES += $(filter-out -%,$(2) $(GLUON_$(1)_SITE_PACKAGES))
|
PROFILE_PACKAGES += $(filter-out -%,$($(1)_PACKAGES) $(2) $(GLUON_$(1)_SITE_PACKAGES))
|
||||||
GLUON_$(1)_DEFAULT_PACKAGES := $(2)
|
GLUON_$(1)_DEFAULT_PACKAGES := $(2)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/target.mk
|
||||||
include $(GLUONDIR)/include/profiles.mk
|
include $(GLUONDIR)/include/profiles.mk
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user