1.conf/local.conf:修改
PACKAGE_CLASSES = "package_rpm package_ipk"
EXTRA_IMAGE_FEATURES += " package-management "
2.Bitbake image
3.Update package indexes
bitbake package-index
4.建立httpserver
cd <build-directory>/tmp/deploy/rpm
python3 -m http.server 8000
5.Set up target
mkdir -p /etc/yum.repos.d
Add repo with name end with .repo. For example, we add a oe-packages.repo under /etc/yum.repo.d/ directory.
[oe-packages]
name=oe-packages
baseurl=http://<server-machine-ip>:8000
enabled=1
gpgcheck=0
6.
-
Replace
<server-machine-ip>
with your server machine ip, likebaseurl=http://10.94.200.114:8000
in my case.Once you have informed DNF where to find the package databases, you need to fetch them:
# dnf makecache oe-packages