In order to contribute code, first-time users are requested to agree to the license at https://wiki.rdkcentral.com/signup.action.
RDK components are hosted at code.rdkcentral.com. You can submit your code changes for review via that site using the workflow outlined below.
Create a JIRA ticket
Clone repository
- Refer to JIRA Guidelines for creating a JIRA before pushing your code changes in code.rdkcentral.com
Clone the Repository
Clone Close the component repository from the Gerrit server https://code.rdkcentral.com/r/ into  into a local workspace
Clone with commit-msg hook (to add Change-ID footer to commit messages)
Code Block |
---|
git clone https://code.rdkcentral.com/r/<component-name> <component-name> -b <branch-name>
cd <component-name>
gitdir=$(git rev-parse --git-dir); curl -o ${gitdir}/hooks/commit-msg httpsmsg https://code.rdkcentral.com/r/tools/hooks/commit-msg msg ; chmod +x ${gitdir}/hooks/commit-msg) |
Click here to find the details about <component-name> & <branch-name> for code submission .
...
Code Block |
---|
$ git config user.name "John Doe"
$ git config user.email "john.doe@example.org"
|
Work on the change, commit to local clone
Each commit constitutes a change in Gerrit and must be approved separately. It is recommended to squash several commits into one that represents a change to the project.
...
It is important to preserve the Change-Id line when editing and there should only be one "pick" entry at the end of this process. The end result is to submit one change to Gerrit.
Push the new changes for Gerrit for review
Commits will be BLOCKED if the format of the commit message does not comply with the standard. You will see a warning as to why the commit was blocked.
Mandatory Information in Commit Message
- Associated JIRA ticket (Following the Guideline to create a JIRA)
- Reason for change information
- Test procedure by which change can be verified
- Possible risks of failure
...
- HEAD is a Git symbolic reference to the most recent commit on the current branch. When you change branches, HEAD is updated to refer to the new branch's latest commit.
- The refspec in the git push operation takes the form source:destination (source is the local ref being pushed, destination is the remote ref being updated).
Review notifications and addition of new reviewers
Component owners/reviewers/approvers, defined as specific groups in Gerrit, will be added to the review by default. You may request additional feedback by specifically adding reviewers via the Gerrit web GUI.Â
Scan and build on code submission
BlackDuck, copyright scanning and build jobs will be triggered automatically from CMF Jenkins. The output of these jobs is integrated into the Gerrit voting process via custom labels and will reflect any 'red flag' in a file that has new code changes, whether introduced in the new change/patch-set or not. Scans will post any findings as comments in the Gerrit review. Build jobs also do that, but in addition will upload the build log to the corresponding JIRA ticket (if there is one) as an attachment.
Code review and scoring process
Reviewers can comment on and score a given change.
The default set of rules for enabling a code change for submission requires:
...
Note |
---|
 Review input is generally referred to as labelling with a positive/negative score. |
