|
@@ -168,6 +168,12 @@ pkg-patches-dirs = \
|
|
$(or $(wildcard $(dir)/$($(1)_VERSION)),$(dir)),\
|
|
$(or $(wildcard $(dir)/$($(1)_VERSION)),$(dir)),\
|
|
$(dir))))
|
|
$(dir))))
|
|
|
|
|
|
|
|
+pkg-patches-url = $(foreach patch,$($(1)_PATCH),\
|
|
|
|
+ $(if $(findstring ://,$(patch)),$(patch),\
|
|
|
|
+ $($(1)_SITE_METHOD)+$($(1)_SITE)/$(patch)))
|
|
|
|
+
|
|
|
|
+pkg-patches-list = $(foreach patchdir,$(call pkg-patches-dirs,$(1)),$(wildcard $(addsuffix /*.patch,$(patchdir)))) $(call pkg-patches-url,$(1))
|
|
|
|
+
|
|
define _json-info-pkg-details
|
|
define _json-info-pkg-details
|
|
"version": $(call mk-json-str,$($(1)_DL_VERSION)),
|
|
"version": $(call mk-json-str,$($(1)_DL_VERSION)),
|
|
"licenses": $(call mk-json-str,$($(1)_LICENSE)),
|
|
"licenses": $(call mk-json-str,$($(1)_LICENSE)),
|
|
@@ -190,6 +196,13 @@ define _json-info-pkg-details
|
|
},
|
|
},
|
|
)
|
|
)
|
|
],
|
|
],
|
|
|
|
+ "patches": [
|
|
|
|
+ $(foreach patch, \
|
|
|
|
+ $(call pkg-patches-list,$(1)), \
|
|
|
|
+ $(call mk-json-str,$(patsubst $(CONFIG_DIR)/%,%,$(patch)))$(comma) \
|
|
|
|
+
|
|
|
|
+ )
|
|
|
|
+ ],
|
|
endef
|
|
endef
|
|
|
|
|
|
define _json-info-fs
|
|
define _json-info-fs
|