summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-08-28Fix to continue remaining .pc file process on errortizen_9.0_m2_releaseaccepted/tizen/unified/x/asan/20241014.000552accepted/tizen/unified/x/20240829.105236accepted/tizen/unified/toolchain/20241004.102144accepted/tizen/unified/dev/20240901.214759accepted/tizen/unified/20240829.091444accepted/tizen/9.0/unified/20241030.234405accepted/tizen_unified_x_asanaccepted/tizen_unified_xaccepted/tizen_unified_toolchainaccepted/tizen_unified_devYoungjae Cho2-2/+2
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>
2024-08-14hal-rootstrap-checker: Move source to Tizen-Base projectaccepted/tizen/unified/x/20240820.013158accepted/tizen/unified/dev/20240821.053507accepted/tizen/unified/20240819.150149Youngjae Cho4-348/+0
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>
2024-08-13packaging: Disable auto package dependencySangYoun Kwak1-0/+1
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>
2024-08-12hal-rootstrap-checker: Fix install path of hal-rootstrap-checker-rpmmacrosYoungjae Cho2-8/+4
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>
2024-08-12Modify dependent package name to hal-rootstrap-data-commonSangYoun Kwak1-1/+1
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>
2024-08-12Separate common packages included in both headless and headed imageSangYoun Kwak6-29/+91
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>
2024-08-12hal-rootstrap-checker: Fix typo of CHECK_ALWAYS variableYoungjae Cho1-1/+1
Change-Id: I37f1cc44c4ff6c22cecbe4b93ddf34d8e2f9ee98 Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2024-08-12hal-rootstrap-checker: Add legacy package name into target_package_nameChanwoo Choi1-0/+9
Add legacy hal-backend pacakge name into target_package_name. Change-Id: Iaa2fa807eb7c30cdbe19ccfe82ae23c1216a18a0 Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2024-08-12hal-rootstrap-checker: Add kernel header package into ↵Chanwoo Choi1-0/+4
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>
2024-08-12checker: Add configuration for BuildConflictsYoungjae Cho2-1/+42
Change-Id: I7d4fd5efb37b88d2b4fff641a1d565c5fd1a725b Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2024-08-12checker: Fix to skip empty line of rpmspec resultYoungjae Cho1-0/+6
Change-Id: Ic14319f594b5330735995fe06290fc73b9620fd7 Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2024-08-09checker: Introduce hal-rootstrap-checkeraccepted/tizen/unified/x/20240813.112440accepted/tizen/unified/dev/20240813.040007accepted/tizen/unified/20240812.190146Youngjae Cho4-3/+294
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>
2024-08-06Revert "packaging: Add hal-rootstrap-tv BuildRequires dependency on TV ↵accepted/tizen/unified/x/asan/20240813.232004accepted/tizen/unified/x/20240807.014307accepted/tizen/unified/toolchain/20240812.133520accepted/tizen/unified/dev/20240807.093105accepted/tizen/unified/20240809.202901accepted/tizen/unified/20240807.201026accepted/tizen/unified/20240807.010734Chanwoo Choi1-3/+0
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>
2024-07-19Modify generate script to copy xml filesaccepted/tizen/unified/x/20240719.131405accepted/tizen/unified/x/20240719.092014accepted/tizen/unified/dev/20240722.073442accepted/tizen/unified/20240805.114538accepted/tizen/unified/20240719.080603SangYoun Kwak1-5/+7
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>
2024-07-05packaging: Add hal-rootstrap-tv BuildRequires dependency on TV profile buildChanwoo Choi1-0/+3
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>
2024-07-05generate_rootstrap: Change rs_resource path installed by hal-rootstrap-[profile]Chanwoo Choi1-5/+5
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>
2024-07-05Add support for hal-rootstrap extension for each Tizen profileChanwoo Choi49-5166/+1
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>
2024-06-28HAL: Add necessary header files of hal-api-device moduleaccepted/tizen/unified/x/20240715.090405accepted/tizen/unified/x/20240702.031226accepted/tizen/unified/dev/20240702.054049accepted/tizen/unified/20240715.155429accepted/tizen/unified/20240701.191808Yunhee Seo1-0/+9
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>
2024-06-25Add support for riscv64 architectureaccepted/tizen/unified/x/20240627.011853accepted/tizen/unified/dev/20240701.073027accepted/tizen/unified/20240626.155308SangYoun Kwak6-628/+1876
<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>
2024-06-25Modify '*' to actual file pathSangYoun Kwak8-7/+1440
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>
2024-06-25Remove unused xml fileSangYoun Kwak1-19/+0
Change-Id: I80cd1083012b23d4e4234f8e80b4299c6f120933 Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2024-06-24Add new package libtpl-eglaccepted/tizen/unified/x/20240626.052159accepted/tizen/unified/20240625.163150SangYoun Kwak2-0/+26
A new package is added: platform/core/uifw/libtpl-egl Change-Id: Ib97780d6a6cba1aa735f9156191e3be821165733 Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2024-06-21Remove useless scripts/filesaccepted/tizen/unified/x/20240625.014048accepted/tizen/unified/20240624.104730SangYoun Kwak13-1726/+17
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>
2024-06-21modify_pc: Modify to remove regex syntax warningSangYoun Kwak2-3/+4
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>
2024-06-21Modify to copy necessary files per architectureSangYoun Kwak8-31/+104
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>
2024-06-19Fix rootstrap_get script to do postlinkeraccepted/tizen/unified/x/asan/20240625.091346accepted/tizen/unified/x/20240624.032049accepted/tizen/unified/toolchain/20240624.121708accepted/tizen/unified/20240621.010423SangYoun Kwak2-2/+2
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>
2024-06-19Add new package libtzplatform-configSangYoun Kwak2-0/+24
A new package is added: platform/core/system/tizen-platform-config Change-Id: I799de105bbbb4bfcdd0152974914791783f34e02 Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2024-06-18HAL: hal-api-device: Fix the wrong header file nameaccepted/tizen/unified/x/20240619.013504accepted/tizen/unified/dev/20240620.000331accepted/tizen/unified/20240618.195806Chanwoo Choi1-8/+8
Change-Id: I7a049c0544cff2544b5fdf11de2a95a848cec901 Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2024-06-18HAL: Modify regular expression to contain hal-[module]-interface-[version].h ↵Chanwoo Choi15-27/+27
header Change-Id: I74874e0406a09bffebc468e67236946374466360 Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2024-06-18Add new package libdrmSangYoun Kwak2-0/+60
A new package is added: platform/upstream/libdrm Change-Id: Icd942fb9da352190594409f9df3310e6d0bda295 Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2024-06-18Add new package capi-system-peripheral-ioSangYoun Kwak2-2/+16
A new package is added: platform/core/api/peripheral-io Change-Id: I901b93abfa00d34133c02cb8a61e55e13c0fb372 Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2024-06-18packaging: Remove unneeded BuildRequiresChanwoo Choi1-313/+0
Change-Id: Ifcd4fc8c04c5078fd6d45348c834493d6c4d84a3 Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2024-06-18Modify ttrace xml to make files included properlySangYoun Kwak2-3/+7
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>
2024-06-17Add new package libudevSangYoun Kwak2-0/+23
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>
2024-06-17Modify json-glib xml to make files included properlySangYoun Kwak2-6/+22
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>
2024-06-17Add new package libusbSangYoun Kwak2-0/+25
A new package is added: platform/upstream/libusb Change-Id: I96ec2de0b124d773479cff68311e55facbcfceeb Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2024-06-17Add new package alsa-libSangYoun Kwak2-0/+62
A new package is added: platform/upstream/alsa-lib Change-Id: I7f72a62941c909debe1d030e98418a8ee863baca Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2024-06-17Remove unused filesSangYoun Kwak435-40817/+0
Change-Id: I046f9806e0caaef0bd847482d065929743f5aec0 Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2024-06-12rs_resource: Remove not-used libhalcc shared libraryaccepted/tizen/unified/x/20240614.080605accepted/tizen/unified/20240614.010806Chanwoo Choi1-1/+0
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>
2024-06-12Remove not-allowed packages on rs_resource_invisibleChanwoo Choi31-748/+0
Change-Id: I509c779ac924cb125f04c257f965208f35cd8234 Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2024-06-10Remove not-allowed packages on rs_resource_tizeniot and testprojectChanwoo Choi24-2134/+0
Change-Id: Ie83c2fe3078dcd716330a584fd607792930fc0b3 Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2024-06-10NativeAPI: Remove not-allowed packagesChanwoo Choi125-3145/+0
Change-Id: If85dda009888c8b7cc657bfe59a0388f731acd0f Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2024-06-03Modify error handling codes to free resourcesaccepted/tizen/unified/x/20240605.012806accepted/tizen/unified/20240603.161048SangYoun Kwak2-49/+198
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>
2024-06-03Remove unused/useless codes/filesSangYoun Kwak5-28/+10
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>
2024-06-03Modify postlinker source for the readabilitySangYoun Kwak2-286/+266
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>
2024-05-30packaging: Add "ExcludeArch riscv64" not to build for riscvaccepted/tizen/unified/x/20240530.110218accepted/tizen/unified/toolchain/20240531.081455accepted/tizen/unified/20240603.032338Jaehoon Chung1-0/+1
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>
2024-05-27Modify files section to include both lib/lib64accepted/tizen/unified/20240529.123503SangYoun Kwak1-3/+2
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>
2024-05-27Modify glibc xml to support emulatorsSangYoun Kwak1-7/+9
To support emulators(32, 64 bits), file list of glibc is modified. Change-Id: I199c56386b425bfdcb5e09ade2cf9dfa39d864ac Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2024-05-27Add file_32, file_64 to <necessary> of .xml filesSangYoun Kwak7-17/+30
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>
2024-05-27Modify to be buildable for 64-bit architecturesSangYoun Kwak3-90/+113
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>