platform/hal/backend/rootstrap.git
2 months agoFix modify_pc.py script to parse symbols in pc file properly 03/321203/1 accepted/tizen_unified accepted/tizen_unified_x tizen accepted/tizen/unified/20250318.072944 accepted/tizen/unified/20250509.015124 accepted/tizen/unified/x/20250318.211719 accepted/tizen/unified/x/20250509.034520
SangYoun Kwak [Mon, 17 Mar 2025 08:18:53 +0000 (17:18 +0900)]
Fix modify_pc.py script to parse symbols in pc file properly

In the modify_pc.py script, regular expressions are used to parse
symbols and values. There are symbols separated from its value by a
colon(':') and by a equal sign('='). These two symbols are parsed by
regular expression but these regular expressions are incomplete since
content like below cannot be parsed properly.
  Cflags: -DAAAA=1 -DBBBB=...
In this case, it should be recognized as a colon symbol, which symbol is
"Cflags" and value is "-DAAAA=1 -DBBBB=...". But because of '=' in the
value, it was parsed as: symbol is "-DAAAA", value is "1 -DBBBB=...".

To resolve this bug issue, two anchors '^' and '$' are added to the
regular expression to represent the beginning and end of a string,
respectively.

Change-Id: I12b9b6eb2eba4142ac72ab7e01b6e428c7ed75d4
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
3 months agoChange build script to build in one directory rather than common/headed 47/320147/2 accepted/tizen/unified/20250227.010144 accepted/tizen/unified/x/20250227.021913
SangYoun Kwak [Mon, 24 Feb 2025 11:00:31 +0000 (20:00 +0900)]
Change build script to build in one directory rather than common/headed

hal-rootstrap package was separated as common and headed, since there
were packages which require

Among the hal-backend packages built using hal-rootstrap, there were
some packages that linked unused libraries.
To prevent this, hal-rootstrap was divided into two common/headed
packages.

This phenomenon was due to libtool and it is fixed, there is no reason
to keep two common/headed hal-rootstrap packages.

Change-Id: I8c657ec2ecf3b10d20fe20c6334cbf90979e83c0
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
5 months agoModify to properly use unsigned offset for fseek 00/316700/1 accepted/tizen_unified_x_asan accepted/tizen/unified/20241218.085933 accepted/tizen/unified/x/20241218.212029 accepted/tizen/unified/x/asan/20250113.002234
SangYoun Kwak [Mon, 16 Dec 2024 08:10:32 +0000 (17:10 +0900)]
Modify to properly use unsigned offset for fseek

The fseek gets second parameter(offset) as long type. Since the size of
the long type is different depends on the architecture(32/64-bits), any
offset value which type is greater than long should be treated with
care.
To resolve this issue, fseek_offset_u64 function is created and used.
Also, offset values which are used in fseek_offset_u64 are re-typed
properly.

Change-Id: Ic213744ad866a8d4533a8016d59c96703eecc226
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
6 months agoscript: Modify scripts to convert hal library path 34/315734/1 accepted/tizen/unified/20241206.132910 accepted/tizen/unified/x/20241218.032901 accepted/tizen/unified/x/asan/20241224.004635
SangYoun Kwak [Wed, 4 Dec 2024 08:58:26 +0000 (17:58 +0900)]
script: Modify scripts to convert hal library path

It is required to convert /hal/lib to /hal/lib64 if build profile is
64-bit.

Change-Id: I70bae850be31962a9b0306cb470c4e11ff9d91ff
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
6 months agopostlinker: Add casting to uint64_t before multiply 41/315641/2 accepted/tizen/unified/20241205.060804
SangYoun Kwak [Wed, 4 Dec 2024 03:23:52 +0000 (12:23 +0900)]
postlinker: Add casting to uint64_t before multiply

In C, the result of multiplying two 16-bit unsigned integer is 32-bit
signed integer since the compiler casts numbers implicitly before
multiply them.
This may cause unintended result, so numbers should be casted to the
larger type such as 64-bit unsigned integer.
To resolve this issue, expressions that multiplying two 16-bit integers
are modified to cast numbers to 64-bit unsigned integer before
multiplying them.

Change-Id: Ia52bbe38c5796b651dba057b8ae7d4791482197d
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
6 months agoUpdate version from 0.1.0 to 0.1.1 79/315479/2 accepted/tizen/unified/20241204.183303
SangYoun Kwak [Mon, 2 Dec 2024 08:17:52 +0000 (17:17 +0900)]
Update version from 0.1.0 to 0.1.1

Updated items:
1. If build profile is VD, then dlog-internal.h will be included.
f13b609b4d9fb8f35c33aa3ae9268d3d31db096b
2. Build profile is defined as a flag per profiles.
0211e905a1518da476fe90ed9a78a42876b672cb
3. Modified to use hal-rootstrap-data-* pacakges.
e6df05c8e5cb926bc36799c89b50caae2293712c
4. hal-roostrap-data-da will be used when the build profile is DA.
e08408f2179299ad36a85b18e91b709192e08ede
5. If build profile is DA, then dlog-internal.h will be included.
8e3d7578d097d61e45c3107c8500c57788a92f59

Change-Id: Ieb47f2f10281ad909e99c55b5be6978125d5939f
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
6 months agoModify to include dlog-internal.h if profile is DA 16/315416/1 accepted/tizen/unified/20241202.132942
SangYoun Kwak [Mon, 2 Dec 2024 02:40:48 +0000 (11:40 +0900)]
Modify to include dlog-internal.h if profile is DA

It is required to include dlog-internal.h if the build profile is DA.
Thus, .spec file is modified to set INCLUDE_INTERNAL as 1 if the build
profile is DA.

Change-Id: I47209a98397da1f175d39ae0e4466f93144451d9
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
6 months agoAdd hal-rootstrap-data-da to BuildRequires for DA build 09/315409/1
SangYoun Kwak [Fri, 29 Nov 2024 05:42:40 +0000 (14:42 +0900)]
Add hal-rootstrap-data-da to BuildRequires for DA build

It is required to use datas defined in the hal-rootstrap-data-da package
when the build profile is DA, so the hal-rootstrap-data-da package is
added to BuildRequires for the DA build profile.

Change-Id: I807a7a0374b416b6d4cb61a137469a5b127adf57
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
6 months agoModify generate_rootstrap to use other hal-rootstrap-data-* packages 08/315408/1
SangYoun Kwak [Fri, 29 Nov 2024 07:45:19 +0000 (16:45 +0900)]
Modify generate_rootstrap to use other hal-rootstrap-data-* packages

