diff options
4 files changed, 10 insertions, 41 deletions
diff --git a/meta-oe/recipes-kernel/oprofile/oprofile.inc b/meta-oe/recipes-kernel/oprofile/oprofile.inc index dabc30b36b..349e2bf543 100644 --- a/meta-oe/recipes-kernel/oprofile/oprofile.inc +++ b/meta-oe/recipes-kernel/oprofile/oprofile.inc | |||
| @@ -30,7 +30,6 @@ UPSTREAM_CHECK_REGEX = "oprofile-(?P<pver>\d+(\.\d+)+)/" | |||
| 30 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/oprofile/files/oprofile/" | 30 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/oprofile/files/oprofile/" |
| 31 | 31 | ||
| 32 | SRC_URI_append_libc-musl = " file://musl.patch \ | 32 | SRC_URI_append_libc-musl = " file://musl.patch \ |
| 33 | file://0001-fix-musl-libc-compile-error.patch \ | ||
| 34 | " | 33 | " |
| 35 | 34 | ||
| 36 | inherit autotools pkgconfig ptest | 35 | inherit autotools pkgconfig ptest |
diff --git a/meta-oe/recipes-kernel/oprofile/oprofile/0001-fix-musl-libc-compile-error.patch b/meta-oe/recipes-kernel/oprofile/oprofile/0001-fix-musl-libc-compile-error.patch deleted file mode 100644 index c21a105759..0000000000 --- a/meta-oe/recipes-kernel/oprofile/oprofile/0001-fix-musl-libc-compile-error.patch +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | From 512f1b3a4727a3a18f8fa55f196eedcacdd4a872 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Changqing Li <changqing.li@windriver.com> | ||
| 3 | Date: Wed, 18 Jul 2018 13:01:03 +0800 | ||
| 4 | Subject: [PATCH] fix musl libc compile error | ||
| 5 | |||
| 6 | use op_basename instead of basename to fix below error: | ||
| 7 | ../../oprofile-1.2.0/pp/oparchive.cpp:264:20: error: 'basename' | ||
| 8 | was not declared in this scope | ||
| 9 | |||
| 10 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
| 11 | --- | ||
| 12 | pp/oparchive.cpp | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/pp/oparchive.cpp b/pp/oparchive.cpp | ||
| 16 | index 6221e14..274152b 100644 | ||
| 17 | --- a/pp/oparchive.cpp | ||
| 18 | +++ b/pp/oparchive.cpp | ||
| 19 | @@ -261,7 +261,7 @@ int oparchive(options::spec const & spec) | ||
| 20 | /* determine the session name of sample file */ | ||
| 21 | int offset = sample_name.find('{'); | ||
| 22 | string base_samples_dir = sample_name.substr(0, offset-1); | ||
| 23 | - string session = basename(base_samples_dir.c_str()); | ||
| 24 | + string session = op_basename(base_samples_dir.c_str()); | ||
| 25 | /* Get rid of the the archive_path from the name */ | ||
| 26 | string sample_base = sample_name.substr(offset); | ||
| 27 | string sample_archive_file = dest_samples_dir + "/" + session + "/" + sample_base; | ||
| 28 | -- | ||
| 29 | 2.7.4 | ||
| 30 | |||
diff --git a/meta-oe/recipes-kernel/oprofile/oprofile_1.2.0.bb b/meta-oe/recipes-kernel/oprofile/oprofile_1.2.0.bb deleted file mode 100644 index e85e805c37..0000000000 --- a/meta-oe/recipes-kernel/oprofile/oprofile_1.2.0.bb +++ /dev/null | |||
| @@ -1,10 +0,0 @@ | |||
| 1 | require oprofile.inc | ||
| 2 | |||
| 3 | DEPENDS += "virtual/kernel" | ||
| 4 | DEPENDS_append_powerpc64 = " libpfm4" | ||
| 5 | |||
| 6 | SRC_URI[md5sum] = "4fcd3920984dcb607314b2e225086c3a" | ||
| 7 | SRC_URI[sha256sum] = "eb95f98c40b7d0ee29b45fba3565d9f8381747528aa6b6159e37d4fa0c8ca57d" | ||
| 8 | |||
| 9 | S = "${WORKDIR}/oprofile-${PV}" | ||
| 10 | |||
diff --git a/meta-oe/recipes-kernel/oprofile/oprofile_1.3.0.bb b/meta-oe/recipes-kernel/oprofile/oprofile_1.3.0.bb new file mode 100644 index 0000000000..1dc535ed8d --- /dev/null +++ b/meta-oe/recipes-kernel/oprofile/oprofile_1.3.0.bb | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | require oprofile.inc | ||
| 2 | |||
| 3 | DEPENDS += "virtual/kernel" | ||
| 4 | DEPENDS_append_powerpc64 = " libpfm4" | ||
| 5 | |||
| 6 | SRC_URI[md5sum] = "bd998df5521ebedae31e71cd3fb6200b" | ||
| 7 | SRC_URI[sha256sum] = "95ded8bde1ec39922f0af015981a67aec63e025a501e4dc04cd65d38f73647e6" | ||
| 8 | |||
| 9 | S = "${WORKDIR}/oprofile-${PV}" | ||
| 10 | |||
