summaryrefslogtreecommitdiffstats
path: root/rules/post/image_ipkg.make
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2010-01-24 18:24:56 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2010-01-24 20:05:26 +0100
commitc05b530ed07a457f3f911e8bb98a0b7c7aa26890 (patch)
treedf0c588f33ef78e270e31873a60045cd1e67dbad /rules/post/image_ipkg.make
parent367748d431a4b5bb0aa5cce5de21ced12475fcd5 (diff)
downloadptxdist-c05b530ed07a457f3f911e8bb98a0b7c7aa26890.tar.gz
ptxdist-c05b530ed07a457f3f911e8bb98a0b7c7aa26890.tar.xz
[image_ipkg] add option to generate ipkg index
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'rules/post/image_ipkg.make')
-rw-r--r--rules/post/image_ipkg.make11
1 files changed, 11 insertions, 0 deletions
diff --git a/rules/post/image_ipkg.make b/rules/post/image_ipkg.make
index 4b62982fb..f6f03fff1 100644
--- a/rules/post/image_ipkg.make
+++ b/rules/post/image_ipkg.make
@@ -1,6 +1,7 @@
# -*-makefile-*-
#
# Copyright (C) 2003-2009 by the ptxdist project <ptxdist@pengutronix.de>
+# 2010 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
@@ -19,4 +20,14 @@ $(STATEDIR)/ipkg-push: $(STATEDIR)/host-ipkg-utils.install.post
--project $(call remove_quotes,$(PTXCONF_PROJECT)) \
--dist $(call remove_quotes,$(PTXCONF_PROJECT)$(PTXCONF_PROJECT_VERSION))
+
+SEL_ROOTFS-$(PTXCONF_IMAGE_IPKG_INDEX) += $(PKGDIR)/Packages
+
+PHONY += $(PKGDIR)/Packages
+$(PKGDIR)/Packages: $(STATEDIR)/host-ipkg-utils.install.post
+ @echo -n "generating ipkg index '$(notdir $@)'..."
+ @$(HOST_ENV) \
+ ipkg-make-index -p "$(@)" "$(PKGDIR)" >/dev/null 2>&1
+ @echo "done"
+
# vim: syntax=make