Part Number: AM625
Dear Expert
Sorry, I am not very familiar w/ Yocto build, so I post customer's question directlly.
I got build errors. Please see the description shown below:
- I could build successfully with enabling network according to the guidance from TI official website. (This case would download from repositories on various websites)
- I ran into a build fail with offline Yocto build. Here is what I did for an offline Yocto build.
B.1 I created a local repository in our Gitlab server.
B.2 To push the following directories to our Gitlab, which had been obtained in the successful one mentioned above A:
“sources”, “downloads”, “sstate-cache”
B.3 To verify if offline Yocto build was successful, I turned off the network, including Wi-Fi and Wired connection.
The result ended up with build errors.
Here are the build errors I encountered:
The following is the build command I have been using:
$ MACINE=am62xx-evm bitbake -k tisdk-default-image
In addition, I googled the solution for the build errors, finding the discussion shown below.
However, it didn’t give a total solution.
I pasted the setting for build/conf/local.conf, for your information.
Thanks.
# MPDFW adds +++++
BB_NUMBER_THREADS = '8'
PARALLEL_MAKE = '-j4'
# Use git sources and tarballs in the directory "downloads".
# Where, the variable ${TOPDIR} points to tisdk/build/
DL_DIR = "/home/mpdfw/mpdFWDev/local_downloads/downloads"
# Speed up the build performance
SSTATE_DIR = "/home/mpdfw/mpdFWDev/local_sstate_cache/sstate-cache"
# Enable debug message
BB_LOG_LEVEL = "1"
# Make Yocto prohibit any internet downloads.
BB_NO_NETWORK = "1"
# Yocto only allows data to be fetched from the DL_DIR and will not fallback to internet access.
INHERIT += "own-mirrors"
SOURCE_MIRROR_URL ?= "file://${DL_DIR}"
BB_FETCH_PREMIRRORONLY = "1"
# MPDFW adds -----