Submit code change
Only authorized users, i.e. component owners, component approvers or admins, can submit the change allowing Gerrit to merge it to the target branch as soon as possible. A change can be submitted, having satisfied the approval conditions described earlier, by clicking the 'Submit Patch Set n' button within the Gerrit UI. When a change has been Submitted, it is automatically merged to the target branch by Gerrit.
Abandon change
Depending on the review outcome, it might be decided to abandon the change. The component owner or an authorised user may abandon the change by clicking the "Abandon Change" button. The abandoned changes are not removed from the Gerrit database and can be restored at a later stage.
Submitted, Merge Pending
If a change depends on another change that is still in review, it will enter this state. It will be merged automatically by Gerrit once all its dependencies are submitted and merged.
Change needs to be reworked
If you need to rework a change, you need to push another commit with the same Change-ID as the original in its commit message.
This is the mechanism Gerrit uses to associate or link the two items. The `--amend` option to the Git commit command prevents a new Change-ID being generated by the commit-msg hook.
...
Note |
---|
- The 'change number' referenced above is different to underlying Git commit ID.
- Patch-sets are numbered (starting from 1) for each review, and incremented whenever a change is amended with another Git commit.
- FETCH_HEADÂ is a Git symbolic reference and shorthand for the head of the last branch fetched and is valid only immediately after the fetch operation.
|
Gerrit merge failure as a result of a conflict
Essentially this means that the remote branch has evolved since this change was started and now software conflicts with changes in the remote branch. The developer must resolve the merge conflicts in their local clone and then push another patch-set.
The process is resumed at step 4, with the important distinction of committing with the --amend option, once the developer pulls the latest changes. Note: A summary of the steps involved, assuming the local branch still exists:Â
...
Code Block |
---|
$ git fetch https://user@code.rdkcentral.com/r/rdk_component_1 refs/changes/58/58/2 && git checkout FETCH_HEAD
$ git rebase origin/<branch>
[Edit the conflicting file, cleaning up the <<<<, ==== >>> markers surrounding the conflicting lines]
$ git add <file>
$ git commit --amend
$ git push origin HEAD:refs/for/<branch> |
RDK Components - Product Branch
Following RDK components are hosted at code.rdkcentral.com. Follow the Instructions to submit your code changes.
Example of how to use git clone for closedcaption meta-rdk-ext component : git clone https://code.rdkcentral.com/r/rdk/components/generic/closedcaption/rdk-oe/meta-rdk-ext -b rdk-next next
Component | Product Branch | License |
---|
components/ |
asp/rdk-oe/meta-cmf-bsp-emulatorGenericasp/rdk-oe/meta-rdk-aspopensource/rbuscore | rdk-next |
ASPasp/rdk-oe/meta-rdk-bsp-emulatorrdk-next | Generic | components/generic/camgr | master | Generic |
components/generic/closedcaptionopensource/v4l2test | master | Apache |
components/opensource/wayland-egl-icegdl | master | Apache |
components/opensource/waymetric | master | Apache |
components/opensource/westeros | master | Apache |
manifests | rdk-next |
Genericmanifests |
rdk/components/generic/ |
dvb/graphicsEnginerdk-next | Generic | aamp | stable2 | Apache |
rdk/components/generic/ |
dvb/subtitlesrdk-next | Generic | aampabr | stable2 | Apache |
rdk/components/generic/ |
dvb/teletextGenericApache |
rdk/components/generic/ |
dvb/ttx_subtitle_utilsGenericApache |
rdk/components/generic/ |
dvrGenericApache |
rdk/components/generic/ |
fogGenericApache |
rdk/components/generic/ |
gst-plugins-rdkGenericApache |
rdk/components/generic/ |
gstreamercxxGenericcmf |
rdk/components/generic/ |
mediaframeworkGenericApache |
rdk/components/generic/ |
mfrlibsGenericApache |
rdk/components/generic/dcm | rdk- |
oenext | Apache |
rdk/components/generic/devicesettings |
-hal-sampleGenericApache |
rdk/components/generic/ |
rdk-oe/iarmmgrs-hal-sampleGenericApache |
rdk/components/generic/ |
rdk-oe/meta-cmf-broadbandGenericApache |
rdk/components/generic/ |
rdk-oemetacmf-cameraGenericcomponents/generic/-oemeta-cmf-freescalemaster | Generic | rdk-oe/meta-cmf-meshGenericApache |
rdk/components/generic/ |
rdkoe/meta-cmf-raspberrypiGenericLGPL |
rdk/components/generic/ |
rdkoe/metacmfvideordk-nextGenericLGPL |
rdk/components/generic/hdmicec | rdk- |
oe/meta-cmf-video-restrictedmaster | Generic | next | Apache |
rdk/components/generic/ |
rdk-oe/meta-rdkGenericApache |
rdk/components/generic/ |
rdk-oe/meta-rdk-broadbandGenericApache |
rdk/components/generic/ |
rdk-oe/meta-rdk-cameraGenericApache |
rdk/components/generic/ |
rdk-oe/meta-rdk-containersGenericApache |
rdk/components/generic/ledmgr | rdk- |
oe/meta-rdk-videonext | Apache |
rdk/components/generic/libSyscallWrapper | rdk-next |
GenericApache |
rdk/components/generic/ |
recorderGenericApache |
rdk/components/generic/ |
sessionmgrlxc-container-generator | master |
GenericApache |
rdk/components/generic/ |
subtec-appmaster | Generic | media_utils | rdk-next | Apache |
rdk/components/generic/ |
tr69GenericApache |
rdk/components/generic/ |
websocketipplayer2masterGeneric | websocket-ipplayer2-utilsmaster | Generic | components/opensource/patches/qtbase-5.1.1rdkapps | rdk-next | Apache |
rdk/components/generic/rdkat | rdk-next |
Genericopensource/patches/qtwebkit-5.1.1generic/rdkbrowser | rdk-next |
Genericopensource/patches/qtwebsockets-0.9.0generic/rdkbrowser2 | rdk-next |
Genericopensourcerbusrdkmediaplayer | rdk-next | Apache |
rdk/components/ |
opensourcerbuscorerdm | rdk-next | Apache |
rdk/components/ |
opensourcev4l2testmasterrdk-next | Apache |
rdk/components/generic/ |
opensource/wayland-egl-icegdlmaster | Apache | rmf_tools/generate_si_cache | rdk-next | Apache |
rdk/components/generic/rmf_tools/tenableHDCP | rdk-next | Apache |
rdk/components/generic/rne | rdk-next | Apache |
rdk/components/generic/sys_mon_tools/analyzers/scripts/host |
components/opensource/waymetric | master | Apache |
components/opensource/westeros | master | Apache |
components/restricted/rdk-oe/meta-rdk-restrictedGeneric | devices/imx8mq/gst-plugins-rdk/playersinkbin | master | Generic |
devices/intel-x86-pc/rdkemulator/gst-plugins-rdk/playersinkbin | rdk-next | Generic |
devices/intel-x86-pc/rdkemulator/gst-plugins-rdk/qamtunersrc | rdk-next | Generic |
devices/intel-x86-pc/rdkemulator/tdk | rdk-next | Generic |
devices/intel-x86-pc/rdkemulator/tdk-advanced | rdk-next | ASP |
devices/intel-x86-pc/rdkri/mediaframework | rdk-next | Generic |
devices/raspberrypi/gst-plugins-rdk/playersinkbin | rdk-next | Generic |
devices/raspberrypi/tdk | rdk-next | Generic |
devices/raspberrypi/tdk-advanced | rdk-next | ASP |
devices/raspberrypi/tdkb | rdk-next | Generic |
manifests | rdk-next | manifests |
rdk/components/generic/aamp | stable2 | Apache |
rdk/components/generic/aampabr | stable2 | Apache |
rdk/components/generic/appmanager | rdk-next | Apache |
rdk/components/generic/audiocapturemgr | rdk-next | Apache |
rdk/components/generic/bluetooth | rdk-next | Apache |
rdk/components/generic/bluetooth_mgr | rdk-next | Apache |
rdk/components/generic/breakpad_wrapperApache |
rdk/components/generic/sys_mon_tools/analyzers/scripts/target | rdk-next | Apache |
rdk/components/generic/sys_mon_tools/iarm_event_sender | rdk-next | Apache |
rdk/components/generic/sys_mon_tools/iarm_query_powerstate | rdk-next | Apache |
rdk/components/generic/sys_mon_tools/iarm_set_powerstate | rdk-next | Apache |
rdk/components/generic/sys_mon_tools/key_simulator | rdk-next | Apache |
rdk/components/generic/sys_mon_tools/mfr_data | rdk-next | Apache |
rdk/components/generic/sys_mon_tools/mfr_utils | rdk-next | Apache |
rdk/components/generic/sys_mon_tools/rdklogctrl | rdk-next | Apache |
rdk/components/generic/sys_mon_tools/si_cache_parser | rdk-next | Apache |
rdk/components/generic/sys_mon_tools/sys_resource | rdk-next | Apache |
rdk/components/generic/sys_mon_tools/sys_utils | rdk-next | Apache |
rdk/components/generic/sys_mon_tools/udhcpc-opt43 | rdk-next | Apache |
rdk/components/generic/syslog_helper | rdk-next | Apache |
rdk/components/generic/tr69hostif | rdk-next | Apache |
rdk/components/generic/trm | rdk-next | Apache |
rdk/components/generic/ttsengine | rdk-next | Apache |
rdk/components/generic/wifi | rdk-next | Apache |
rdk/components/generic/xupnp | rdk-next | Apache |
rdk/components/opensource/oe/bitbake | rdk/morty | oe-mirrors |
rdk/components/opensource/oe/meta-openembedded | rdk/morty | oe-mirrors |
rdk/components/opensource/oe/meta-qt5 | rdk/morty | oe-mirrors |
rdk/components/opensource/oe/meta-raspberrypi | rdk/morty | oe-mirrors |
rdk/components/opensource/oe/meta-virtualization | rdk/morty | oe-mirrors |
rdk/devices/intel-x86-pc/emulator/devicesettings | rdk-next | Apache |
rdk/devices/intel-x86-pc/emulator/rdkbrowser | rdk-next | Apache |
rdk/ |
components/generic/cobalt-wpemaster | cmf | rdk/components/generic/cpuprocanalyzerdevices/intel-x86-pc/rdkemulator/gst-plugins-rdk/playersinkbin | rdk-next |
Apache/components/generic/dca/devices/intel-x86-pc/rdkemulator/gst-plugins-rdk/qamtunersrc | rdk-next |
Apachecomponentsgenericdcmdevicesettings | rdk-next | Apache |
rdk/ |
components/generic/devicesettingsdevices/raspberrypi/gst-plugins-rdk/playersinkbin | rdk-next |
Apachecomponentsgenericdiagnosticsiarmmgrs | rdk-next | Apache |
rdk/ |
componentsgenericdtcpcomponents/generic/dvb/dtv-testapprdkdvb/siparserCcspLogAgent | rdk-next | Apache |
rdkgst-plugins-rdkLGPLrdkgst-plugins-aampstable2rdkLGPL | hdmicecrdkhwselfteststartParodus | rdk-next | Apache |
rdkgenericiarmbusCcspCMAgent | rdk-next | Apache |
rdkrdkb/components/opensource/ |
genericiarmmgrsCcspCommonLibrary | rdk-next | Apache |
rdkgenericinjectedbundlerdkgenericledmgrrdkrdkb/components/opensource/ |
genericlibSyscallWrapperCcspEPONAgent | rdk-next | Apache |
rdkrdkb/components/opensource/ |
genericlibusbctrlCcspEthAgent | rdk-next | Apache |
rdkgeneric/lxc-container-generatormaster | Apache | rdk/components/generic/media_utilsopensource/ccsp/CcspHomeSecurity | rdk-next | Apache |
rdkgenericnetmonitorrdkgenericnetsrvmgrrdkgenericrdkappsCcspMtaAgent | rdk-next | Apache |
rdkgenericrdkatrdkrdkb/components/opensource/ |
genericrdkbrowserCcspTr069Pa | rdk-next | Apache |
rdkrdkb/components/opensource/ |
genericrdkbrowser2CcspWifiAgent | rdk-next | Apache |
rdkgenericrdkmediaplayerrdkgenericrdmFirmwareSanity | rdk-next | Apache |
rdkgenericrfcrdkgeneric/rmf_mediastreameropensource/ccsp/GwProvApp-ePON | rdk-next |
Genericrdkgenericrmf_tools/generate_si_cacheccsp/GwProvApp-EthWan | rdk-next | Apache |
rdkgenericrmf_toolstenableHDCPrdkgenericrnehalinterface | rdk-next | Apache |
rdkgenericservicemanagerGenericrdkgenericstoragemanagerGenericrdkgeneric/sys_mon_tools/analyzers/scripts/hostopensource/ccsp/PowerManager | rdk-next | Apache |
rdkgeneric/sys_mon_tools/analyzers/scripts/targetopensource/ccsp/sysint | rdk-next | Apache |
rdkgeneric/sys_mon_tools/iarm_event_senderopensource/ccsp/TestAndDiagnostic | rdk-next | Apache |
rdkgeneric/sys_mon_tools/iarm_query_powerstateopensource/ccsp/Utopia | rdk-next | Apache |
rdkgeneric/sys_mon_tools/iarm_set_powerstateopensource/ccsp/webui | rdk-next | Apache |
rdkgeneric/sys_mon_tools/key_simulatoropensource/ccsp/webui-bwg | rdk-next | Apache |
rdkgeneric/sys_mon_tools/mfr_dataopensource/ccsp/Xconf | rdk-next | Apache |
rdkcomponents/generic/sys_mon_tools/mfr_utilsdevices/intel-x86-pc/emulator/sysint | rdk-next | Apache |
rdkcomponents/generic/sys_mon_tools/rdklogctrldevices/intel-x86-pc/emulator/tdkb | rdk-next | Apache |
rdkcomponents/generic/sys_mon_tools/si_cache_parserdevices/raspberrypi/hal | rdk-next | Apache |
rdkcomponentsgeneric/sys_mon_tools/sys_resourceraspberrypi/sysint | rdk-next | Apache |
rdkcomponentsgeneric/sys_mon_tools/sys_utilsraspberrypi/tdkb | rdk-next | Apache |
rdkcomponentsgeneric/sys_mon_tools/udhcpc-opt43rdkbemu/ccsp/rdkb | rdk-next | Apache |
rdkcomponentsgenericsysintGenericrdkcomponents/generic/syslog_helperrdkgenerictr69hostifrdkgenerictrmrdkgenericttsenginehttpClients | rdk-next | Apache |
rdkgenericwifirdkgenericxupnprdkrdkc/components/opensource/ |
oe/bitbake/mortyoe-mirrors | -next | Apache |
rdkc/devices/raspberrypi/mediastreamer | rdk-next | Apache |
rdkc/tools/tdkc | rdk-next | Apache |
rdk/components/opensource/oe/meta-openembedded | rdk/morty | oe-mirrors |
rdk/components/opensource/oe/meta-qt5 | rdk/morty | oe-mirrorsopensourceraspberrypi/mortyoe-mirrorsopensourcevirtualization/mortyoe-mirrorsdevices/intel-x86-pc/emulator/devicesettingsrdk-next | Apache | rdk/devices/intel-x86-pc/emulator/rdkbrowsercomponents/generic/rdk-oe/meta-rdk-broadband | rdk-next | Apache |
rdk/components/ |
devicesintelx86-pc/emulator/rmf_mediastreamerGenericdevices/intel-x86-pc/emulator/servicemanagercomponents/generic/rdk-oe/meta-rdk-ext | rdk-next |
Generic/devices/intel-x86-pc/emulator/sysint/components/generic/rdk-oe/meta-cmf-raspberrypi | rdk-next |
Genericdevicesintel-x86-pc/rdkemulator/gst-plugins-rdk/playersinkbinrdk-oe/meta-cmf-mesh | rdk-next |
LGPLdevicesintelx86-pc/rdkemulator/gst-plugins-rdk/qamtunersrcoe/meta-rdk-video | rdk-next |
LGPLrdkdevicesraspberrypidevicesettingsRdkCellularManager | rdk-next | Apache |
rdk/devices/raspberrypi/gst-plugins-rdk/playersinkbin
Show If |
---|
|
Component | Product Branch | License |
---|
components/asp/rdk-oe/meta-cmf-bsp-emulator | rdk-next |
|
...
...
...
...
rdk-oe/meta-rdk-asp | rdk-next |
|
...
...
...
...
rdk-oe/meta-rdk-bsp-emulator | rdk-next |
|
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
generic/js-plugins | master | Generic |
|
...
gdbus-client | master | Generic | components/generic/camgr | master | Generic | components/generic/dvb/ttx_subtitle_utils |
|
...
...
...
...
...
...
...
...
...
...
...
...
generic/gst-plugins-rdk | rdk-next |
|
...
...
components/generic/gstreamer-cxx | master | Generic | components/ |
|
...
generic/subtec-app | master | Generic | components/generic/mediaframework |
|
...
...
...
...
...
...
...
...
...
rdk-oe/devicesettings-hal-sample | rdk-next |
|
...
...
...
...
rdk-oe/iarmmgrs-hal-sample | rdk-next |
|
...
...
...
...
rdk-oe/meta-cmf-camera | rdk-next |
|
...
...
...
...
rdk-oe/meta-cmf-freescale | master | Generic | components/generic/rdk-oe/meta-cmf-video |
|
...
...
...
...
...
rdk-oe/meta-cmf-video-restricted | master | Generic | components/generic/rdk-oe/meta-rdk-camera |
|
...
...
...
...
...
rdk-oe/meta-rdk-containers | rdk-next |
|
...
...
...
...
...
...
...
...
sessionmgr | master | Generic | components/generic/subtec-app | master | Generic | components/generic/tr69 |
|
...
...
...
...
generic/websocket-ipplayer2 | master | Generic | components/generic/websocket-ipplayer2-utils | master | Generic |
|
...
patches/qtbase-5.1.1 | rdk-next |
|
...
...
...
patches/qtwebkit-5.1.1 | rdk-next |
|
...
...
...
patches/qtwebsockets-0.9.0 | rdk-next |
|
...
...
...
...
rdk-oe/meta-rdk-restricted | rdk-next |
|
...
...
...
imx8mq/gst-plugins-rdk/playersinkbin | master | Generic |
|
...
rdkemulator/gst-plugins-rdk/playersinkbin | rdk-next |
|
...
...
...
rdkemulator/gst-plugins-rdk/qamtunersrc | rdk-next |
|
...
...
devices/intel-x86-pc/rdkemulator/tdk | rdk-next |
|
...
...
devices/intel-x86-pc/rdkemulator/tdk-advanced | rdk-next |
|
...
...
devices/intel-x86-pc/rdkri/mediaframework | rdk-next |
|
...
...
...
raspberrypi/gst-plugins-rdk/playersinkbin | rdk-next |
|
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
rmf_mediastreamer | rdk-next |
|
...
...
...
...
...
...
...
...
...
...
...
...
...
...
rdk/devices/intel-x86-pc/emulator/rmf_mediastreamer | rdk-next |
|
...
...
...
/intel-x86-pc/emulator/servicemanager | rdk-next |
|
...
Generic | rdk/devices/intel-x86-pc/emulator/sysint | rdk-next |
|
...
Generic | reference/manifests | master | Generic | tools/tdk | rdk-next | Generic | tools/tdkb | rdk-next | Generic |
|