Skip to content

Commit

Permalink
fix build issue and setup recipes to use git tag versions in packages (
Browse files Browse the repository at this point in the history
…#18)

* fix build issue and setup recipes to use git tag versions in packages

Signed-off-by: Beri Levi <[email protected]>

* fixed build issue in kirkstone

Signed-off-by: Beri Levi <[email protected]>

---------

Signed-off-by: Beri Levi <[email protected]>
  • Loading branch information
berilevi authored Jul 4, 2024
1 parent 12e7f72 commit aab5f1d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 35 deletions.
10 changes: 4 additions & 6 deletions recipes-ccsp/ccsp/rdk-ppp-manager.bb
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@ DEPENDS = "ccsp-common-library dbus rdk-logger utopia halinterface libunpriv"

require recipes-ccsp/ccsp/ccsp_common.inc

SRC_URI = "git://[email protected]/rdkcentral/RdkPppManager.git;branch=main;protocol=https;name=PppManager"
SRCREV = "v1.0.0"

SRCREV_FORMAT = "PppManager"

PV = "${RDK_RELEASE}+git${SRCPV}"
GIT_TAG = "v1.0.0"
SRC_URI := "git://github.com/rdkcentral/RdkPppManager.git;branch=main;protocol=https;name=PppManager;tag=${GIT_TAG}"
PV = "${GIT_TAG}+git${SRCPV}"

S = "${WORKDIR}/git"

Expand Down Expand Up @@ -43,6 +40,7 @@ do_install_append () {
install -d ${D}${exec_prefix}/rdk/pppmanager
ln -sf ${bindir}/pppmanager ${D}${exec_prefix}/rdk/pppmanager/pppmanager
install -m 644 ${S}/config/RdkPppManager.xml ${D}/usr/rdk/pppmanager/
echo "sha value for recipe " + ${SRCREV_PppManager}
}


Expand Down
10 changes: 4 additions & 6 deletions recipes-ccsp/ccsp/rdk-vlanmanager.bb
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=175792518e4ac015ab6696d16c4f607e"
DEPENDS = "ccsp-common-library dbus rdk-logger utopia hal-platform libunpriv"

require recipes-ccsp/ccsp/ccsp_common.inc
SSTATE_SKIP_CREATION = "1"

SRC_URI = "git://[email protected]/rdkcentral/RdkVlanBridgingManager.git;branch=main;protocol=https;name=VlanBridgingManager"
SRCREV = "v1.0.0"

SRCREV_FORMAT = "VlanBridgingManager"

PV = "${RDK_RELEASE}+git${SRCPV}"
GIT_TAG = "v1.0.0"
SRC_URI = "git://github.com/rdkcentral/RdkVlanBridgingManager.git;branch=main;protocol=https;name=VlanBridgingManager;tag=${GIT_TAG}"
PV = "${GIT_TAG}+git${SRCPV}"

S = "${WORKDIR}/git"

Expand Down
10 changes: 3 additions & 7 deletions recipes-ccsp/ccsp/rdk-wanmanager.bb
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@ DEPENDS_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'rdkb_wan_manager', '

require recipes-ccsp/ccsp/ccsp_common.inc

PV = "${RDK_RELEASE}+git${SRCPV}"
SRC_URI = "git://[email protected]/rdkcentral/RdkWanManager.git;branch=main;protocol=https;name=WanManager"
SRCREV = "v2.2.0"


SRCREV_FORMAT = "WanManager"

GIT_TAG = "v2.2.0"
SRC_URI := "git://github.com/rdkcentral/RdkWanManager.git;branch=main;protocol=https;name=WanManager;tag=${GIT_TAG}"
PV = "${GIT_TAG}+git${SRCPV}"

S = "${WORKDIR}/git"

Expand Down
13 changes: 3 additions & 10 deletions recipes-ccsp/ccsp/rdkgponmanager.bb
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,11 @@ DEPENDS = "ccsp-common-library dbus rdk-logger utopia hal-platform json-hal-lib"

require recipes-ccsp/ccsp/ccsp_common.inc

SRC_URI = "git://[email protected]/rdkcentral/RdkGponManager.git;branch=main;protocol=https;name=GponManager"
SRCREV = "v1.0.0"

SRCREV_FORMAT = ""

GIT_TAG = "v1.0.0"
SRC_URI = "git://github.com/rdkcentral/RdkGponManager.git;branch=main;protocol=https;name=GponManager;tag=${GIT_TAG}"
PV = "${GIT_TAG}+git${SRCPV}"
EXTRA_OECONF_append = " --with-ccsp-platform=bcm --with-ccsp-arch=arm "

PV = "${RDK_RELEASE}+git${SRCPV}"

S = "${WORKDIR}/git"
B = "${WORKDIR}/build"

Expand All @@ -36,9 +32,6 @@ CFLAGS_append = " \
CFLAGS_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'rdkb_wan_manager', '-DFEATURE_RDKB_WAN_MANAGER', '', d)}"

do_compile_prepend () {
if ${@bb.utils.contains('DISTRO_FEATURES', 'WanManagerUnificationEnable', 'true', 'false', d)}; then
sed -i '2i <?define WAN_MANAGER_UNIFICATION_ENABLED=True?>' ${S}/config/RdkGponManager.xml
fi
(${PYTHON} ${STAGING_BINDIR_NATIVE}/dm_pack_code_gen.py ${S}/config/RdkGponManager.xml ${S}/source/GponManager/dm_pack_datamodel.c)
}

Expand Down
9 changes: 3 additions & 6 deletions recipes-ccsp/ccsp/rdkxdslmanager.bb
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=175792518e4ac015ab6696d16c4f607e"
DEPENDS = "ccsp-common-library dbus rdk-logger utopia json-hal-lib avro-c hal-platform libparodus libunpriv"
require recipes-ccsp/ccsp/ccsp_common.inc

SRC_URI = "git://[email protected]/rdkcentral/RdkXdslManager.git;branch=main;protocol=https;name=xDSLManager"
SRCREV = "v1.0.0"

SRCREV_FORMAT = "xDSLManager"

PV = "${RDK_RELEASE}+git${SRCPV}"
GIT_TAG = "v1.0.0"
SRC_URI = "git://github.com/rdkcentral/RdkXdslManager.git;branch=main;protocol=https;name=xDSLManager;tag=${GIT_TAG}"
PV = "${GIT_TAG}+git${SRCPV}"

S = "${WORKDIR}/git"

Expand Down

0 comments on commit aab5f1d

Please sign in to comment.