Add build profile flag for robot to use hal-rootstrap-data-robot 49/322149/1 accepted/tizen_9.0_unified tizen_9.0 accepted/tizen/9.0/unified/20250407.170159 accepted/tizen/9.0/unified/20250613.155609
authorSangYoun Kwak <sy.kwak@samsung.com>
Fri, 4 Apr 2025 01:59:37 +0000 (10:59 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Fri, 4 Apr 2025 02:11:41 +0000 (11:11 +0900)
Since there are packages that only required by robot profile, it is
required to use separated hal-rootstrap-data-robot and 'BuildRequire' it
only when the build profile is robot.

To accomplish this, the robot profile flag '_with_robot_profile' is used
and when it is '1', the flag WITH_ROBOT is set.
The hal-rootstrap-data-robot is 'BuildRequire' only when the WITH_ROBOT
flag is set.

Change-Id: Ide8ad0ba230b739b092f0da6eb131164efc5e87a
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
packaging/hal-rootstrap.spec

index dd0d79fd022df111bb3719a5ddf65ff0b969893b..725a2caffd572abbd87f59526a5dbcc7f033795b 100644 (file)
@@ -2,6 +2,12 @@
 %define devel_name                     hal-rootstrap-devel
 %define hal_rootstrap_install_path     /opt/data/hal-rootstrap
 
+%if "%{_with_robot_profile}" == "1"
+%define WITH_ROBOT 1
+%else
+%define WITH_ROBOT 0
+%endif
+
 %if "%{_with_da_profile}" == "1"
 %define WITH_DA 1
 %else
@@ -40,6 +46,9 @@ BuildRequires:        xmlstarlet
 BuildRequires: python3
 
 BuildRequires: hal-rootstrap-data-common
+%if "%{WITH_ROBOT}" == "1"
+BuildRequires: hal-rootstrap-data-robot
+%endif
 
 ### hal-rootstrap
 %description