summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangYoun Kwak <sy.kwak@samsung.com>2024-11-18 15:03:26 +0900
committerSangYoun Kwak <sy.kwak@samsung.com>2024-11-18 15:28:31 +0900
commit74314b249d46e7aadc6a23f0a2e4079cd0d23d5f (patch)
tree694c10cdecf2adb5382107976e00c93880922e7e
parent5891a6dc2ec2b5cab2c8e2adccec0ad9ad686a58 (diff)
downloadrootstrap-data-common-74314b249d46e7aadc6a23f0a2e4079cd0d23d5f.tar.gz
rootstrap-data-common-74314b249d46e7aadc6a23f0a2e4079cd0d23d5f.tar.bz2
rootstrap-data-common-74314b249d46e7aadc6a23f0a2e4079cd0d23d5f.zip
Modify to exclude libdrms when profile is DA
Since the following libdrm packages are not required by the DA profile, they should be excluded when the build profile is DA. * libdrm_exynos * libdrm_vigs * libdrm_vc4 Change-Id: I968be21c645c5cc5d4e87cb83c02d49aecf588bc Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
-rw-r--r--packaging/hal-rootstrap-data-common.spec25
1 files changed, 17 insertions, 8 deletions
diff --git a/packaging/hal-rootstrap-data-common.spec b/packaging/hal-rootstrap-data-common.spec
index 649b5da..102bc61 100644
--- a/packaging/hal-rootstrap-data-common.spec
+++ b/packaging/hal-rootstrap-data-common.spec
@@ -1,6 +1,12 @@
%define name hal-rootstrap-data-common
%define desc HAL Rootstrap for Common Profile
+%if "%{_with_da_profile}" == "1"
+%define WITH_DA 1
+%else
+%define WITH_DA 0
+%endif
+
Name: %{name}
Summary: %{desc}
Version: 0.1.0
@@ -124,14 +130,6 @@ BuildRequires: pkgconfig(tpl-egl)
Requires: pkgconfig(libdrm)
BuildRequires: pkgconfig(libdrm)
-Requires: pkgconfig(libdrm_exynos)
-BuildRequires: pkgconfig(libdrm_exynos)
-Requires: pkgconfig(libdrm_vigs)
-BuildRequires: pkgconfig(libdrm_vigs)
-%ifarch arm aarch64
-Requires: pkgconfig(libdrm_vc4)
-BuildRequires: pkgconfig(libdrm_vc4)
-%endif
Requires: pkgconfig(hal-api-audio)
BuildRequires: pkgconfig(hal-api-audio)
@@ -185,6 +183,17 @@ Requires: pkgconfig(hal-api-zigbee)
BuildRequires: pkgconfig(hal-api-zigbee)
%endif
+%if "%{WITH_DA}" == "0"
+Requires: pkgconfig(libdrm_exynos)
+BuildRequires: pkgconfig(libdrm_exynos)
+Requires: pkgconfig(libdrm_vigs)
+BuildRequires: pkgconfig(libdrm_vigs)
+%ifarch arm aarch64
+Requires: pkgconfig(libdrm_vc4)
+BuildRequires: pkgconfig(libdrm_vc4)
+%endif
+%endif
+
%description
%{desc}