diff options
author | takeshi_hoshina <takeshi_hoshina@mail.toyota.co.jp> | 2020-11-02 11:07:33 +0900 |
---|---|---|
committer | takeshi_hoshina <takeshi_hoshina@mail.toyota.co.jp> | 2020-11-02 11:07:33 +0900 |
commit | 1c7d6584a7811b7785ae5c1e378f14b5ba0971cf (patch) | |
tree | cd70a267a5ef105ba32f200aa088e281fbd85747 /bsp/meta-ti/recipes-devtools | |
parent | 4204309872da5cb401cbb2729d9e2d4869a87f42 (diff) |
basesystem-jjsandbox/ToshikazuOhiwa/master-jj
recipes
Diffstat (limited to 'bsp/meta-ti/recipes-devtools')
6 files changed, 53 insertions, 122 deletions
diff --git a/bsp/meta-ti/recipes-devtools/gdbc6x/gdbc6x/0001-libbfd.h-suppress-GCC9-Wstringop-truncation.patch b/bsp/meta-ti/recipes-devtools/gdbc6x/gdbc6x/0001-libbfd.h-suppress-GCC9-Wstringop-truncation.patch new file mode 100644 index 00000000..1cc23b32 --- /dev/null +++ b/bsp/meta-ti/recipes-devtools/gdbc6x/gdbc6x/0001-libbfd.h-suppress-GCC9-Wstringop-truncation.patch @@ -0,0 +1,28 @@ +From 0aa294e2bbd37a42266e59cb67687e57bfba4a88 Mon Sep 17 00:00:00 2001 +From: Denys Dmytriyenko <denys@ti.com> +Date: Sat, 15 Feb 2020 15:59:37 -0500 +Subject: [PATCH] libbfd.h: suppress GCC9 -Wstringop-truncation + +Signed-off-by: Denys Dmytriyenko <denys@ti.com> +--- + gdbc6x/bfd/libbfd.h | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/gdbc6x/bfd/libbfd.h b/gdbc6x/bfd/libbfd.h +index 72d3c50..3465f89 100644 +--- a/gdbc6x/bfd/libbfd.h ++++ b/gdbc6x/bfd/libbfd.h +@@ -34,6 +34,10 @@ + #pragma GCC diagnostic ignored "-Wcast-function-type" + #endif + ++#if __GNUC__ >= 9 ++#pragma GCC diagnostic ignored "-Wstringop-truncation" ++#endif ++ + #include "hashtab.h" + + /* Align an address upward to a boundary, expressed as a number of bytes. +-- +2.7.4 + diff --git a/bsp/meta-ti/recipes-devtools/gdbc6x/gdbc6x_git.bb b/bsp/meta-ti/recipes-devtools/gdbc6x/gdbc6x_git.bb index 8ab9cf90..2d2f6c1d 100644 --- a/bsp/meta-ti/recipes-devtools/gdbc6x/gdbc6x_git.bb +++ b/bsp/meta-ti/recipes-devtools/gdbc6x/gdbc6x_git.bb @@ -11,6 +11,7 @@ PR = "${INC_PR}.1" SRC_URI_append = " \ file://init \ + file://0001-libbfd.h-suppress-GCC9-Wstringop-truncation.patch;striplevel=2 \ " S = "${WORKDIR}/git/gdbc6x" diff --git a/bsp/meta-ti/recipes-devtools/ion/ion-tests/0001-CMakeLists.txt-disable-phys-addr-for-now.patch b/bsp/meta-ti/recipes-devtools/ion/ion-tests/0001-CMakeLists.txt-disable-phys-addr-for-now.patch deleted file mode 100644 index 7cf5895c..00000000 --- a/bsp/meta-ti/recipes-devtools/ion/ion-tests/0001-CMakeLists.txt-disable-phys-addr-for-now.patch +++ /dev/null @@ -1,34 +0,0 @@ -From 85264fc72a261d20107a50ea2fad0258900a132b Mon Sep 17 00:00:00 2001 -From: Denys Dmytriyenko <denys@ti.com> -Date: Sat, 20 Apr 2019 16:54:03 +0000 -Subject: [PATCH] CMakeLists.txt: disable phys-addr for now - -Signed-off-by: Denys Dmytriyenko <denys@ti.com> ---- - CMakeLists.txt | 13 ------------- - 1 file changed, 13 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 1d60003..eca6ba7 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -54,16 +54,3 @@ target_link_libraries(ion-print-heaps - target_include_directories(ion-print-heaps PUBLIC ${LIBION_INCLUDE_DIRS}) - - install(TARGETS ion-print-heaps RUNTIME DESTINATION bin) -- --# phys-addr -- --add_executable(phys-addr -- src/phys-addr.c --) -- --target_link_libraries(phys-addr -- ${LIBION_LIBRARIES} --) --target_include_directories(phys-addr PUBLIC ${LIBION_INCLUDE_DIRS}) -- --install(TARGETS phys-addr RUNTIME DESTINATION bin) --- -2.17.1 - diff --git a/bsp/meta-ti/recipes-devtools/ion/ion-tests/0001-map_test-Replace-PAGE_SIZE-with-local-variable-name.patch b/bsp/meta-ti/recipes-devtools/ion/ion-tests/0001-map_test-Replace-PAGE_SIZE-with-local-variable-name.patch deleted file mode 100644 index 8915c642..00000000 --- a/bsp/meta-ti/recipes-devtools/ion/ion-tests/0001-map_test-Replace-PAGE_SIZE-with-local-variable-name.patch +++ /dev/null @@ -1,69 +0,0 @@ -From f045cbf9aae0053e9e785e32b772e473aa892443 Mon Sep 17 00:00:00 2001 -From: Khem Raj <raj.khem@gmail.com> -Date: Sun, 6 Oct 2019 16:08:36 -0700 -Subject: [PATCH] map_test: Replace PAGE_SIZE with local variable name - -PAGE_SIZE is already a define in libc implementations global namespace -e.g. in musl. Therefore its best to use a unique variable name to not -stamp on the global definition. - -Fixes -src/map_test.cpp:59:23: error: expected unqualified-id -unsigned long PAGE_SIZE = sysconf(_SC_PAGESIZE); -^ -/usr/include/limits.h:89:19: note: expanded from macro 'PAGE_SIZE' -^ -/usr/include/bits/limits.h:3:18: note: expanded from macro 'PAGESIZE' -^ - -Upstream-Status: Submitted [https://github.com/glneo/ion-tests/pull/1] - -Signed-off-by: Khem Raj <raj.khem@gmail.com> ---- - src/map_test.cpp | 18 +++++++++--------- - 1 file changed, 9 insertions(+), 9 deletions(-) - -diff --git a/src/map_test.cpp b/src/map_test.cpp -index a7ce2c9..7b5746d 100644 ---- a/src/map_test.cpp -+++ b/src/map_test.cpp -@@ -56,27 +56,27 @@ TEST_F(Map, MapOffset) - SCOPED_TRACE(::testing::Message() << "heap " << heapMask); - int map_fd = -1; - -- unsigned long PAGE_SIZE = sysconf(_SC_PAGESIZE); -+ unsigned long psize = sysconf(_SC_PAGESIZE); - -- ASSERT_EQ(0, ion_alloc(m_ionFd, PAGE_SIZE * 2, heapMask, 0, &map_fd)); -+ ASSERT_EQ(0, ion_alloc(m_ionFd, psize * 2, heapMask, 0, &map_fd)); - ASSERT_GE(map_fd, 0); - - unsigned char *ptr; -- ptr = (unsigned char *)mmap(NULL, PAGE_SIZE * 2, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); -+ ptr = (unsigned char *)mmap(NULL, psize * 2, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); - ASSERT_TRUE(ptr != NULL); - -- memset(ptr, 0, PAGE_SIZE); -- memset(ptr + PAGE_SIZE, 0xaa, PAGE_SIZE); -+ memset(ptr, 0, psize); -+ memset(ptr + psize, 0xaa, psize); - -- ASSERT_EQ(0, munmap(ptr, PAGE_SIZE * 2)); -+ ASSERT_EQ(0, munmap(ptr, psize * 2)); - -- ptr = (unsigned char *)mmap(NULL, PAGE_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, PAGE_SIZE); -+ ptr = (unsigned char *)mmap(NULL, psize, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, psize); - ASSERT_TRUE(ptr != NULL); - - ASSERT_EQ(ptr[0], 0xaa); -- ASSERT_EQ(ptr[PAGE_SIZE - 1], 0xaa); -+ ASSERT_EQ(ptr[psize - 1], 0xaa); - -- ASSERT_EQ(0, munmap(ptr, PAGE_SIZE)); -+ ASSERT_EQ(0, munmap(ptr, psize)); - - ASSERT_EQ(0, close(map_fd)); - } --- -2.23.0 - diff --git a/bsp/meta-ti/recipes-devtools/ion/ion-tests_git.bb b/bsp/meta-ti/recipes-devtools/ion/ion-tests_git.bb deleted file mode 100644 index 52346f1c..00000000 --- a/bsp/meta-ti/recipes-devtools/ion/ion-tests_git.bb +++ /dev/null @@ -1,19 +0,0 @@ -SUMMARY = "Test cases for ION" -HOMEPAGE = "https://github.com/glneo/ion-tests" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://src/ion_test.c;beginline=1;endline=15;md5=b225db900869a4cd31461606e55a3ec5" - -PV = "1.0" - -BRANCH = "master" -SRC_URI = "git://github.com/glneo/ion-tests.git;protocol=git;branch=${BRANCH} \ - file://0001-CMakeLists.txt-disable-phys-addr-for-now.patch \ - file://0001-map_test-Replace-PAGE_SIZE-with-local-variable-name.patch \ -" -SRCREV = "70d730cebca29e6fd37b21d9beac82ae645f3900" - -DEPENDS = "libion gtest" - -S = "${WORKDIR}/git" - -inherit cmake pkgconfig diff --git a/bsp/meta-ti/recipes-devtools/k3conf/k3conf_git.bb b/bsp/meta-ti/recipes-devtools/k3conf/k3conf_git.bb new file mode 100644 index 00000000..52c2fcf6 --- /dev/null +++ b/bsp/meta-ti/recipes-devtools/k3conf/k3conf_git.bb @@ -0,0 +1,24 @@ +SUMMARY = "Diagnostic tool for TI K3 processors" + +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://common/k3conf.c;beginline=1;endline=34;md5=37f4e460bd8501c6f02ce71f02bc7ccf" + +PV = "0.1+git${SRCPV}" + +COMPATIBLE_MACHINE = "k3" + +BRANCH ?= "master" +SRCREV = "9199c3a3b6ec5603a2c4283410b4761e79e81e82" + +SRC_URI = "git://git.ti.com/k3conf/k3conf.git;protocol=git;branch=${BRANCH}" + +S = "${WORKDIR}/git" + +do_compile () { + oe_runmake CC="${CC}" CROSS_COMPILE=${TARGET_PREFIX} all +} + +do_install () { + install -d ${D}${bindir} + install ${S}/k3conf ${D}${bindir} +} |