hal-rootstrap generates two rootstrap packages:
hal-rootstrap, hal-rootstrap-headed.
For this separated generation, rootstrap resources(.xml files) are
separated as "common" and "headed" so "hal-rootstrap" package uses
"common" while "hal-rootstrap-headed" package uses "headed" exclusively.

Because of this separation, even hal-rootstrap-data-* is included, it is
not used. To resolve this, the "hal-rootstrap" package will use all
rootstrap resources except "headed" while the "hal-rootstrap-headed"
package uses only "headed" for its build.

Change-Id: I0724edcfb6d5669f797b30e637556c5f4c70333b
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
6 months agoModify scripts to use build profile flags 43/320943/3
SangYoun Kwak [Tue, 26 Nov 2024 01:44:38 +0000 (10:44 +0900)]
Modify scripts to use build profile flags

To clarify which build profile is used, flags per build profile is used
instead of the profile itself.
 * WITH_DA: 1 if profile is DA, else 0
 * WITH_VD: 1 if profile is VD, else 0
 * WITH_VD_MV: 1 if profile is movable, else 0

With VD profile, dlog-internal code should be included. According to
it, scripts are modified, too.

Change-Id: I52025b554994d5f15e8d2de90cd6071531651e7e
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
7 months agoModify to include dlog-internal.h if profile is tv 45/320245/2 accepted/tizen/unified/20241113.151934
SangYoun Kwak [Mon, 11 Nov 2024 10:31:46 +0000 (19:31 +0900)]
Modify to include dlog-internal.h if profile is tv

Since it is required to keep dlog-internal.h when the build profile is
'tv', rootstrap generating scripts are modified:
 * If the profile is 'tv', then the "including statement of
   dlog-internal.h" is not removed.
 * If the build profile is not 'tv', then dlog-internal.h file is not
   required, so it is removed when the build profile is not 'tv'.

Change-Id: I52c24e8260b17e829f2d6c715821735e6775e859
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
7 months agoRemove api_filter scripts 47/319947/1 accepted/tizen/unified/20241106.141124
SangYoun Kwak [Tue, 5 Nov 2024 09:53:49 +0000 (18:53 +0900)]
Remove api_filter scripts

Scripts about api filters are removed, since they are not valid for hal
rootstrap.
 * api_filter:
     It filters symbols in the EFL headers.
 * api_filter_gdbus:
     It filters symbols in the glib headers, which is invalid for hal
     rootstrap.
     Some hal backends are failed to build using hal rootstrap filtered
     with this script.

Also, script/whitelist is removed since it is not used by anyone.

Change-Id: Ica853ce316c94712e6453bd3aeb5151d614111be
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
7 months agoRefactor modify_pc.py to be modulized 23/319923/2
SangYoun Kwak [Mon, 4 Nov 2024 10:44:09 +0000 (19:44 +0900)]
Refactor modify_pc.py to be modulized

A class PkgConfig that manages the contents of .pc file is used to
increase readability and maintainability.

Also, parsing part and modification parts are separated to make them
more maintainable. As parsing part is separated, some datas are moved to
the .pc.in files to make the module more data-independent.

Change-Id: I2855a862d8dfb7d4dc2af8af1d22addc02785f5c
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
7 months agoModify modify_pc.py script to ignore comments 21/319921/1
SangYoun Kwak [Mon, 4 Nov 2024 08:57:11 +0000 (17:57 +0900)]
Modify modify_pc.py script to ignore comments

Previously, some line which starts with '#' was not ignored.
Consequently, the resulting hal-rootstrap.pc file was modified
incorrectly.

To solve this issue, modify_pc.py script is modified to ignore lines
which start with '#'.

Change-Id: I9d71a889412cc64902c853f009c74f12b09f9b52
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
7 months agoscript: Modify python scripts to be run as python3 31/319831/1
SangYoun Kwak [Fri, 1 Nov 2024 09:06:41 +0000 (18:06 +0900)]
script: Modify python scripts to be run as python3

Modifications of scripts to make it run with python3:
  1. Shebang modified from python2 to python3:
      "#!/usr/bin/python2" -> "#!/usr/bin/python3"
  2. Escape sequences in the regular expressions are fixed:
      escape sequences which are not for the string literal should be
      started with '\\', not '\' to distinguish them from the escape
      sequence characters of string literal(like '\t').
  3. Add parentheses to the print functions:
      In the python2, no parentheses are used for print function.
      Thus, for example, `print("hello")` should be translated as
      `print(("hello"))`.(`print("hello")` is interpreted by the python
      2 as printing a tuple which contains a string "hello")

Change-Id: I53a62dd6154cbebf740af23aeac0d20ec2aab24c
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
9 months agoAdd exclude.txt to exclude postlinker from SAM score calculation 52/317452/1
SangYoun Kwak [Tue, 10 Sep 2024 10:51:51 +0000 (19:51 +0900)]
Add exclude.txt to exclude postlinker from SAM score calculation

Since the postlinker consists of 2 versions(32-bit and 64-bit versions),
the AHUB SAM score analyzer says that there are duplicated codes.
But postlinker should act differently with its building environment,
these 2 versions should be exist.
To make AHUB to exclude postlinker from SAM score calculation,
exclude.txt is added under ".ahub/sam".

Change-Id: Iabcf71ef162385ffec56da66138bc7dc0a71b037
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
9 months agoFix to continue remaining .pc file process on error 01/316801/1 accepted/tizen_unified_dev accepted/tizen_unified_toolchain accepted/tizen/9.0/unified/20241030.234405 accepted/tizen/unified/20240829.091444 accepted/tizen/unified/dev/20240901.214759 accepted/tizen/unified/toolchain/20241004.102144 accepted/tizen/unified/x/20240829.105236 accepted/tizen/unified/x/asan/20241014.000552 tizen_9.0_m2_release
Youngjae Cho [Wed, 28 Aug 2024 08:19:49 +0000 (17:19 +0900)]
Fix to continue remaining .pc file process on error

In build for arch x86_64, the below pkgconfig from libdrm-rs.xml is
processed.
  <pkgconfig>
    <file>libdrm.pc</file>
    <file>libdrm_exynos.pc</file>
    <file>libdrm_vc4.pc</file>
    <file>libdrm_vigs.pc</file>
  </pkgconfig>

