Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id EF428E00BE0; Tue, 20 Dec 2016 12:41:36 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from fllnx210.ext.ti.com (fllnx210.ext.ti.com [198.47.19.17]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 350E7E00A64 for ; Tue, 20 Dec 2016 12:41:34 -0800 (PST) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id uBKKfYop009795 for ; Tue, 20 Dec 2016 14:41:34 -0600 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id uBKKfYwS029493 for ; Tue, 20 Dec 2016 14:41:34 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.294.0; Tue, 20 Dec 2016 14:41:34 -0600 Received: from udd0866934.am.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id uBKKfXnW013295; Tue, 20 Dec 2016 14:41:34 -0600 From: Jacob Stiffler To: Date: Tue, 20 Dec 2016 15:39:14 -0500 Message-ID: <1482266354-2449-1-git-send-email-j-stiffler@ti.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Subject: [PATCH v2] pruss-lld: utilize oe_runmake X-BeenThere: meta-ti@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-ti layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2016 20:41:37 -0000 Content-Type: text/plain * Use the oe_runmake wrapper to invoke make * Supply common make arguments to EXTRA_OEMAKE such as which makefile to invoke. * This resolves build issues when pruss-lld needs to be reconfigured as do_configure would make the clean target of the incorrect makefile. Signed-off-by: Jacob Stiffler --- NOTE the short log has changed on this version. The original patch contained the shortlog: "pruss-lld: set CLEANBROKEN" v2 changes: * Use OE_EXTRAMAKE to specify the common make arguments recipes-bsp/pruss-lld/pruss-lld-test_git.bb | 8 +++++--- recipes-bsp/pruss-lld/pruss-lld_git.bb | 10 ++++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/recipes-bsp/pruss-lld/pruss-lld-test_git.bb b/recipes-bsp/pruss-lld/pruss-lld-test_git.bb index d994ec8..7fdbfb6 100644 --- a/recipes-bsp/pruss-lld/pruss-lld-test_git.bb +++ b/recipes-bsp/pruss-lld/pruss-lld-test_git.bb @@ -4,16 +4,18 @@ DEPENDS="common-csl-ip pruss-lld osal" include pruss-lld.inc -PR = "${INC_PR}.0" +PR = "${INC_PR}.1" S = "${WORKDIR}/${PRUSS_LLD_GIT_DESTSUFFIX}" +EXTRA_OEMAKE += "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR} PRUSS_SRC_DIR=${S}" + do_compile () { # Build the tests - make -f makefile_armv7 tests PDK_INSTALL_PATH=${STAGING_INCDIR} PRUSS_SRC_DIR=${S} + oe_runmake tests } do_install () { # Install the binary - make -f makefile_armv7 installbin PDK_INSTALL_PATH=${STAGING_INCDIR} INSTALL_BIN_BASE_DIR=${D}${bindir} PRUSS_SRC_DIR=${S} + oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir} } diff --git a/recipes-bsp/pruss-lld/pruss-lld_git.bb b/recipes-bsp/pruss-lld/pruss-lld_git.bb index 72670f4..2eca4ff 100644 --- a/recipes-bsp/pruss-lld/pruss-lld_git.bb +++ b/recipes-bsp/pruss-lld/pruss-lld_git.bb @@ -4,17 +4,19 @@ DEPENDS="common-csl-ip osal" include pruss-lld.inc -PR = "${INC_PR}.1" +PR = "${INC_PR}.2" S = "${WORKDIR}/${PRUSS_LLD_GIT_DESTSUFFIX}" +EXTRA_OEMAKE += "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR}" + do_compile () { # Build the lib - make -f makefile_armv7 clean PDK_INSTALL_PATH=${STAGING_INCDIR} - make -f makefile_armv7 lib PDK_INSTALL_PATH=${STAGING_INCDIR} + oe_runmake clean + oe_runmake lib } do_install () { # Install the lib - make -f makefile_armv7 install PDK_INSTALL_PATH=${STAGING_INCDIR} INSTALL_INC_BASE_DIR=${D}${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir} + oe_runmake install INSTALL_INC_BASE_DIR=${D}${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir} } -- 2.7.4