From 51cf2fad408c71f78b17441266ccc3b0f24cadf9 Mon Sep 17 00:00:00 2001 From: Jacob Stiffler Date: Wed, 4 Nov 2015 01:47:07 +0000 Subject: [PATCH] aif2-lld: Clean up recipes * Use INC_PR to track recipe revisions * Define variables for GIT SRC_URI parameters Signed-off-by: Jacob Stiffler Signed-off-by: Denys Dmytriyenko --- recipes-bsp/aif2-lld/aif2-lld-test_git.bb | 2 ++ recipes-bsp/aif2-lld/aif2-lld.inc | 17 +++++++++++++---- recipes-bsp/aif2-lld/aif2-lld_git.bb | 2 ++ 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/recipes-bsp/aif2-lld/aif2-lld-test_git.bb b/recipes-bsp/aif2-lld/aif2-lld-test_git.bb index 2a9de433..9180b953 100755 --- a/recipes-bsp/aif2-lld/aif2-lld-test_git.bb +++ b/recipes-bsp/aif2-lld/aif2-lld-test_git.bb @@ -4,6 +4,8 @@ DEPENDS = "common-csl-ip aif2-lld qmss-lld cppi-lld" include aif2-lld.inc +PR = "${INC_PR}.0" + EXTRA_OEMAKE = "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR} AIF2_SRC_DIR=${WORKDIR}/git" do_compile () { diff --git a/recipes-bsp/aif2-lld/aif2-lld.inc b/recipes-bsp/aif2-lld/aif2-lld.inc index 212813c2..cd1e1695 100755 --- a/recipes-bsp/aif2-lld/aif2-lld.inc +++ b/recipes-bsp/aif2-lld/aif2-lld.inc @@ -1,13 +1,22 @@ LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://COPYING.txt;md5=5bdceac872dffdec915b819654ee23ea" -BRANCH = "master" -SRC_URI = "git://git.ti.com/keystone-rtos/aif2-lld.git;destsuffix=git/ti/drv/aif2;protocol=git;branch=${BRANCH}" + +AIF2_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/aif2-lld.git" +AIF2_LLD_GIT_PROTOCOL = "git" +AIF2_LLD_GIT_BRANCH = "master" +AIF2_LLD_GIT_DESTSUFFIX = "git/ti/drv/aif2" + # The following commit correspond to DEV.AIF2LLD.01.02.00.00A -SRCREV = "7f394ec9975cd4cef982b11763c882c4c763ddce" +AIF2_LLD_SRCREV = "7f394ec9975cd4cef982b11763c882c4c763ddce" + +BRANCH = "${AIF2_LLD_GIT_BRANCH}" +SRC_URI = "${AIF2_LLD_GIT_URI};destsuffix=${AIF2_LLD_GIT_DESTSUFFIX};protocol=${AIF2_LLD_GIT_PROTOCOL};branch=${BRANCH}" +SRCREV = "${AIF2_LLD_SRCREV}" PV = "1.2.0.0" +INC_PR = "r1" COMPATIBLE_MACHINE = "k2hk-evm" -S = "${WORKDIR}/git/ti/drv/aif2" +S = "${WORKDIR}/${AIF2_LLD_GIT_DESTSUFFIX}" diff --git a/recipes-bsp/aif2-lld/aif2-lld_git.bb b/recipes-bsp/aif2-lld/aif2-lld_git.bb index f6e95c28..f310b17b 100755 --- a/recipes-bsp/aif2-lld/aif2-lld_git.bb +++ b/recipes-bsp/aif2-lld/aif2-lld_git.bb @@ -4,6 +4,8 @@ DEPENDS = "common-csl-ip qmss-lld cppi-lld" include aif2-lld.inc +PR = "${INC_PR}.0" + EXTRA_OEMAKE = "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR}" do_compile () {