ti-dmai: convert to new style staging ti-linux-utils: ditto
authorKoen Kooi <k-kooi@ti.com>
Mon, 1 Feb 2010 15:12:14 +0000 (16:12 +0100)
committerKoen Kooi <koen@openembedded.org>
Mon, 12 Apr 2010 17:43:16 +0000 (19:43 +0200)
Signed-off-by: Koen Kooi <k-kooi@ti.com>
recipes/ti/ti-dmai_svn.bb
recipes/ti/ti-linuxutils.inc

index a04f4dd..897eac3 100644 (file)
@@ -1,10 +1,11 @@
 DESCRIPTION = "DMAI for TI ARM/DSP processors"
 
 require ti-paths.inc
+require ti-staging.inc
 inherit module-base
 
 #This is a kernel module, don't set PR directly
-MACHINE_KERNEL_PR_append = "d"
+MACHINE_KERNEL_PR_append = "e"
 
 # Yes, the xdc stuff still breaks with a '.' in PWD
 PE = "1"
@@ -106,28 +107,26 @@ do_compile () {
 }
 
 do_install () {
-       unset DMAI_INSTALL_DIR
-       # install dmai apps on target
+    unset DMAI_INSTALL_DIR
+    # install dmai apps on target
     install -d ${D}/${installdir}/dmai-apps
     cd ${S}/dmai
     make PLATFORM="${TARGET}" EXEC_DIR=${D}/${installdir}/dmai-apps install 
-       install -m 0755 ${WORKDIR}/loadmodules-ti-dmai-${TARGET}.sh ${D}/${installdir}/dmai-apps/loadmodule.sh 
+    install -m 0755 ${WORKDIR}/loadmodules-ti-dmai-${TARGET}.sh ${D}/${installdir}/dmai-apps/loadmodule.sh 
 
     install -d ${D}/${installdir}/dmai-tests
     cd ${S}/tests
     make PLATFORM="${TARGET}" EXEC_DIR=${D}/${installdir}/dmai-tests install 
-       install -m 0755 ${WORKDIR}/loadmodules-ti-dmai-${TARGET}.sh ${D}/${installdir}/dmai-tests/loadmodule.sh 
+    install -m 0755 ${WORKDIR}/loadmodules-ti-dmai-${TARGET}.sh ${D}/${installdir}/dmai-tests/loadmodule.sh 
+
+    install -d ${D}${DMAI_INSTALL_DIR_RECIPE}
+    cp -pPrf ${S}/dmai/* ${D}${DMAI_INSTALL_DIR_RECIPE}
 }
 
 pkg_postinst_ti-dmai-apps () {
        ln -sf ${installdir}/codec-combo/* ${installdir}/dmai-apps/
 }
 
-do_stage () {
-       install -d ${DMAI_INSTALL_DIR}
-       cp -pPrf ${S}/dmai/* ${DMAI_INSTALL_DIR}
-}
-
 # Disable QA check untils we figure out how to pass LDFLAGS in build
 INSANE_SKIP_${PN} = True
 INSANE_SKIP_ti-dmai-apps = True
index d96477d..ae48f8e 100644 (file)
@@ -6,9 +6,10 @@ SRC_URI = "${BASE_SRC_URI}/linuxutils_${PV}.tar.gz "
 S = "${WORKDIR}/linuxutils_${PV}"
 
 require ti-multimedia-common.inc
+require ti-staging.inc
 
 #This is a kernel module, don't set PR directly
-MACHINE_KERNEL_PR_append = "a"
+MACHINE_KERNEL_PR_append = "b"
 
 inherit module
 
@@ -57,14 +58,15 @@ do_install () {
          EXEC_DIR="${D}${installdir}/ti-linuxutils-app/edma-app" \
          install
     fi
-}
 
-# stage tree - other packages may need this
-do_stage() {
-    install -d ${LINUXUTILS_INSTALL_DIR}
-    cp -pPrf ${S}/* ${LINUXUTILS_INSTALL_DIR}
+    # stage tree - other packages may need this
+    install -d ${D}${LINUXUTILS_INSTALL_DIR_RECIPE}
+    cp -pPrf ${S}/* ${D}${LINUXUTILS_INSTALL_DIR_RECIPE}
 }
 
+
+
+
 PACKAGES =+ " ti-cmem-module \
               ti-sdma-module \
               ti-edma-module \