aboutsummaryrefslogtreecommitdiffstats
path: root/include/rootfs.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-07-22 12:22:16 +0200
committerFelix Fietkau <nbd@nbd.name>2016-07-29 10:18:26 +0200
commit731b166528658e0b89f6bd0e589f029eb665f7a6 (patch)
tree4b05676849fce2973bb5c49b6d99a1b3407c264f /include/rootfs.mk
parent5d30bf83039aa1089e70d8c80b6ad03ba92bfc2a (diff)
downloadupstream-731b166528658e0b89f6bd0e589f029eb665f7a6.tar.gz
upstream-731b166528658e0b89f6bd0e589f029eb665f7a6.tar.bz2
upstream-731b166528658e0b89f6bd0e589f029eb665f7a6.zip
build: add template for getting opkg package files from package names
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'include/rootfs.mk')
-rw-r--r--include/rootfs.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/rootfs.mk b/include/rootfs.mk
index 90ee312619..2143ef804d 100644
--- a/include/rootfs.mk
+++ b/include/rootfs.mk
@@ -47,6 +47,9 @@ opkg = \
--add-arch all:100 \
--add-arch $(if $(ARCH_PACKAGES),$(ARCH_PACKAGES),$(BOARD)):200
+opkg_package_files = $(wildcard \
+ $(foreach dir,$(PACKAGE_SUBDIRS), \
+ $(foreach pkg,$(1), $(dir)/$(pkg)_*.ipk)))
define prepare_rootfs
@if [ -d $(TOPDIR)/files ]; then \