mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
The host ca-certificates is needed to download the SPDX schema on CycloneDX's GitHub when using Buildroot's host Python, see urllib.request.urlretrieve(SPDX_SCHEMA_URL, SPDX_SCHEMA_PATH) in utils/generate-cyclonedx. Note that unlike the target package which uses a _TARGET_FINALIZE_HOOKS since commit2bc8e72baf("package/ca-certificates: create the bundle as target-finalize hook"), the host package doesn't have this option as there's no such hook for host packages. Therefore, the target's CA_CERTIFICATES_INSTALL_TARGET_CMDS and CA_CERTIFICATES_GEN_BUNDLE are merged and adapted into HOST_CA_CERTIFICATES_INSTALL_CMDS. This of course has the same shortcomings as the target package had before commit2bc8e72baf("package/ca-certificates: create the bundle as target-finalize hook"). The adaptations were: - replaced $(TARGET_MAKE_ENV) with $(HOST_MAKE_ENV) - replaced $(TARGET_DIR) to $(HOST_DIR) - replaced $(HOST_DIR)/usr with $(HOST_DIR) - replaced find usr/share/ca-certificates with find share/ca-certificates (since it's done from within $(HOST_DIR) Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>