The decommission of the git.freescale.com has caused some problems to BSPs dependent on packages stored in this repository. All contents on git.freescale.com have been moved to one of three locations:
NXP · GitHub (github.com/NXP)
NXP Micro · GitHub (github.com/NXPMicro)
In the case of some older Android BSP this causes an error when fetching the imx-firmware packages originally stored in this repository. A workaround to this is to switch the original location to the new location. To do this we would need to manually create a build directory and initialize repo to locally load the manifest files and then make this change.
Android BSP won’t require this workaround.
Please note that this workaround only addresses this specific error that may show up when running the script included on the BSP release.
We will be using the Oreo o8.0.0_1.0.0_ga BSP release as an example. Sources for this BSP can be found on the following link:
Documentation for this BSP can be found on the following link:
1) Initialize the repo. If you have tried running the imx_android_setup.sh script the android build directory should already have been created. If this is the case, please skip to the next step.
If not, please create it either by running imx_android_setup.sh or manually with the following commands (using the android setup script is preferred):
$ mkdir android_build
Once inside the build directory, initialize the repo and then sync it:
$ repo sync
2) Find and edit the Android Manifest.
Once inside the build directory after synching, enter the repo manifests directory by executing the following command while inside the android build directory
$ cd .repo/manifests
And look for the corresponding Android manifest. In this case imx-o8.0.0_1.0.0_ga.xml
Open this file in any text editor (use sudo if running in a directory which requires it) In this case we’ll exemplify with nano
And change the git://git.freescale.com/proprietary/ to git://github.com/NXP/
Also the path for imx-firmware so the complete line goes from:
<project path="vendor/nxp/imx-firmware" name="imx-firmware" remote="imx-proprietary" revision="87ba304b9efbb2e8dbdd54af4c087584fb259535" />
To the following:
<project path="imx-firmware" name="imx-firmware" remote="imx-proprietary" revision="87ba304b9efbb2e8dbdd54af4c087584fb259535" />
The manifest should look like the following. Save the file with these changes.
Now you can run the imx_android_setup.sh build script successfully. Since the repo was already synced it won’t fetch the manifests again and the change we made will persist, which will allow to find the imx-firmware package on its new location.