[oe-commits] org.oe.dev usb-gadget-mode.bb : fix the install to create /etc/default before putting

xora commit openembedded-commits at lists.openembedded.org
Thu Jun 7 09:39:09 UTC 2007


usb-gadget-mode.bb : fix the install to create /etc/default before putting
files in it. Also fix all the install paths to use bitbake.conf vars.

Author: xora at openembedded.org
Branch: org.openembedded.dev
Revision: c2872048d9bdc1e2243686a61bf7980cd063f42e
ViewMTN: http://monotone.openembedded.org/revision.psp?id=c2872048d9bdc1e2243686a61bf7980cd063f42e
Files:
1
packages/usb-gadget-mode/usb-gadget-mode.bb
Diffs:

#
# mt diff -r7c5741a3a4f2a7ad883bd3230a46e4c9ebac2106 -rc2872048d9bdc1e2243686a61bf7980cd063f42e
#
# 
# 
# patch "packages/usb-gadget-mode/usb-gadget-mode.bb"
#  from [3d3ee2ebfd57b8099099fc66590709a9d6dd03d7]
#    to [f7ab66d1eb201c5aa314f4f38a0edb48bec097a6]
# 
============================================================
--- packages/usb-gadget-mode/usb-gadget-mode.bb	3d3ee2ebfd57b8099099fc66590709a9d6dd03d7
+++ packages/usb-gadget-mode/usb-gadget-mode.bb	f7ab66d1eb201c5aa314f4f38a0edb48bec097a6
@@ -15,7 +15,7 @@ PV = "0.0.1"
 ######################################################################################
 
 PV = "0.0.1"
-PR = "r1"
+PR = "r2"
 
 ######################################################################################
 
@@ -30,13 +30,14 @@ do_install() {
 ######################################################################################
 
 do_install() {
-	install -d ${D}/etc
-	install -d ${D}/etc/init.d	
-	install -d ${D}/usr/bin
+	install -d ${D}${sysconfdir}
+	install -d ${D}${sysconfdir}/init.d
+	install -d ${D}${bindir}
+	install -d ${D}${sysconfdir}/default
 
-	install -m 0644 ${WORKDIR}/usb-gadget.conf ${D}/etc/default/usb-gadget
-	install -m 0755 ${WORKDIR}/usb-gadget.init ${D}/etc/init.d/usb-gadget
-	install -m 0755 ${WORKDIR}/usb-gadget ${D}/usr/bin
+	install -m 0644 ${WORKDIR}/usb-gadget.conf ${D}${sysconfdir}/default/usb-gadget
+	install -m 0755 ${WORKDIR}/usb-gadget.init ${D}${sysconfdir}/init.d/usb-gadget
+	install -m 0755 ${WORKDIR}/usb-gadget ${D}${bindir}
 }
 
 pkg_postinst() {	






More information about the Openembedded-commits mailing list