Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by mx.groups.io with SMTP id smtpd.web12.12261.1642189989529255511 for ; Fri, 14 Jan 2022 11:53:09 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17q1 header.b=Q8aF24c5; spf=pass (domain: ti.com, ip: 198.47.19.141, mailfrom: reatmon@ti.com) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 20EJr4f1062653; Fri, 14 Jan 2022 13:53:04 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1642189984; bh=v3dTvPwRyt9CYuGNiSE2mTeUJPWu9vUnJcOXSJEfWP0=; h=From:To:Subject:Date; b=Q8aF24c5+IoLjf9kpAmsvGdKMzNwFZj6EyRcNje0ibJCe8e1+jjbBshGKjbXrmRRq 5bLEITcib41RPX2FHACglZJU7Eocr6GrY2pIOegK3CTygd2rpwGhnUSa6kKRHgW9nU FGgMHT0ERb9Buw7op4KCYc1QzvnqmHB9evNR1XNY= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 20EJr4Qf032429 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 14 Jan 2022 13:53:04 -0600 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Fri, 14 Jan 2022 13:53:04 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Fri, 14 Jan 2022 13:53:04 -0600 Received: from uda0214219 (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 20EJr3aS090287; Fri, 14 Jan 2022 13:53:03 -0600 Received: from reatmon by uda0214219 with local (Exim 4.90_1) (envelope-from ) id 1n8SdD-0006nT-NX; Fri, 14 Jan 2022 13:53:03 -0600 From: "Ryan Eatmon" To: Yogesh Siraswar , Praneeth Bajjuri , Denys Dmytriyenko , Subject: [meta-arago][dunfell-next][PATCH] dma-heap-tests: patch to fix cmake linking issue Date: Fri, 14 Jan 2022 13:53:03 -0600 Message-ID: <20220114195303.26088-1-reatmon@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Content-Type: text/plain Adding patch to CMakeLists.txt to fix variable name that contains the libraries to link against. Signed-off-by: Ryan Eatmon --- .../dma-heap/dma-heap-tests.bb | 4 ++- ...ble-name-change-to-fix-compile-error.patch | 32 +++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 meta-arago-extras/recipes-devtools/dma-heap/dma-heap-tests/0001-Variable-name-change-to-fix-compile-error.patch diff --git a/meta-arago-extras/recipes-devtools/dma-heap/dma-heap-tests.bb b/meta-arago-extras/recipes-devtools/dma-heap/dma-heap-tests.bb index fab2b4a0..5d35eb5e 100644 --- a/meta-arago-extras/recipes-devtools/dma-heap/dma-heap-tests.bb +++ b/meta-arago-extras/recipes-devtools/dma-heap/dma-heap-tests.bb @@ -6,7 +6,9 @@ LIC_FILES_CHKSUM = "file://src/heap_test_fixture.cpp;beginline=1;endline=15;md5= PV = "1.0" BRANCH = "master" -SRC_URI = "git://github.com/glneo/dma-heap-tests.git;protocol=https;branch=${BRANCH}" +SRC_URI = "git://github.com/glneo/dma-heap-tests.git;protocol=https;branch=${BRANCH} \ + file://0001-Variable-name-change-to-fix-compile-error.patch \ +" SRCREV = "bccbfbf24baccefa09439a924f61f04e82b3910a" DEPENDS = "googletest" diff --git a/meta-arago-extras/recipes-devtools/dma-heap/dma-heap-tests/0001-Variable-name-change-to-fix-compile-error.patch b/meta-arago-extras/recipes-devtools/dma-heap/dma-heap-tests/0001-Variable-name-change-to-fix-compile-error.patch new file mode 100644 index 00000000..8bc744db --- /dev/null +++ b/meta-arago-extras/recipes-devtools/dma-heap/dma-heap-tests/0001-Variable-name-change-to-fix-compile-error.patch @@ -0,0 +1,32 @@ +From ab0bb27b915419e3f93b4c0102837e7e748b0667 Mon Sep 17 00:00:00 2001 +From: Ryan Eatmon +Date: Thu, 13 Jan 2022 20:00:27 -0600 +Subject: [dma-heap-tests][PATCH] Variable name change to fix compile error. + +It appears that a recent change in the GTest CMake integration +changed the variable names for the libraries. This fixes that +issue and makes the compile work under Yocto. + +Signed-off-by: Ryan Eatmon +--- + CMakeLists.txt | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 71d7225..7d4a97f 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -19,8 +19,8 @@ target_include_directories(dma-heap-unit-tests + ) + + target_link_libraries(dma-heap-unit-tests +- ${GTEST_LIBRARY} +- ${GTEST_MAIN_LIBRARY} ++ ${GTEST_LIBRARIES} ++ ${GTEST_MAIN_LIBRARIES} + pthread + ) + +-- +2.17.1 + -- 2.17.1