Here it is:
1. Name and path to your mypackage recipe:
meta-dave/recipes-devtools/testpkg/testpkg_0.1.bb
2. The variables from your mypackage recipe: PN, PROVIDES.
DESCRIPTION = "Sample application for ISAR"
MAINTAINER = "Your name here <you@domain.com>"
DEBIAN_DEPENDS = "apt (>= 0.4.2), passwd"
PN = "testpkg"
SRC_URI = "file://README \
file://postinst \
file://uImage \
file://lynx-modules.tar.gz \
file://imx6ul-lynx-som0013-cb002f.dtb \
"
3. The content of your conf/bblayers.conf file.
# LAYER_CONF_VERSION is increased each time
build/conf/bblayers.conf
# changes incompatibly
LCONF_VERSION = "6"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
BBLAYERS ?= " \
/mnt/elbe/Isar/isar/meta \
/mnt/elbe/Isar/isar/meta-isar \
/mnt/elbe/Isar/isar/meta-dave \
"
BBLAYERS_NON_REMOVABLE ?= " \
/mnt/elbe/Isar/isar/meta \
"
4. The full line IMAGE_INSTALL you've added.
IMAGE_INSTALL += "testpkg"
P.S. Also, am I right, that you are able to run 'bitbake
mypackage' without errors?
bitbake multiconfig:lynx-config:lynx-image
Parsing recipes: 100%
|###########################################################################################################################################|
Time: 0:00:01
Parsing of 17 .bb files complete (0 cached, 17 parsed). 187
targets, 0 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100%
|########################################################################################################################################|
Time: 0:00:00
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 9 tasks of which 0 didn't need to
be rerun and all succeeded.
bitbake multiconfig:lynx-config:testpkg
Loading cache: 100%
|#############################################################################################################################################|
Time: 0:00:00
Loaded 187 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100%
|########################################################################################################################################|
Time: 0:00:00
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 14 tasks of which 3 didn't need to
be rerun and all succeeded.
On 05/04/2018 04:03 PM, Francesco wrote:
I tried to add the package name to the IMAGE_INSTALL variable inside my image recipe. This returned an error: Unable to locate package mypackage. I thought that I was doing something wrong, but I guess that if this is the correct way, the problem is somewhere else.
Possibly I could also take a look on this, if you provide:
1. Name and path to your mypackage recipe, like:
meta-isar/recipes-app/libhello/libhello.bb
2. The variables from your mypackage recipe: PN, PROVIDES.
3. The content of your conf/bblayers.conf file.
4. The full line IMAGE_INSTALL you've added.
P.S. Also, am I right, that you are able to run 'bitbake mypackage' without errors?
Alex
Frank
On 04/05/2018 14:49, Alexander Smirnov wrote:
Hello,
On 05/04/2018 03:40 PM, Francesco wrote:
Hello guys,
I still have a question regarding the management of customised packages.
I managed to create my .deb package using dpkg-raw but I would like also to install it on the rootfs of my image. How can this be done?
Adding the package to IMAGE_INSTALL variable, does not seem to work. Perhaps another recipe is required?
it depends where you've added IMAGE_INSTALL. It should be visible for image recipe, so you have to add it to one of the following places:
1. Into you image recipe. If you use isar-image-base, then update file 'meta-isar/recipes-core/isar-image-base.bb'
2. Edit 'conf/local.conf' file in your build directory and add this line to the end.
Alex