From: SangYoun Kwak Date: Fri, 4 Apr 2025 01:59:37 +0000 (+0900) Subject: Add build profile flag for robot to use hal-rootstrap-data-robot X-Git-Tag: accepted/tizen/9.0/unified/20250407.170159^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_9.0;p=platform%2Fhal%2Fbackend%2Frootstrap.git Add build profile flag for robot to use hal-rootstrap-data-robot 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 --- diff --git a/packaging/hal-rootstrap.spec b/packaging/hal-rootstrap.spec index dd0d79f..725a2ca 100644 --- a/packaging/hal-rootstrap.spec +++ b/packaging/hal-rootstrap.spec @@ -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