[PATCH] fastboot: opkg: Do not run opkg-cl configure everytime.
Chia-I Wu
olv at openmoko.com
Tue Oct 28 10:55:24 CET 2008
---
packages/opkg/opkg_svn.bb | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/packages/opkg/opkg_svn.bb b/packages/opkg/opkg_svn.bb
index d53fb11..79245cf 100644
--- a/packages/opkg/opkg_svn.bb
+++ b/packages/opkg/opkg_svn.bb
@@ -1,5 +1,7 @@
require opkg.inc
+PR = "r0.1"
+
PACKAGES =+ "libopkg-dev libopkg"
FILES_libopkg-dev = "${libdir}/*.a ${libdir}/*.la ${libdir}/*.so"
@@ -16,9 +18,12 @@ if [ "x$D" != "x" ]; then
install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d
# this happens at S98 where our good 'ole packages script used to run
echo "#!/bin/sh
-opkg-cl configure
-" > ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${OPKG_INIT_POSITION}configure
- chmod 0755 ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${OPKG_INIT_POSITION}configure
+
+if ! test -f /etc/.configured; then
+ opkg-cl configure
+fi
+" > ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${OPKG_INIT_POSITION}configure.sh
+ chmod 0755 ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${OPKG_INIT_POSITION}configure.sh
fi
update-alternatives --install ${bindir}/opkg opkg ${bindir}/opkg-cl 100
--
1.5.6.5
--zYM0uCDKw75PZbzx
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: inline; filename="0013-fastboot-sysvinit-Simplify-rc-and-rcS.patch"
More information about the devel
mailing list