summaryrefslogtreecommitdiffstats
path: root/rules/opkg.make
diff options
context:
space:
mode:
authorGeorge McCollister <george.mccollister@gmail.com>2011-04-28 16:13:23 -0500
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-04-29 09:53:14 +0200
commitb40381a2710fcb71c5509a934641fbb814a97863 (patch)
treee0625ceab149252e3b905f3a797c0f759fe56677 /rules/opkg.make
parent4cb72aa4b1757a9d735a1be087c20ff8fe03e06d (diff)
downloadptxdist-b40381a2710fcb71c5509a934641fbb814a97863.tar.gz
ptxdist-b40381a2710fcb71c5509a934641fbb814a97863.tar.xz
opkg: Added option to install config
/etc/opkg/opkg.conf can now be installed on the target. Signed-off-by: George McCollister <george.mccollister@gmail.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/opkg.make')
-rw-r--r--rules/opkg.make8
1 files changed, 8 insertions, 0 deletions
diff --git a/rules/opkg.make b/rules/opkg.make
index 4c80d1d40..6c18619ec 100644
--- a/rules/opkg.make
+++ b/rules/opkg.make
@@ -98,6 +98,14 @@ endif
# # opkg tries to write to the OPKG_STATE_DIR_PREFIX, which is /usr/lib/opkg
@$(call install_link, opkg, ../../tmp, /usr/lib/opkg)
+ifdef PTXCONF_OPKG_OPKG_CONF
+ @$(call install_alternative, opkg, 0, 0, 0644, /etc/opkg/opkg.conf)
+ @$(call install_replace, opkg, /etc/opkg/opkg.conf, @SRC@, \
+ $(PTXCONF_OPKG_OPKG_CONF_URL))
+ @$(call install_replace, opkg, /etc/opkg/opkg.conf, @ARCH@, \
+ $(PTXDIST_IPKG_ARCH_STRING))
+endif
+
@$(call install_finish, opkg)
@$(call touch)