image generation
Hi,
I am generating a image based in the micro-image.
I have added a new package to the image and worked OK.
Now, I have added several files to that package, but they are not in the final image.
I can see the files in the install directory of the package, so I guess they are into the package.
I have cleaned the package and the image, and built again the image. In the process, the package is being built again, but the new files are lost.
The files I have added are into /etc and /etc/init.d/, Dont know if there is a special way to add files there.
Signature · 1 line
- Eismann -
Quoted 7 lines · On Lunes 11 Mayo 2009 17:44:00 G. Eismann escribió:
Hi,
I am generating a image based in the micro-image.
I have added a new package to the image and worked OK.
Now, I have added several files to that package, but they are not in the final image.
Quoted 5 lines
I can see the files in the install directory of the package, so I guess they are into the package.
I have cleaned the package and the image, and built again the image. In the process, the package is being built again, but the new files are lost.
Well, I have found the problem, but I dont know why it's happening nor how to solve it.
When building the image, the release 5 (the last one) of the package is built, but in the "do_package_write_ipk" step there is an error because is looking for the install directory for the release 1.
Signature · 1 line
- Eismann -
Quoted 14 lines · G. Eismann
Quoted 7 lines · On Lunes 11 Mayo 2009 17:44:00 G. Eismann escribió:
Hi,
I am generating a image based in the micro-image.
I have added a new package to the image and worked OK.
Now, I have added several files to that package, but they are not in the final image.Quoted 5 lines
I can see the files in the install directory of the package, so I guess they are into the package.
I have cleaned the package and the image, and built again the image. In the process, the package is being built again, but the new files are lost.
Quoted 6 lines
Well, I have found the problem, but I dont know why it's happening nor how to solve it.
When building the image, the release 5 (the last one) of the package is built, but in the "
do_package_write_ipk" step there is an error because is looking for the install directory for the release 1.
Can you post your recipe, and we'll take a look?
Thanks,
Cliff
Signature · 3 lines
======================= Cliff Brake http://bec-systems.com
Quoted 6 lines · On Lunes 11 Mayo 2009 22:09:47 Cliff Brake escribió:
Quoted 4 lines
When building the image, the release 5 (the last one) of the package is built, but in the "
do_package_write_ipk" step there is an error because is looking for the install directory for the release 1.Can you post your recipe, and we'll take a look?
Finally I have "fixed" it copying the recipe to a new one with a new name; so I am not sure if the problem has something to do with the recipe.
bitbake was looking for release 1 of the recipe, while the release number is 5.
I dont know why it did only for "do_package_write_ipk" step and not for all of them.
Anyway, the recipe:
-----
DESCRIPTION = "foo"
SECTION = "base"
LICENSE = "GPL"
PR = "r5"
RDEPENDS = "haserl dash"
SRC_URI = "file://www/* \
file://init/* \
file://config/* \
"do_install () {
install -d ${D}${localstatedir}/www/
install -d ${D}${sysconfdir}/config/
install -d ${D}${sysconfdir}/init.d/
install -m 0644 ${WORKDIR}/www/*html ${D}${localstatedir}/www/
install -m 0644 ${WORKDIR}/www/*css ${D}${localstatedir}/www/
install -m 0755 ${WORKDIR}/www/*cgi ${D}${localstatedir}/www/
install -m 0644 ${WORKDIR}/config/* ${D}${sysconfdir}/config/
install -m 0755 ${WORKDIR}/init/* ${D}${sysconfdir}/init.d/
for level in S 0 2 3 4 5 6; do
install -d ${D}${sysconfdir}/rc$level.d
done
}PACKAGE_ARCH = "all"
-----
Signature · 1 line
- Eismann -
Quoted 12 lines · G. Eismann
Quoted 6 lines · On Lunes 11 Mayo 2009 22:09:47 Cliff Brake escribió:
Quoted 4 lines
When building the image, the release 5 (the last one) of the package is built, but in the "
do_package_write_ipk" step there is an error because is looking for the install directory for the release 1.Can you post your recipe, and we'll take a look?
Finally I have "fixed" it copying the recipe to a new one with a new name; so I am not sure if the problem has something to do with the recipe.
Quoted 6 lines
bitbake was looking for release 1 of the recipe, while the release number is 5.
I dont know why it did only for "do_package_write_ipk" step and not for all of them.Anyway, the recipe:
Its not obvious to me yet what is causing this issue, but you may get some more clues by running bitbake -DDDD
Signature · 3 lines
======================= Cliff Brake http://bec-systems.com