Unfortunately, there is no libdrm_vc4.pc and script emits the below log.
 [rootstrap_gen_1.0_64.sh:153] + no pkgconfig file(//usr/lib64/pkgconfig/libdrm_vc4.pc)

This gives up the remaining process, and as a result, the libdrm_vigs.pc
will be missing. Therefore, fix it to continue the remaining process.

Change-Id: I6077707008e0883089cd6ab734bfe95307cd26c7
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
9 months agohal-rootstrap-checker: Move source to Tizen-Base project 55/316155/1 accepted/tizen/unified/20240819.150149 accepted/tizen/unified/dev/20240821.053507 accepted/tizen/unified/x/20240820.013158
Youngjae Cho [Wed, 14 Aug 2024 06:56:19 +0000 (15:56 +0900)]
hal-rootstrap-checker: Move source to Tizen-Base project

The hal-rootstrap-checker should have worked for every rpmbuild. But
packages from Tizen-Base project cannot have build dependency to
packages of Tizen-Unified project, making them unable to locate
hal-rootstrap-checker. Therefore, move hal-rootstrap-checker sources
to the Tizen-Base project, platform/hal/backend/rootstrap-checker.

Change-Id: I383c6ca9588242c1a5653f9d77974e00562448b1
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
10 months agopackaging: Disable auto package dependency 95/316095/1
SangYoun Kwak [Tue, 13 Aug 2024 11:46:26 +0000 (20:46 +0900)]
packaging: Disable auto package dependency

To prevent hal-rootstrap-headed be included to image automatically,
disabling auto package dependency(AutoReqProv) is added.

Change-Id: I8a5d6cbd7a94faf73079c840693468c583784be8
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
10 months agohal-rootstrap-checker: Fix install path of hal-rootstrap-checker-rpmmacros 18/316018/1
Youngjae Cho [Mon, 12 Aug 2024 11:34:34 +0000 (20:34 +0900)]
hal-rootstrap-checker: Fix install path of hal-rootstrap-checker-rpmmacros

Instead of making symlink of hal-rootstrap-checker-rpmmacros to the
rpm macro lookup path, /etc/rpm/macros.*, install the file on the
lookup path. Moveover, changed the filename to the rpmbuild identifiable
format, macros.hal-rootstrap-checker.

Change-Id: I53c0a15333bd110b11d1fe2fd6c596924f86952c
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
10 months agoModify dependent package name to hal-rootstrap-data-common 01/316001/3
SangYoun Kwak [Mon, 12 Aug 2024 09:42:56 +0000 (18:42 +0900)]
Modify dependent package name to hal-rootstrap-data-common

The package name of "hal-rootstrap-common" is renamed as
"hal-rootstrap-data-common" to distinguish it from names like
"hal-rootstrap-headed".

Change-Id: I3e680e6dabcd56daf495673d074fb06e133b9c9c
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
10 months agoSeparate common packages included in both headless and headed image 00/316000/4
SangYoun Kwak [Mon, 12 Aug 2024 08:00:45 +0000 (17:00 +0900)]
Separate common packages included in both headless and headed image

Since the headless image does not have some packages compared to the
headed image, it is required to separate these packages from hal
rootstrap.

To separate headed-only packages, hal rootstrap will be created like
below:
    * rootstrap for common packages:
        Package name: hal-rootstrap
        Directory: /opt/data/hal-rootstrap/common
    * rootstrap for headed-only packages:
        Package name: hal-rootstrap-headed
        Directory: /opt/data/hal-rootstrap/headed

Speaking of hal backend packages, they should do "BuildRequires" like:
    * If backend package requires headed packages, do "BuildRequires"
      for both hal-rootstrap and hal-rootstrap-headed.
    * If backend package does not use any headed packages, do
      "BuildRequires" for hal-rootstrap only.

Change-Id: I0b0576a73299d3dd92cc404cc547b295ff9a0355
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
10 months agohal-rootstrap-checker: Fix typo of CHECK_ALWAYS variable 15/316015/2
Youngjae Cho [Mon, 12 Aug 2024 11:05:23 +0000 (20:05 +0900)]
hal-rootstrap-checker: Fix typo of CHECK_ALWAYS variable

Change-Id: I37f1cc44c4ff6c22cecbe4b93ddf34d8e2f9ee98
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
10 months agohal-rootstrap-checker: Add legacy package name into target_package_name 98/315998/3
Chanwoo Choi [Mon, 12 Aug 2024 08:59:38 +0000 (17:59 +0900)]
hal-rootstrap-checker: Add legacy package name into target_package_name

Add legacy hal-backend pacakge name into target_package_name.

Change-Id: Iaa2fa807eb7c30cdbe19ccfe82ae23c1216a18a0
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
10 months agohal-rootstrap-checker: Add kernel header package into allowed_buildrequires/buildconf... 95/315995/4
Chanwoo Choi [Mon, 12 Aug 2024 08:40:59 +0000 (17:40 +0900)]
hal-rootstrap-checker: Add kernel header package into allowed_buildrequires/buildconflicts

kernel-header packages depends on hardware. So that it needs to allow
the kernel header packages for each hardware device.

But, Tizen provides the standard kernel header package as
linux-glibc-devel. In order to prevent the conflict between
linux-glibc-devel and kernel-headers-[soc or vendor] package,
add kernel header packages to buildconflicts.

Change-Id: Ib2e57e451484c20420d281b0f9ae94716cbd08c9
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
10 months agochecker: Add configuration for BuildConflicts 05/316005/1
Youngjae Cho [Mon, 12 Aug 2024 09:36:08 +0000 (18:36 +0900)]
checker: Add configuration for BuildConflicts

Change-Id: I7d4fd5efb37b88d2b4fff641a1d565c5fd1a725b
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
10 months agochecker: Fix to skip empty line of rpmspec result 04/316004/1
Youngjae Cho [Mon, 12 Aug 2024 09:29:26 +0000 (18:29 +0900)]
checker: Fix to skip empty line of rpmspec result

Change-Id: Ic14319f594b5330735995fe06290fc73b9620fd7
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
10 months agochecker: Introduce hal-rootstrap-checker accepted/tizen/unified/20240812.190146 accepted/tizen/unified/dev/20240813.040007 accepted/tizen/unified/x/20240813.112440
Youngjae Cho [Tue, 6 Aug 2024 08:52:13 +0000 (17:52 +0900)]
checker: Introduce hal-rootstrap-checker

The hal-rootstrap-checker is mainly for screening packages out from
build that have dependencies to unmanaged, especially ABI incompatible,
packages. It operates after every %install stage of rpmbuild, aided by
rpm macro. Those managed/unmanaged packages can be configured by yaml
file described below.

The rpm package has implemented empty macro,
 %{__hal_rootstrap_checker_install_post}
and the rpmbuild has gained 'Requires' dependency to the
hal-rootstrap-checker, making the hal-rootstrap-checker overwrite the
macro with its macro, executing hal-rootstrap-checker.sh. See
hal-rootstrap-checker-rpmmacros.

The hal-rootstrap-checker.sh can be configured by yaml file with the
same name. The default one is
 /etc/hal/rootstrap/hal-rootstrap-checker.yaml.

And there can be another one,
 /etc/hal/rootstrap/rules.d/hal-rootstrap-checker.yaml,
which shades the default configuration, and it gives a way for applying
custom defined configuration.

For those details about configuration attributes, see the yaml file.

Change-Id: I354f154fa6ac670c2e95fc09b947dbc4ecfaf229
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
10 months agoRevert "packaging: Add hal-rootstrap-tv BuildRequires dependency on TV profile build" 52/315652/1 accepted/tizen/unified/20240807.010734 accepted/tizen/unified/20240807.201026 accepted/tizen/unified/20240809.202901 accepted/tizen/unified/dev/20240807.093105 accepted/tizen/unified/toolchain/20240812.133520 accepted/tizen/unified/x/20240807.014307 accepted/tizen/unified/x/asan/20240813.232004
Chanwoo Choi [Tue, 6 Aug 2024 02:05:52 +0000 (11:05 +0900)]
Revert "packaging: Add hal-rootstrap-tv BuildRequires dependency on TV profile build"

This reverts commit 5f703890697b243d25698669ec2e6920cf351343.

There are no hal-rootstrap-tv pacakge. It causes the build break on TV
profile build. After creating hal-rootstrap-tv package, will restore it.

Change-Id: I0af8e811f913c5c3468b750c5f745681038e0fc9
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
10 months agoModify generate script to copy xml files 73/314773/1 accepted/tizen/unified/20240719.080603 accepted/tizen/unified/20240805.114538 accepted/tizen/unified/dev/20240722.073442 accepted/tizen/unified/x/20240719.092014 accepted/tizen/unified/x/20240719.131405
SangYoun Kwak [Fri, 19 Jul 2024 00:19:20 +0000 (09:19 +0900)]
Modify generate script to copy xml files

Conditions:
  1. The .xml files are separated as another repository and its install
     location is under /tmp.
  2. The convert32.sh and convert64.sh scripts convert paths in the .xml
     files as their architecture(ex: /usr/lib -> /usr/lib64) and they
     searchs .xml files under its abuild directory.
According to conditions above, it is unable to convert architecture
specific paths of .xml files. Thus, some files are not copied.

To solve this problem, .xml files under /tmp are copied to abuild
directory. (manipulating .xml files under /tmp directory causes
permission problem, so they should be copied beforehand)

Change-Id: Iedc303c1720e41e33b2970b765630f7b5080054d
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
11 months agopackaging: Add hal-rootstrap-tv BuildRequires dependency on TV profile build 89/314089/1
Chanwoo Choi [Fri, 5 Jul 2024 04:45:10 +0000 (13:45 +0900)]
packaging: Add hal-rootstrap-tv BuildRequires dependency on TV profile build

Generate hal-rootstrap including the packages maintained in
hal-rootstrap-tv when TV profile build.

Change-Id: Iad74a2e3a847b225ddb97766086629a579fe20d0
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
11 months agogenerate_rootstrap: Change rs_resource path installed by hal-rootstrap-[profile] 88/314088/1
Chanwoo Choi [Fri, 5 Jul 2024 04:47:17 +0000 (13:47 +0900)]
generate_rootstrap: Change rs_resource path installed by hal-rootstrap-[profile]

hal-rootstrap-[profile] will install the rs_resource files into
/tmp/rs_resource path and then hal-rootstrap.git will get the xml of
package information under /tmp/rs_resource/ directory.

Change-Id: I7d83b9abc7c987cfa141bce71cbb18a9b9c1c6b7
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
11 months agoAdd support for hal-rootstrap extension for each Tizen profile 87/314087/1
Chanwoo Choi [Thu, 4 Jul 2024 08:15:56 +0000 (17:15 +0900)]
Add support for hal-rootstrap extension for each Tizen profile

Separate the package maintenance from hal-rootstrap generation
script/config in order to add/remove/update the packages included in
hal-rootstrap according to GBM policy. So that move all package
information to hal-rootstrap-common.git.

hal-rootstrap-*.rpm is composed with hal-rootstrap.git, hal-rootstrap-common.git
and hal-rootstrap-[profile].git to make HAL rootstrap.

hal-rootstrap.git contains only scripts and configuraiton to make HAL
rootstrap and doesn't contain the any detailed package information.

All pacakge information should be maintained on hal-rootstrap-[profile].git.
hal-rootstrap-common.git includes the maintained packages by public Tizen
and each hal-rootstrap-[profile].git is able to handle the GBM packages.

For example of combination of hal-rootstrap packages,
    hal-rootstrap + hal-rootstrap-common
    hal-rootstrap + hal-rootstrap-common + hal-rootstrap-tv
    hal-rootstrap + hal-rootstrap-common + hal-rootstrap-tv + hal-rootstrap-ballie
    hal-rootstrap + hal-rootstrap-common + hal-rootstrap-da

Change-Id: Id794588b646bbe65b8df1fd4a5e092a995c26bcb
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
11 months agoHAL: Add necessary header files of hal-api-device module 91/313591/3 accepted/tizen/unified/20240701.191808 accepted/tizen/unified/20240715.155429 accepted/tizen/unified/dev/20240702.054049 accepted/tizen/unified/x/20240702.031226 accepted/tizen/unified/x/20240715.090405
Yunhee Seo [Fri, 28 Jun 2024 06:52:01 +0000 (15:52 +0900)]
HAL: Add necessary header files of hal-api-device module

Before this patch, there were omitted several types header files.
It caused build fails, thus hal-api-device module types header is added.

Change-Id: Id6384a9d0a8e29c0124c1a049d4f5517e623f28e
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agoAdd support for riscv64 architecture 09/313409/1 accepted/tizen/unified/20240626.155308 accepted/tizen/unified/dev/20240701.073027 accepted/tizen/unified/x/20240627.011853
SangYoun Kwak [Mon, 24 Jun 2024 06:15:17 +0000 (15:15 +0900)]
Add support for riscv64 architecture

<file_riscv64> tag is added to the xml files and the files are modified
if there is riscv64-specific files.

Change-Id: I0611d0acee3b79068a7ccc7d5a135fd16a167d6f
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
11 months agoModify '*' to actual file path 08/313408/1
SangYoun Kwak [Tue, 25 Jun 2024 07:28:41 +0000 (16:28 +0900)]
Modify '*' to actual file path

Since the files are downloaded in one location, files are mixed together
and unable to know which file is belongs to a package.
To distinguish files for each package, the actual file paths are
specified.

Change-Id: I66c1ab5db2cf55cbf3c88c9cd4a30b33f9b2a89f
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
11 months agoRemove unused xml file 07/313407/1
SangYoun Kwak [Tue, 25 Jun 2024 09:29:08 +0000 (18:29 +0900)]
Remove unused xml file

Change-Id: I80cd1083012b23d4e4234f8e80b4299c6f120933
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
11 months agoAdd new package libtpl-egl 33/313333/1 accepted/tizen/unified/20240625.163150 accepted/tizen/unified/x/20240626.052159
SangYoun Kwak [Mon, 24 Jun 2024 04:49:54 +0000 (13:49 +0900)]
Add new package libtpl-egl

A new package is added: platform/core/uifw/libtpl-egl

Change-Id: Ib97780d6a6cba1aa735f9156191e3be821165733
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
11 months agoRemove useless scripts/files 18/313018/5 accepted/tizen/unified/20240624.104730 accepted/tizen/unified/x/20240625.014048
SangYoun Kwak [Tue, 18 Jun 2024 07:09:05 +0000 (16:09 +0900)]
Remove useless scripts/files

There are some scripts/files that useless/meaningless to use in hal
rootstrap.
These scripts are removed.

Change-Id: Iad384436fe0b00bf4a9f71384a992e0e59ad09d3
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
11 months agomodify_pc: Modify to remove regex syntax warning 79/313279/2
SangYoun Kwak [Fri, 21 Jun 2024 08:17:05 +0000 (17:17 +0900)]
modify_pc: Modify to remove regex syntax warning

The '\s' in the regex for python means whitespace. Also, '\' is used for
escape sequence, so '\s' is ambiguous.
In python, to remove this ambiguity, '\\s' is used for whitespace.

In modify_pc.py script, '\s' is used so python raises warning. To remove
this warning, '\s' is replaced with '\\s'.

Change-Id: Ic879fa46d5919082a4b6ab8a3294dff19e61a0dc
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
11 months agoModify to copy necessary files per architecture 05/313105/3
SangYoun Kwak [Wed, 19 Jun 2024 01:35:53 +0000 (10:35 +0900)]
Modify to copy necessary files per architecture

In the .xml files, necessary files are specified and they are copied to
the final .rpm product. These files are depends on the architecture
being built.

Previously, necessary files are separated with only 32-bit and 64-bit,
but there are differences of necessary files between other
architectures, like x86_64 and i686.

Thus, tags below are added to distinguish them:
 * <file_arm> for armv7l and armv7hl
 * <file_aarch64> for aarch64
 * <file_i686> for i686
 * <file_x86_64> for x86_64

Change-Id: I9f7537b396e48036f4f73a366c15e4c3ccb5bd59
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
11 months agoFix rootstrap_get script to do postlinker 21/313021/2 accepted/tizen/unified/20240621.010423 accepted/tizen/unified/toolchain/20240624.121708 accepted/tizen/unified/x/20240624.032049 accepted/tizen/unified/x/asan/20240625.091346
SangYoun Kwak [Tue, 18 Jun 2024 09:20:43 +0000 (18:20 +0900)]
Fix rootstrap_get script to do postlinker

Finding the parameters for the postlinker was not working since the
finding location was ${DEST}, which is useless variable.
It is fixed with ${GBS_BUILDROOT}.

Change-Id: I393227cfc605335ee4a7bc015be6fcc21151724a
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
11 months agoAdd new package libtzplatform-config 79/313079/2
SangYoun Kwak [Wed, 19 Jun 2024 03:38:22 +0000 (12:38 +0900)]
Add new package libtzplatform-config

A new package is added: platform/core/system/tizen-platform-config

Change-Id: I799de105bbbb4bfcdd0152974914791783f34e02
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
11 months agoHAL: hal-api-device: Fix the wrong header file name 01/313001/2 accepted/tizen/unified/20240618.195806 accepted/tizen/unified/dev/20240620.000331 accepted/tizen/unified/x/20240619.013504
Chanwoo Choi [Tue, 18 Jun 2024 07:13:05 +0000 (16:13 +0900)]
HAL: hal-api-device: Fix the wrong header file name

Change-Id: I7a049c0544cff2544b5fdf11de2a95a848cec901
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
11 months agoHAL: Modify regular expression to contain hal-[module]-interface-[version].h header 00/313000/2
Chanwoo Choi [Tue, 18 Jun 2024 07:10:27 +0000 (16:10 +0900)]
HAL: Modify regular expression to contain hal-[module]-interface-[version].h header

Change-Id: I74874e0406a09bffebc468e67236946374466360
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
11 months agoAdd new package libdrm 77/312977/2
SangYoun Kwak [Tue, 18 Jun 2024 04:29:25 +0000 (13:29 +0900)]
Add new package libdrm

A new package is added: platform/upstream/libdrm

Change-Id: Icd942fb9da352190594409f9df3310e6d0bda295
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
11 months agoAdd new package capi-system-peripheral-io 71/312971/2
SangYoun Kwak [Tue, 18 Jun 2024 02:52:58 +0000 (11:52 +0900)]
Add new package capi-system-peripheral-io

A new package is added: platform/core/api/peripheral-io

Change-Id: I901b93abfa00d34133c02cb8a61e55e13c0fb372
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
11 months agopackaging: Remove unneeded BuildRequires 72/312972/1
Chanwoo Choi [Tue, 18 Jun 2024 03:05:51 +0000 (12:05 +0900)]
packaging: Remove unneeded BuildRequires

Change-Id: Ifcd4fc8c04c5078fd6d45348c834493d6c4d84a3
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
11 months agoModify ttrace xml to make files included properly 70/312970/1
SangYoun Kwak [Tue, 18 Jun 2024 01:42:47 +0000 (10:42 +0900)]
Modify ttrace xml to make files included properly

The name of xml was 'trace' and it is renamed as 'ttrace'.
Also, the name of .pc file(ttrace.pc) is written explicitly.

Change-Id: I687c67a4bc5fa7f76862ece64872582910002733
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
11 months agoAdd new package libudev 27/312927/1
SangYoun Kwak [Mon, 17 Jun 2024 09:20:27 +0000 (18:20 +0900)]
Add new package libudev

A new package is added: platform/upstream/systemd (libudev only)
Among the files in the systemd, only libudev package will be included.

Change-Id: I4eb54b78d131d99927b88834db42f3138fe770dd
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
11 months agoModify json-glib xml to make files included properly 19/312919/1
SangYoun Kwak [Mon, 17 Jun 2024 08:34:53 +0000 (17:34 +0900)]
Modify json-glib xml to make files included properly

Previously, the <necessary> section of json-glib-rs.xml was just an
asterisk("*"), which cannot be used in hal rootstrap.
To make hal rootstrap include the files of json-glib, necessary files
are added to the <necessary> list.
Also, the BuildRequire for json-glib is changed to use 'pkgconfig'.

Change-Id: Ia1672b140f966a3ee9c51d0bb8e9c1bcd652e403
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
11 months agoAdd new package libusb 18/312918/1
SangYoun Kwak [Mon, 17 Jun 2024 07:49:47 +0000 (16:49 +0900)]
Add new package libusb

A new package is added: platform/upstream/libusb

Change-Id: I96ec2de0b124d773479cff68311e55facbcfceeb
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
11 months agoAdd new package alsa-lib 17/312917/1
SangYoun Kwak [Mon, 17 Jun 2024 07:00:15 +0000 (16:00 +0900)]
Add new package alsa-lib

A new package is added: platform/upstream/alsa-lib

Change-Id: I7f72a62941c909debe1d030e98418a8ee863baca
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
11 months agoRemove unused files 16/312916/1
SangYoun Kwak [Mon, 17 Jun 2024 05:57:11 +0000 (14:57 +0900)]
Remove unused files

Change-Id: I046f9806e0caaef0bd847482d065929743f5aec0
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
12 months agors_resource: Remove not-used libhalcc shared library 58/312458/2 accepted/tizen/unified/20240614.010806 accepted/tizen/unified/x/20240614.080605
Chanwoo Choi [Mon, 10 Jun 2024 07:11:44 +0000 (16:11 +0900)]
rs_resource: Remove not-used libhalcc shared library

hal-api-common has created the libhalcc.so. But, it is not used anymore
and then is removed from hal-api-common.

Change-Id: I87049c0aad8e2f502e26c879402bdc3cb46c6d3b
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
12 months agoRemove not-allowed packages on rs_resource_invisible 01/312601/1
Chanwoo Choi [Tue, 11 Jun 2024 10:49:22 +0000 (19:49 +0900)]
Remove not-allowed packages on rs_resource_invisible

Change-Id: I509c779ac924cb125f04c257f965208f35cd8234
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
12 months agoRemove not-allowed packages on rs_resource_tizeniot and testproject 57/312457/1
Chanwoo Choi [Mon, 10 Jun 2024 07:11:12 +0000 (16:11 +0900)]
Remove not-allowed packages on rs_resource_tizeniot and testproject

Change-Id: Ie83c2fe3078dcd716330a584fd607792930fc0b3
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
12 months agoNativeAPI: Remove not-allowed packages 34/312434/1
Chanwoo Choi [Mon, 10 Jun 2024 02:44:38 +0000 (11:44 +0900)]
NativeAPI: Remove not-allowed packages

Change-Id: If85dda009888c8b7cc657bfe59a0388f731acd0f
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
12 months agoModify error handling codes to free resources 73/311773/8 accepted/tizen/unified/20240603.161048 accepted/tizen/unified/x/20240605.012806
SangYoun Kwak [Mon, 27 May 2024 08:45:56 +0000 (17:45 +0900)]
Modify error handling codes to free resources

In the error handling codes, allocated resources were not freed
correctly.
To fix this, resource free codes like fclose and free are added.
In addition, memory allocation failure checking code is added right
after the malloc.
Also, 'return 0;' is added to the main function of postlinker_64.c since
it did not have it.

Change-Id: I9ea6dc96267c7760596b9260ef9f0d27f1a79b19
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
12 months agoRemove unused/useless codes/files 72/311772/8
SangYoun Kwak [Mon, 27 May 2024 06:34:04 +0000 (15:34 +0900)]
Remove unused/useless codes/files

Unused / unnecessary / useless codes from postlinker source code are
removed. They don't affect the original functionalities of postlinker.

Also, postlinker is built during the gbs build, the pre-built binaries
(postlinker and postlinker_64) can be removed.

Change-Id: If5567459ceb7461bc7072145997aec7eb2ab62d4
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
12 months agoModify postlinker source for the readability 71/311771/6
SangYoun Kwak [Mon, 27 May 2024 06:29:02 +0000 (15:29 +0900)]
Modify postlinker source for the readability

For the readability of postlinker.c and postlinker_64.c, indentations
and arrangements are modified.

Change-Id: Ic8073bc29bc4c4626fad3703ab786d2af987efd5
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
12 months agopackaging: Add "ExcludeArch riscv64" not to build for riscv 87/311887/1 accepted/tizen/unified/20240603.032338 accepted/tizen/unified/toolchain/20240531.081455 accepted/tizen/unified/x/20240530.110218
Jaehoon Chung [Thu, 30 May 2024 02:11:58 +0000 (11:11 +0900)]
packaging: Add "ExcludeArch riscv64" not to build for riscv

Add "ExcludeArch riscv64" not to build for riscv.
hal-rootstrap doesn't support riscv64 yet.

Change-Id: Ic8f00eaaae9c7a7251df79b1f01820c17893e183
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
12 months agoModify files section to include both lib/lib64 59/311759/1 accepted/tizen/unified/20240529.123503
SangYoun Kwak [Mon, 27 May 2024 08:05:44 +0000 (17:05 +0900)]
Modify files section to include both lib/lib64

Since the build result can include lib, lib64 or both, just using
'%{_lib}' and '%{_libdir}' are not enough.
To include all possible situations, 'lib*/' is used.

Change-Id: Iaed4ee9d0174593223307a7c89b30eaadf91e483
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
12 months agoModify glibc xml to support emulators 58/311758/1
SangYoun Kwak [Mon, 27 May 2024 08:04:14 +0000 (17:04 +0900)]
Modify glibc xml to support emulators

To support emulators(32, 64 bits), file list of glibc is modified.

Change-Id: I199c56386b425bfdcb5e09ade2cf9dfa39d864ac
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
12 months agoAdd file_32, file_64 to <necessary> of .xml files 39/311739/1
SangYoun Kwak [Mon, 20 May 2024 06:20:44 +0000 (15:20 +0900)]
Add file_32, file_64 to <necessary> of .xml files

To distinguish 32-bit only files and 64-bit only files, file_32 and
file_64 are added to the <necessary> section of .xml files(glibc, glib2)

Also, these sections should not be modified by convert32.sh and
convert64.sh scripts, these scripts are modified not to manipulate the
file_32 and file_64 sections.

Since file_32 is only for 32-bit build and file_64 is only for 64-bit
build, the rootstrap generation scripts is also modified.

Change-Id: I4a67918986ad9925f369a36fe60926c07d6c04f7
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
12 months agoModify to be buildable for 64-bit architectures 11/311311/2
SangYoun Kwak [Fri, 17 May 2024 10:22:50 +0000 (19:22 +0900)]
Modify to be buildable for 64-bit architectures

To make hal-rootstrap buildable for 64-bit architectures, required
scripts are modified as 32-bit scripts:
 * make_rootstrap_64.sh
 * rootstrap_gen_1.0_64.sh

Change-Id: I76dd7deaecf526903adc5eee512a5a4024f13793
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
12 months agoModify script to use .pc specified in the xml 59/311559/2
SangYoun Kwak [Wed, 22 May 2024 05:57:49 +0000 (14:57 +0900)]
Modify script to use .pc specified in the xml

There are some packages that have .pc files which names are not same as
its package. In this case, it is not simple to get proper pc file by
reading the .xml file.
To resolve this problem, pkgconfig section is added to some .xml files
and parsing code is added to the script.

Change-Id: I69797e1590539431696efad250fba4013301b654
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
12 months agopackaging: Disable auto package dependency to fix image creation issue 96/311396/2
Jaehoon Chung [Mon, 20 May 2024 11:07:56 +0000 (20:07 +0900)]
packaging: Disable auto package dependency to fix image creation issue

Change-Id: I9de14e82e9d13ce63462843f1c89d46337c36551
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
12 months agoFix xml files to have necessary files 69/311469/2
SangYoun Kwak [Tue, 21 May 2024 12:43:41 +0000 (21:43 +0900)]
Fix xml files to have necessary files

There are some omitted files in the <necessary> section so they need to
be specified.
Additionally, EFL is not required, so it is removed.

Change-Id: I678781513f28ccfcf62d8e9551e947015c9fc240
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
12 months agoModify script to include only necessary .pc file 68/311468/1
SangYoun Kwak [Tue, 21 May 2024 12:39:13 +0000 (21:39 +0900)]
Modify script to include only necessary .pc file

Previously, rootstrap generation script copied every .pc files in the
pkgconfig path but it is not valid since there are some packages which
installed by dependencies. Those packages should not be included in the
.pc file, so the script is modified to copy .pc files which are in the
necessary packages.

Change-Id: Ifb9baa2541e00500341930618fa58c2abdd788d4
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
12 months agoModify to be buildable for emulator(32-bit) 93/311293/1
SangYoun Kwak [Fri, 17 May 2024 09:16:54 +0000 (18:16 +0900)]
Modify to be buildable for emulator(32-bit)

1. Building scripts for emulator are modified that can be used by the
   gbs build.
2. Emulator informations are added to .xml files of hal:
   * To make rootstrap for emulator(32-bit) include hal files, emulator
     section is added to the corresponding .xml files.

Change-Id: I919e804762ab015906ed57d94b3fb4a2d7b16e73
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
12 months agoAdd file list of necessary files of package glibc 83/311283/2
SangYoun Kwak [Fri, 17 May 2024 06:50:16 +0000 (15:50 +0900)]
Add file list of necessary files of package glibc

Necessary files of glibc was '*', which means every file in the rpm
package but in the gbs build, it is unable to determine which file is
from glibc. Thus, necessary files should be specified in the xml file.

Also, to include all necessary files, 'files' section of .spec file is
modified.

Change-Id: Ia23904db03966906224925909eeb4848dc0c654e
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
12 months agoModify convert32.sh for 64-to-32-bit convertion of xml files 85/311285/1
SangYoun Kwak [Fri, 17 May 2024 07:38:45 +0000 (16:38 +0900)]
Modify convert32.sh for 64-to-32-bit convertion of xml files

Change-Id: Ibe67dbcc80b9de27a22a58ac24efe96700584f3e
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
12 months agoAdd file list of necessary files of package glib2 99/311199/1
SangYoun Kwak [Thu, 16 May 2024 03:03:46 +0000 (12:03 +0900)]
Add file list of necessary files of package glib2

Previously, necessary files of glib2 was '*', which means every files in
the rpm package.
But now the package files are downloaded by gbs using BuildRequires, it
is required to specify the required files(because the files of
BuildRequires are all downloaded and mixed so there is no way to specify
which file is from glib2).
Thus, necessary files are added to the glib2-rs.xml.
Additionally, glib2-rs.xml requires file path started with
'/usr/share/gdb/auto-load/usr/lib' and it is architecture-dependent.
To support 64-bit, convert64.sh script is modified to support this.

Change-Id: I26d757f37c3cd3910f8a399975728562791d456a
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
12 months agoModify to create .pc file with BuildRequire packages 98/311198/1
SangYoun Kwak [Tue, 14 May 2024 06:27:52 +0000 (15:27 +0900)]
Modify to create .pc file with BuildRequire packages

If some other package BuildRequires this hal-rootstrap package with
pkgconfig, it refers hal-rootstrap.pc for the locations of includes and
libraries.
Thus, to make them buildable, it is required to include all possible
paths of headers and libraries in the .pc file.
The script modify_pc.py reads every .pc files then modifies
hal-rootstrap.pc file to include them.

Change-Id: Icf114a20a705b7fd8854041c0ab59e18a192fc30
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
12 months agoModify to make rootstrap through make_rootstrap script 42/310542/2
SangYoun Kwak [Mon, 29 Apr 2024 06:51:02 +0000 (15:51 +0900)]
Modify to make rootstrap through make_rootstrap script

Change-Id: Ided8d2b522d67706c8c14e6932b1d7efb9569a14
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
13 months agoModify convert scripts can be run on gbs build 41/310541/1
SangYoun Kwak [Mon, 29 Apr 2024 09:34:12 +0000 (18:34 +0900)]
Modify convert scripts can be run on gbs build

To make convert32.sh and convert64.sh can be run on gbs build, git
command is removed from those scripts.
(Since gbs build runs on a sandbox environment, there is no need to use
git command to restore or something)

Change-Id: I2b253b42bd386673086e35d674160a89260e6a0a
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
13 months agoRename xmls for HAL 40/310540/1
SangYoun Kwak [Mon, 29 Apr 2024 09:02:55 +0000 (18:02 +0900)]
Rename xmls for HAL

To maintain consistent XML file names, the names of XML files under HAL
have been changed:
 * hal-api-*.xml -> hal-api-*-rs.xml

Change-Id: Ie0b4ac3adb97cb3be9fc8f528b9ad9a4d78d6ef5
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
13 months agopackaging: Add only support for armv7l arch type
Chanwoo Choi [Wed, 24 Apr 2024 09:37:52 +0000 (18:37 +0900)]
packaging: Add only support for armv7l arch type

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
13 months agoHAL: hal-api-device: Add missing hal interface header files
Chanwoo Choi [Tue, 16 Apr 2024 10:10:48 +0000 (19:10 +0900)]
HAL: hal-api-device: Add missing hal interface header files

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
13 months agoHAL: Add missing hal-[module]-types.h header files
Chanwoo Choi [Tue, 16 Apr 2024 10:08:11 +0000 (19:08 +0900)]
HAL: Add missing hal-[module]-types.h header files

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
13 months agopackaging: Remove package dependency of shared library from hal-rootstrap.rpm
Chanwoo Choi [Tue, 16 Apr 2024 09:33:50 +0000 (18:33 +0900)]
packaging: Remove package dependency of shared library from hal-rootstrap.rpm

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
14 months agopackaging: Change install path to /opt/data/hal-rootstrap and use rpm macro
Chanwoo Choi [Tue, 9 Apr 2024 12:52:43 +0000 (21:52 +0900)]
packaging: Change install path to /opt/data/hal-rootstrap and use rpm macro

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
14 months agopackaging: Add hal-rootstrap-devel package
Chanwoo Choi [Tue, 9 Apr 2024 12:13:20 +0000 (21:13 +0900)]
packaging: Add hal-rootstrap-devel package

Add hal-rootstrap-devel package contains the hal-rootstrap.pc pkgconfig
file which specifies libdir and include_dir path.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
14 months agoAdd BuildRequires and .xml files for hal-api
SangYoun Kwak [Tue, 9 Apr 2024 10:48:02 +0000 (19:48 +0900)]
Add BuildRequires and .xml files for hal-api

Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
14 months agoModify rpm install path to /opt/data/hal
SangYoun Kwak [Tue, 9 Apr 2024 10:26:23 +0000 (19:26 +0900)]
Modify rpm install path to /opt/data/hal

Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
14 months agoAdd BuildRequires for the hal-backend-sensor-rpi
SangYoun Kwak [Tue, 9 Apr 2024 06:20:27 +0000 (15:20 +0900)]
Add BuildRequires for the hal-backend-sensor-rpi

Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
14 months agoAdd script to copy necessary files
SangYoun Kwak [Tue, 9 Apr 2024 06:17:46 +0000 (15:17 +0900)]
Add script to copy necessary files

To copy necessary files which are written in the .xml files, a script
'copy_required_files.sh' is added.

Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
14 months agoModify .spec to build tool and install files
SangYoun Kwak [Mon, 8 Apr 2024 12:31:41 +0000 (21:31 +0900)]
Modify .spec to build tool and install files

In the process of making hal-backend, 'postlinker' is used(refer script
rootstrap_gen_1.0.sh), so CMakeLists.txt is added to build postlinker
executable in the ARM environment.

copy_required_files.sh script is added to read .xml and copy required
files. Currently, it is a dummy script.

Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
14 months agoAdd .spec file to make gbs build possible
SangYoun Kwak [Mon, 8 Apr 2024 10:43:08 +0000 (19:43 +0900)]
Add .spec file to make gbs build possible

To make this repository can be built by gbs, .spec file is added.

Necessary 'BuildRequires' are included:
 * cmake and xmlstarlet is added to use command cmake and xmlstarlet.
 * Packages for 'BuildRequires' are referenced from .xml files in the
   directories below:
    * rs_resource/NativeAPI
    * rs_resource/OSS

To prevent 'BuildRequires' conflict, packages below are removed:
 * chromium-efl, chromium-efl-devel: conflict with libscl-common
 * oauth2, oauth2-devel: requires chromium-efl, conflict with
   libscl-common as a result.

Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
14 months agoFix scripts to use tabs for indentations
SangYoun Kwak [Fri, 29 Mar 2024 05:40:10 +0000 (14:40 +0900)]
Fix scripts to use tabs for indentations

Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
15 months agoMerge pull request #39 from h-jhun/ACR-1828
오창석/Tizen Platform Lab(SR)/삼성전자 [Mon, 11 Mar 2024 00:12:44 +0000 (09:12 +0900)]
Merge pull request #39 from h-jhun/ACR-1828

[ACR-1828] Add tizen-core-rs.xml

15 months ago[ACR-1828] Add tizen-core-rs.xml
Hwankyu Jhun [Thu, 7 Mar 2024 00:18:06 +0000 (09:18 +0900)]
[ACR-1828] Add tizen-core-rs.xml

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoMerge pull request #37 from jiyong-min/tizen_9.0
오창석/Tizen Platform Lab(SR)/삼성전자 [Mon, 4 Mar 2024 23:58:24 +0000 (08:58 +0900)]
Merge pull request #37 from jiyong-min/tizen_9.0

[ACR-1826] Remove deprecated capi-media-streamer APIs

15 months ago[ACR-1826] Remove deprecated capi-media-streamer APIs
Jiyong [Mon, 4 Mar 2024 23:41:22 +0000 (08:41 +0900)]
[ACR-1826] Remove deprecated capi-media-streamer APIs

15 months agoMerge pull request #31 from jykeon/tizen_9.0
오창석/Tizen Platform Lab(SR)/삼성전자 [Tue, 20 Feb 2024 09:54:06 +0000 (18:54 +0900)]
Merge pull request #31 from jykeon/tizen_9.0

Delete. Because it is remove ui-viewgmr APIs via ACR-1686.

15 months agoDelete. Because it is remove ui-viewgmr APIs via ACR-1686.
jykeon [Tue, 20 Feb 2024 09:15:09 +0000 (18:15 +0900)]
Delete. Because it is remove ui-viewgmr APIs via ACR-1686.

Signed-off-by: jykeon <jykeon@samsung.com>
16 months agotizen-9.0_64 rootstrap version: 0.0.141, snapshot: https://download.tizen.org/snapsho...
tizensdk [Tue, 23 Jan 2024 07:07:05 +0000 (12:37 +0530)]
tizen-9.0_64 rootstrap version: 0.0.141, snapshot: https://download.tizen.org/snapshots/TIZEN/Tizen/Tizen-Unified/tizen-unified_20240122.133120/

16 months agotizen 9.0 rootstrap version: 0.0.180, snapshot: https://download.tizen.org/snapshots...
tizensdk [Tue, 23 Jan 2024 06:20:48 +0000 (11:50 +0530)]
tizen 9.0 rootstrap version: 0.0.180, snapshot: https://download.tizen.org/snapshots/TIZEN/Tizen/Tizen-Unified/tizen-unified_20240122.133120/

16 months agoMerge pull request #23 from gilbok-lee/tizen_9.0
오창석/Tizen Platform Lab(SR)/삼성전자 [Mon, 22 Jan 2024 08:29:36 +0000 (17:29 +0900)]
Merge pull request #23 from gilbok-lee/tizen_9.0

[ACR-1816] Remove deprecated capi-media-streamrecorder APIs