diff options
author | Oleksiy Obitotskyy <oobitots@cisco.com> | 2021-02-08 07:44:16 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-02-08 10:17:23 -0800 |
commit | 5423b58aa4a4b1cf61de3ac516af97ec71817153 (patch) | |
tree | be247dd6b86d82bfa1fabaf734318de251a9a4e0 | |
parent | d830e7901eda5863af4dbbcb6018603371151b88 (diff) | |
download | meta-openembedded-5423b58aa4a4b1cf61de3ac516af97ec71817153.tar.gz |
libhugetlbfs: improve reproducibility
CPPFLAGS was overrided for tests, so we
missing DEBUG_PREFIX_MAP and got absolute
path in binary.
Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-benchmark/libhugetlbfs/files/0001-tests-makefile-Append-CPPFLAGS-rather-then-override.patch | 31 | ||||
-rw-r--r-- | meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-tests-makefile-Append-CPPFLAGS-rather-then-override.patch b/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-tests-makefile-Append-CPPFLAGS-rather-then-override.patch new file mode 100644 index 0000000000..78a4cb0fc2 --- /dev/null +++ b/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-tests-makefile-Append-CPPFLAGS-rather-then-override.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From b6dba773491bbb7b4664dacdd87a12af860f1bd8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Oleksiy Obitotskyy <oobitots@cisco.com> | ||
3 | Date: Thu, 28 Jan 2021 05:43:33 -0800 | ||
4 | Subject: [PATCH] tests/makefile: Append CPPFLAGS rather then override | ||
5 | |||
6 | CPPFLAGS overrided and we could miss some options needed. | ||
7 | |||
8 | Upstream-Status: Submitted | ||
9 | Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com> | ||
10 | --- | ||
11 | tests/Makefile | 4 ++-- | ||
12 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
13 | |||
14 | diff --git a/tests/Makefile b/tests/Makefile | ||
15 | index 0ca3716..d262932 100644 | ||
16 | --- a/tests/Makefile | ||
17 | +++ b/tests/Makefile | ||
18 | @@ -33,8 +33,8 @@ HELPERS = get_hugetlbfs_path compare_kvers | ||
19 | HELPER_LIBS = libheapshrink.so | ||
20 | BADTOOLCHAIN = bad-toolchain.sh | ||
21 | |||
22 | -CFLAGS = -O2 -Wall -g | ||
23 | -CPPFLAGS = -I.. | ||
24 | +CFLAGS += -O2 -Wall -g | ||
25 | +CPPFLAGS += -I.. | ||
26 | STATIC_LIBHUGE = -Wl,--whole-archive -lhugetlbfs -Wl,--no-whole-archive | ||
27 | STATIC_LDLIBS = -Wl,--no-as-needed -lpthread | ||
28 | LDLIBS = $(STATIC_LDLIBS) -ldl -lhugetlbfs_privutils | ||
29 | -- | ||
30 | 2.26.2.Cisco | ||
31 | |||
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb index 2f07c938bb..fa63316b02 100644 --- a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +++ b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb | |||
@@ -26,6 +26,7 @@ SRC_URI = " \ | |||
26 | file://0006-include-limits.h-for-PATH_MAX.patch \ | 26 | file://0006-include-limits.h-for-PATH_MAX.patch \ |
27 | file://0001-huge_page_setup_helper-use-python3-interpreter.patch \ | 27 | file://0001-huge_page_setup_helper-use-python3-interpreter.patch \ |
28 | file://0001-Revert-ld.hugetlbfs-fix-Ttext-segment-argument-on-AA.patch \ | 28 | file://0001-Revert-ld.hugetlbfs-fix-Ttext-segment-argument-on-AA.patch \ |
29 | file://0001-tests-makefile-Append-CPPFLAGS-rather-then-override.patch \ | ||
29 | " | 30 | " |
30 | 31 | ||
31 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)" | 32 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)" |