summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Khalikov <d.khalikov@partner.samsung.com>2017-08-25 16:11:14 +0300
committerSeung-Woo Kim <sw0312.kim@samsung.com>2017-08-28 10:08:57 +0900
commit74fac3dd7825307f11ec3ab5a99c8790b4270ca3 (patch)
tree601c70add4e4cea9d93d5d6308f7bfa2c2977a18
parent7befd9085999a07113cc159508f0b550b4906de0 (diff)
downloadlinux-exynos-accepted/tizen/unified/20170828.164523.tar.gz
linux-exynos-accepted/tizen/unified/20170828.164523.tar.bz2
linux-exynos-accepted/tizen/unified/20170828.164523.zip
UBSan build on kernel will cause build error because kernel has its own sanitizer build options. So, dislable UBSan build from packaging spec. Change-Id: Ie06197677c9949eb8ed9537af6fc366d20d3a000 Signed-off-by: Denis Khalikov <d.khalikov@partner.samsung.com>
-rw-r--r--packaging/linux-exynos-tm2.spec2
-rw-r--r--packaging/odroid-linux-kernel.spec2
2 files changed, 4 insertions, 0 deletions
diff --git a/packaging/linux-exynos-tm2.spec b/packaging/linux-exynos-tm2.spec
index 2f14674ae7c8..4934ee41551b 100644
--- a/packaging/linux-exynos-tm2.spec
+++ b/packaging/linux-exynos-tm2.spec
@@ -82,6 +82,8 @@ headers are used by the installed headers for GNU glibc and other system
%build
%{?asan:/usr/bin/gcc-unforce-options}
+%{?ubsan:/usr/bin/gcc-unforce-options}
+
# Make sure EXTRAVERSION says what we want it to say
sed -i "s/^EXTRAVERSION.*/EXTRAVERSION = -%{variant}/" Makefile
diff --git a/packaging/odroid-linux-kernel.spec b/packaging/odroid-linux-kernel.spec
index b6bc5eae35ab..5b459e4d871d 100644
--- a/packaging/odroid-linux-kernel.spec
+++ b/packaging/odroid-linux-kernel.spec
@@ -61,6 +61,8 @@ This package provides kernel map and etc information for odroid kernel.
%build
%{?asan:/usr/bin/gcc-unforce-options}
+%{?ubsan:/usr/bin/gcc-unforce-options}
+
# Make sure EXTRAVERSION says what we want it to say
sed -i "s/^EXTRAVERSION.*/EXTRAVERSION = -%{release}-%{variant}/" Makefile