From 83228dc3df3ccce7b9effbdcee43c149f79e07e2 Mon Sep 17 00:00:00 2001 From: Andrew Jeffery Date: Tue, 27 Jun 2023 21:29:51 +0930 Subject: meta-phosphor: libpldm: Rework ABI PACKAGECONFIG configuration Define three categories of ABI configuration via PACKAGECONFIG: 1. abi-production: Only deprecated and stable symbols are exposed 2. abi-maintenance: Only stable and testing symbols are exposed 3. abi-development: All deprecated, stable and testing symbols are exposed This makes it relatively straight-forward to perform broad testing for use of deprecated functions by setting `PACKAGECONFIG = "abi-maintenance"` in a `libpldm_%.bbappend` in the relevant meta layer. However, build for abi-production by default. Change-Id: I9df824e2543829dbe66a7203240e5367ffded3e3 Signed-off-by: Andrew Jeffery --- meta-phosphor/recipes-phosphor/libpldm/libpldm_git.bb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'meta-phosphor/recipes-phosphor/libpldm') diff --git a/meta-phosphor/recipes-phosphor/libpldm/libpldm_git.bb b/meta-phosphor/recipes-phosphor/libpldm/libpldm_git.bb index acb8399394..4d0766266e 100644 --- a/meta-phosphor/recipes-phosphor/libpldm/libpldm_git.bb +++ b/meta-phosphor/recipes-phosphor/libpldm/libpldm_git.bb @@ -4,9 +4,13 @@ HOMEPAGE = "https://github.com/openbmc/libpldm" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" SRCREV = "4e1ba8a736a4272e15f8e4541858407821d6b59e" -LIBPLDM_ABI_STABLE = "deprecated,stable" -LIBPLDM_ABI_TESTING = "deprecated,stable,testing" -PACKAGECONFIG[abi-testing] = "-Dabi=${LIBPLDM_ABI_TESTING},-Dabi=${LIBPLDM_ABI_STABLE},," +LIBPLDM_ABI_DEVELOPMENT = "deprecated,stable,testing" +LIBPLDM_ABI_MAINTENANCE = "stable,testing" +LIBPLDM_ABI_PRODUCTION = "deprecated,stable" +PACKAGECONFIG ??= "abi-production" +PACKAGECONFIG[abi-development] = "-Dabi=${LIBPLDM_ABI_DEVELOPMENT},,," +PACKAGECONFIG[abi-maintenance] = "-Dabi=${LIBPLDM_ABI_MAINTENANCE},,," +PACKAGECONFIG[abi-production] = "-Dabi=${LIBPLDM_ABI_PRODUCTION},,," PACKAGECONFIG[oem-ibm] = "-Doem-ibm=enabled,-Doem-ibm=disabled,," PV = "git${SRCPV}" -- cgit v1.2.3