All of lore.kernel.org
 help / color / mirror / Atom feed
* Installing .deb file in Build
@ 2013-06-19  7:10 DAMARLA Satya Swaroop
  2013-06-20  2:06 ` Khem Raj
  2013-06-20 10:09 ` Paul Eggleton
  0 siblings, 2 replies; 8+ messages in thread
From: DAMARLA Satya Swaroop @ 2013-06-19  7:10 UTC (permalink / raw)
  To: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

Hey,

I have a .deb file which has to be installed. It installs properly on the
target image but I want to install it at the build itself by creating a
bitbake recipe.. Is it possible to install .deb files or not? If possible,
please suggest me so that I can make it..

Greets,
Satya

[-- Attachment #2: Type: text/html, Size: 390 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Installing .deb file in Build
  2013-06-19  7:10 Installing .deb file in Build DAMARLA Satya Swaroop
@ 2013-06-20  2:06 ` Khem Raj
  2013-06-20 10:09 ` Paul Eggleton
  1 sibling, 0 replies; 8+ messages in thread
From: Khem Raj @ 2013-06-20  2:06 UTC (permalink / raw)
  To: DAMARLA Satya Swaroop; +Cc: yocto@yoctoproject.org


On Jun 19, 2013, at 12:10 AM, DAMARLA Satya Swaroop <swaroop.damarla@gmail.com> wrote:

> Hey,
> 
> I have a .deb file which has to be installed. It installs properly on the target image but I want to install it at the build itself by creating a bitbake recipe.. Is it possible to install .deb files or not? If possible, please suggest me so that I can make it..
> 


you can extract the contents of  deb by something like below

ar p <debfile> data.tar.gz | tar -xvz 


> Greets,
> Satya
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Installing .deb file in Build
  2013-06-19  7:10 Installing .deb file in Build DAMARLA Satya Swaroop
  2013-06-20  2:06 ` Khem Raj
@ 2013-06-20 10:09 ` Paul Eggleton
  2013-06-25 13:20   ` DAMARLA Satya Swaroop
  1 sibling, 1 reply; 8+ messages in thread
From: Paul Eggleton @ 2013-06-20 10:09 UTC (permalink / raw)
  To: DAMARLA Satya Swaroop; +Cc: yocto

On Wednesday 19 June 2013 09:10:20 DAMARLA Satya Swaroop wrote:
> I have a .deb file which has to be installed. It installs properly on the
> target image but I want to install it at the build itself by creating a
> bitbake recipe.. Is it possible to install .deb files or not? If possible,
> please suggest me so that I can make it..

I think the bin_package class is designed explicitly to help with this. Have a 
look at classes/bin_package.bbclass.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Installing .deb file in Build
  2013-06-20 10:09 ` Paul Eggleton
@ 2013-06-25 13:20   ` DAMARLA Satya Swaroop
  2013-06-25 15:16     ` Paul Eggleton
  0 siblings, 1 reply; 8+ messages in thread
From: DAMARLA Satya Swaroop @ 2013-06-25 13:20 UTC (permalink / raw)
  To: Paul Eggleton, Khem Raj; +Cc: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 6672 bytes --]

Hi Guys,

I am trying to install .deb file and the recipe is as follows... may I ask
you what is the mistake that is not allowing it to build it into the
rootfilesystem....

*UMMARY = "Bootstrapper from Skidata"*
*DESCRIPTION = "For the moment it just installs the .deb file"*
*LICENSE = "CLOSED"*
*
*
*SRC_URI[md5sum] = "7835334732d1704765e52168994b09a6"*
*SRC_URI[sha256sum] =
"11bda24a487da08ef6d3133cc0bf55862e6ae75891c7d08433341f2f3a0dc740"*
*
*
*
*
*SRC_URI =
"file:///home/damarla/openYocto/downloads/skidata-bootstraploader-1.0.0.14.deb"
*
*
*
*inherit bin_package*
*
*
*INITSCRIPT_PACKAGES = "${PN}-bsd"*
*INITSCRIPT_NAME_${PN}-bsp = "bootstraploader"*
*INITSCRIPT_PARAMS_${PN}-bsp = "defaults 90"*
*
*
*PACKAGES =+ "${PN} ${PN}-bsd"*
*
*
*FILES_${PN}-bsd = "${sysconfdir}/init.d/bootstraploader"*
*FILES_${PN} = "${D}/usr/skidata/bootstraploader/*.sh
${D}/usr/skidata/bootstraploader/*.pm"*

and the error I get is

*ERROR: Function failed: do_rootfs (log file is located at
/home/damarla/openYocto/poky/buildSmartCPU/tmp/work/smartcpu-untersberg-linux-gnueabi/rootfs-smartcpu/1.0-r0/temp/log.do_rootfs.30357)
*
*ERROR: Logfile of failure stored in:
/home/damarla/openYocto/poky/buildSmartCPU/tmp/work/smartcpu-untersberg-linux-gnueabi/rootfs-smartcpu/1.0-r0/temp/log.do_rootfs.30357
*
*Log data follows:*
*| DEBUG: Executing shell function do_rootfs*
*| dpkg-scanpackages: info: Wrote 33 entries to output Packages file.*
*| dpkg-scanpackages: info: Wrote 5352 entries to output Packages file.*
*| dpkg-scanpackages: info: Wrote 157 entries to output Packages file.*
*| dpkg-scanpackages: info: Wrote 33 entries to output Packages file.*
*| Ign file: ./ InRelease*
*| Ign file: ./ InRelease*
*| Ign file: ./ InRelease*
*| Ign file: ./ Release.gpg*
*| Ign file: ./ Release.gpg*
*| Ign file: ./ Release.gpg*
*| Get:1 file: ./ Release [16 B]*
*| Get:2 file: ./ Release [29 B]*
*| Get:3 file: ./ Release [11 B]*
*| Ign file: ./ Translation-en*
*| Ign file: ./ Translation-en*
*| Ign file: ./ Translation-en*
*| Reading package lists...*
*| Reading package lists...*
*| Building dependency tree...*
*| Reading state information...*
*| The following extra packages will be installed:*
*|   eglibc-binary-localedata-en-us*
*| The following NEW packages will be installed:*
*|   eglibc-binary-localedata-en-us locale-base-en-us*
*| 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.*
*| Need to get 0 B/327 kB of archives.*
*| After this operation, 0 B of additional disk space will be used.*
*| WARNING: The following packages cannot be authenticated!*
*|   eglibc-binary-localedata-en-us locale-base-en-us*
*| Authentication warning overridden.*
*| dpkg: warning: overriding problem because --force enabled:*
*|  package architecture (armel) does not match system (amd64)*
*| Selecting previously unselected package eglibc-binary-localedata-en-us.*
*| (Reading database ... 0 files and directories currently installed.)*
*| Unpacking eglibc-binary-localedata-en-us (from
.../eglibc-binary-localedata-en-us_2.17-r0_armel.deb) ...*
*| dpkg: warning: overriding problem because --force enabled:*
*|  package architecture (armel) does not match system (amd64)*
*| Selecting previously unselected package locale-base-en-us.*
*| Unpacking locale-base-en-us (from
.../locale-base-en-us_2.17-r0_armel.deb) ...*
*| Reading package lists...*
*| Building dependency tree...*
*| Reading state information...*
*| The following extra packages will be installed:*
*|   eglibc-binary-localedata-en-gb*
*| The following NEW packages will be installed:*
*|   eglibc-binary-localedata-en-gb locale-base-en-gb*
*| 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.*
*| 2 not fully installed or removed.*
*| Need to get 0 B/327 kB of archives.*
*| After this operation, 0 B of additional disk space will be used.*
*| WARNING: The following packages cannot be authenticated!*
*|   eglibc-binary-localedata-en-gb locale-base-en-gb*
*| Authentication warning overridden.*
*| dpkg: warning: overriding problem because --force enabled:*
*|  package architecture (armel) does not match system (amd64)*
*| Selecting previously unselected package eglibc-binary-localedata-en-gb.*
*| (Reading database ... 18 files and directories currently installed.)*
*| Unpacking eglibc-binary-localedata-en-gb (from
.../eglibc-binary-localedata-en-gb_2.17-r0_armel.deb) ...*
*| dpkg: warning: overriding problem because --force enabled:*
*|  package architecture (armel) does not match system (amd64)*
*| Selecting previously unselected package locale-base-en-gb.*
*| Unpacking locale-base-en-gb (from
.../locale-base-en-gb_2.17-r0_armel.deb) ...*
*| Reading package lists...*
*| Building dependency tree...*
*| Reading state information...*
*| Package bootstrapper is not available, but is referred to by another
package.*
*| This may mean that the package is missing, has been obsoleted, or*
*| is only available from another source*
*| *
*| E: Package 'bootstrapper' has no installation candidate*
*| E: Unable to locate package bootstrapper-bsd*
*| ERROR: Function failed: do_rootfs (log file is located at
/home/damarla/openYocto/poky/buildSmartCPU/tmp/work/smartcpu-untersberg-linux-gnueabi/rootfs-smartcpu/1.0-r0/temp/log.do_rootfs.30357)
*
*ERROR: Task 7
(/home/damarla/openYocto/poky/meta-skidata/recipes-smartcpu/images/
rootfs-smartcpu.bb, do_rootfs) failed with exit code '1'*
*NOTE: Tasks Summary: Attempted 5162 tasks of which 5160 didn't need to be
rerun and 1 failed.*
*No currently running tasks (5161 of 5163)*
*
*
*Summary: 1 task failed:*
*  /home/damarla/openYocto/poky/meta-skidata/recipes-smartcpu/images/
rootfs-smartcpu.bb, do_rootfs*
*Summary: There was 1 ERROR message shown, returning a non-zero exit code.*

Where did I make the error. I created two packages here and I put those
packages in my rootfs...
Suggestions please,

Greets,
Satya


On Thu, Jun 20, 2013 at 12:09 PM, Paul Eggleton <
paul.eggleton@linux.intel.com> wrote:

> On Wednesday 19 June 2013 09:10:20 DAMARLA Satya Swaroop wrote:
> > I have a .deb file which has to be installed. It installs properly on the
> > target image but I want to install it at the build itself by creating a
> > bitbake recipe.. Is it possible to install .deb files or not? If
> possible,
> > please suggest me so that I can make it..
>
> I think the bin_package class is designed explicitly to help with this.
> Have a
> look at classes/bin_package.bbclass.
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
>

[-- Attachment #2: Type: text/html, Size: 8984 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Installing .deb file in Build
  2013-06-25 13:20   ` DAMARLA Satya Swaroop
@ 2013-06-25 15:16     ` Paul Eggleton
  2013-06-26  9:16       ` DAMARLA Satya Swaroop
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Eggleton @ 2013-06-25 15:16 UTC (permalink / raw)
  To: DAMARLA Satya Swaroop; +Cc: yocto

On Tuesday 25 June 2013 15:20:19 DAMARLA Satya Swaroop wrote:
> I am trying to install .deb file and the recipe is as follows... may I ask
> you what is the mistake that is not allowing it to build it into the
> rootfilesystem....
> 
> *UMMARY = "Bootstrapper from Skidata"*
> *DESCRIPTION = "For the moment it just installs the .deb file"*
> *LICENSE = "CLOSED"*
> *
> *
> *SRC_URI[md5sum] = "7835334732d1704765e52168994b09a6"*
> *SRC_URI[sha256sum] =
> "11bda24a487da08ef6d3133cc0bf55862e6ae75891c7d08433341f2f3a0dc740"*
> *
> *
> *
> *
> *SRC_URI =
> "file:///home/damarla/openYocto/downloads/skidata-bootstraploader-1.0.0.14.d
> eb" *
> *
> *
> *inherit bin_package*
> *
> *
> *INITSCRIPT_PACKAGES = "${PN}-bsd"*
> *INITSCRIPT_NAME_${PN}-bsp = "bootstraploader"*
> *INITSCRIPT_PARAMS_${PN}-bsp = "defaults 90"*

You have a mismatch here, "bsp" in the last two lines and "bsd" everywhere 
else.

> *PACKAGES =+ "${PN} ${PN}-bsd"*
> *
> *
> *FILES_${PN}-bsd = "${sysconfdir}/init.d/bootstraploader"*
> *FILES_${PN} = "${D}/usr/skidata/bootstraploader/*.sh
> ${D}/usr/skidata/bootstraploader/*.pm"*

You should not include ${D} in FILES values. Because of the invalid path the 
desired files are not being picked up.

The reason you're likely getting an error at do_rootfs is that because of the 
above, the package is empty and therefore is not produced, thus it can't be 
found when it comes to installing it into the image.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Installing .deb file in Build
  2013-06-25 15:16     ` Paul Eggleton
@ 2013-06-26  9:16       ` DAMARLA Satya Swaroop
  2013-06-26 11:16         ` Erik Botö
  0 siblings, 1 reply; 8+ messages in thread
From: DAMARLA Satya Swaroop @ 2013-06-26  9:16 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 3522 bytes --]

Ok I did remove the stuff and I modified as you mentioned... I have two
aims here,

1. To start the bootstraper at the start of the boot, it means it has to be
in every runlevel and I am successfull in that.

2. To install a /opt directory which I am faling at..

I don't have any install errors but please tell me why the /opt directory
no more exists in the rootfs

S*UMMARY = "Bootstrapper from Skidata"*
*DESCRIPTION = "For the moment it just installs the .deb file"*
*LICENSE = "CLOSED"*
*
*
*SRC_URI[md5sum] = "7835334732d1704765e52168994b09a6"*
*SRC_URI[sha256sum] =
"11bda24a487da08ef6d3133cc0bf55862e6ae75891c7d08433341f2f3a0dc740"*
*
*
*
*
*SRC_URI =
"file:///home/damarla/openYocto/downloads/skidata-bootstraploader-1.0.0.14.deb"
*
*
*
*inherit bin_package pkgconfig update-rc.d*
*
*
*INITSCRIPT_PACKAGES = "${PN}"*
*INITSCRIPT_NAME_${PN} = "bootstraploader"*
*INITSCRIPT_PARAMS_${PN} = "defaults 85"*
*
*
*do_install() {*
*
*
* install -d ${D}${sysconfdir}/init.d/*
* install -m 0755 ${WORKDIR}/etc/init.d/bootstraploader
${D}${sysconfdir}/init.d/bootstraploader*
*
*
* install -d ${D}/opt/skidata/bootstraploader/*
* echo -e ${D}*
* for f in ${WORKDIR}/opt/skidata/bootstraploader/*.pm*
* do*
*     install -m 0755 $f ${D}/opt/skidata/bootstraploader/*
* done*
*
*
* for ff in ${WORKDIR}/opt/skidata/bootstraploader/*.sh*
* do*
*     install -m 0755 ${ff} ${D}/opt/skidata/bootstraploader/*
* done*


}
*
*
*FILES_${PN} = "${base_libdir}/udev ${systemd_unitdir}"*
*FILES_${PN} += "${sysconfdir}/init.d/bootstraploader"*
*FILES_${PN} += "${D}/opt/skidata/bootstraploader/*.sh
${D}/opt/skidata/bootstraploader/*.pm"*
*
*
Any reasons why its failing is deeply appreciated

Greets,
Satya


On Tue, Jun 25, 2013 at 5:16 PM, Paul Eggleton <
paul.eggleton@linux.intel.com> wrote:

> On Tuesday 25 June 2013 15:20:19 DAMARLA Satya Swaroop wrote:
> > I am trying to install .deb file and the recipe is as follows... may I
> ask
> > you what is the mistake that is not allowing it to build it into the
> > rootfilesystem....
> >
> > *UMMARY = "Bootstrapper from Skidata"*
> > *DESCRIPTION = "For the moment it just installs the .deb file"*
> > *LICENSE = "CLOSED"*
> > *
> > *
> > *SRC_URI[md5sum] = "7835334732d1704765e52168994b09a6"*
> > *SRC_URI[sha256sum] =
> > "11bda24a487da08ef6d3133cc0bf55862e6ae75891c7d08433341f2f3a0dc740"*
> > *
> > *
> > *
> > *
> > *SRC_URI =
> >
> "file:///home/damarla/openYocto/downloads/skidata-bootstraploader-1.0.0.14.d
> > eb" *
> > *
> > *
> > *inherit bin_package*
> > *
> > *
> > *INITSCRIPT_PACKAGES = "${PN}-bsd"*
> > *INITSCRIPT_NAME_${PN}-bsp = "bootstraploader"*
> > *INITSCRIPT_PARAMS_${PN}-bsp = "defaults 90"*
>
> You have a mismatch here, "bsp" in the last two lines and "bsd" everywhere
> else.
>
> > *PACKAGES =+ "${PN} ${PN}-bsd"*
> > *
> > *
> > *FILES_${PN}-bsd = "${sysconfdir}/init.d/bootstraploader"*
> > *FILES_${PN} = "${D}/usr/skidata/bootstraploader/*.sh
> > ${D}/usr/skidata/bootstraploader/*.pm"*
>
> You should not include ${D} in FILES values. Because of the invalid path
> the
> desired files are not being picked up.
>
> The reason you're likely getting an error at do_rootfs is that because of
> the
> above, the package is empty and therefore is not produced, thus it can't be
> found when it comes to installing it into the image.
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
>

[-- Attachment #2: Type: text/html, Size: 5083 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Installing .deb file in Build
  2013-06-26  9:16       ` DAMARLA Satya Swaroop
@ 2013-06-26 11:16         ` Erik Botö
  2013-06-26 12:52           ` DAMARLA Satya Swaroop
  0 siblings, 1 reply; 8+ messages in thread
From: Erik Botö @ 2013-06-26 11:16 UTC (permalink / raw)
  To: DAMARLA Satya Swaroop; +Cc: Paul Eggleton, yocto@yoctoproject.org

On Wed, Jun 26, 2013 at 11:16 AM, DAMARLA Satya Swaroop
<satyaswaroop.damarla@gmail.com> wrote:
> Ok I did remove the stuff and I modified as you mentioned... I have two aims
> here,
>
> 1. To start the bootstraper at the start of the boot, it means it has to be
> in every runlevel and I am successfull in that.
>
> 2. To install a /opt directory which I am faling at..
>
> I don't have any install errors but please tell me why the /opt directory no
> more exists in the rootfs
>
> SUMMARY = "Bootstrapper from Skidata"
> DESCRIPTION = "For the moment it just installs the .deb file"
> LICENSE = "CLOSED"
>
> SRC_URI[md5sum] = "7835334732d1704765e52168994b09a6"
> SRC_URI[sha256sum] =
> "11bda24a487da08ef6d3133cc0bf55862e6ae75891c7d08433341f2f3a0dc740"
>
>
> SRC_URI =
> "file:///home/damarla/openYocto/downloads/skidata-bootstraploader-1.0.0.14.deb"
>
> inherit bin_package pkgconfig update-rc.d
>
> INITSCRIPT_PACKAGES = "${PN}"
> INITSCRIPT_NAME_${PN} = "bootstraploader"
> INITSCRIPT_PARAMS_${PN} = "defaults 85"
>
> do_install() {
>
>  install -d ${D}${sysconfdir}/init.d/
>  install -m 0755 ${WORKDIR}/etc/init.d/bootstraploader
> ${D}${sysconfdir}/init.d/bootstraploader
>
>  install -d ${D}/opt/skidata/bootstraploader/
>  echo -e ${D}
>  for f in ${WORKDIR}/opt/skidata/bootstraploader/*.pm
>  do
>      install -m 0755 $f ${D}/opt/skidata/bootstraploader/
>  done
>
>  for ff in ${WORKDIR}/opt/skidata/bootstraploader/*.sh
>  do
>      install -m 0755 ${ff} ${D}/opt/skidata/bootstraploader/
>  done
>
>
> }
>
> FILES_${PN} = "${base_libdir}/udev ${systemd_unitdir}"
> FILES_${PN} += "${sysconfdir}/init.d/bootstraploader"
> FILES_${PN} += "${D}/opt/skidata/bootstraploader/*.sh
> ${D}/opt/skidata/bootstraploader/*.pm"
>
> Any reasons why its failing is deeply appreciated

You still have ${D} in FILES_${PN}, so the files in /opt is not
included in the package.

Cheers,
Erik Botö

>
> Greets,
> Satya
>
>
> On Tue, Jun 25, 2013 at 5:16 PM, Paul Eggleton
> <paul.eggleton@linux.intel.com> wrote:
>>
>> On Tuesday 25 June 2013 15:20:19 DAMARLA Satya Swaroop wrote:
>> > I am trying to install .deb file and the recipe is as follows... may I
>> > ask
>> > you what is the mistake that is not allowing it to build it into the
>> > rootfilesystem....
>> >
>> > *UMMARY = "Bootstrapper from Skidata"*
>> > *DESCRIPTION = "For the moment it just installs the .deb file"*
>> > *LICENSE = "CLOSED"*
>> > *
>> > *
>> > *SRC_URI[md5sum] = "7835334732d1704765e52168994b09a6"*
>> > *SRC_URI[sha256sum] =
>> > "11bda24a487da08ef6d3133cc0bf55862e6ae75891c7d08433341f2f3a0dc740"*
>> > *
>> > *
>> > *
>> > *
>> > *SRC_URI =
>> >
>> > "file:///home/damarla/openYocto/downloads/skidata-bootstraploader-1.0.0.14.d
>> > eb" *
>> > *
>> > *
>> > *inherit bin_package*
>> > *
>> > *
>> > *INITSCRIPT_PACKAGES = "${PN}-bsd"*
>> > *INITSCRIPT_NAME_${PN}-bsp = "bootstraploader"*
>> > *INITSCRIPT_PARAMS_${PN}-bsp = "defaults 90"*
>>
>> You have a mismatch here, "bsp" in the last two lines and "bsd" everywhere
>> else.
>>
>> > *PACKAGES =+ "${PN} ${PN}-bsd"*
>> > *
>> > *
>> > *FILES_${PN}-bsd = "${sysconfdir}/init.d/bootstraploader"*
>> > *FILES_${PN} = "${D}/usr/skidata/bootstraploader/*.sh
>> > ${D}/usr/skidata/bootstraploader/*.pm"*
>>
>> You should not include ${D} in FILES values. Because of the invalid path
>> the
>> desired files are not being picked up.
>>
>> The reason you're likely getting an error at do_rootfs is that because of
>> the
>> above, the package is empty and therefore is not produced, thus it can't
>> be
>> found when it comes to installing it into the image.
>>
>> Cheers,
>> Paul
>>
>> --
>>
>> Paul Eggleton
>> Intel Open Source Technology Centre
>
>
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Installing .deb file in Build
  2013-06-26 11:16         ` Erik Botö
@ 2013-06-26 12:52           ` DAMARLA Satya Swaroop
  0 siblings, 0 replies; 8+ messages in thread
From: DAMARLA Satya Swaroop @ 2013-06-26 12:52 UTC (permalink / raw)
  To: Erik Botö; +Cc: Paul Eggleton, yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 4443 bytes --]

Yes, I think something wrong happened to my eyes and now its  working ..

Cheers,
Satya


On Wed, Jun 26, 2013 at 1:16 PM, Erik Botö <erik.boto@pelagicore.com> wrote:

> On Wed, Jun 26, 2013 at 11:16 AM, DAMARLA Satya Swaroop
> <satyaswaroop.damarla@gmail.com> wrote:
> > Ok I did remove the stuff and I modified as you mentioned... I have two
> aims
> > here,
> >
> > 1. To start the bootstraper at the start of the boot, it means it has to
> be
> > in every runlevel and I am successfull in that.
> >
> > 2. To install a /opt directory which I am faling at..
> >
> > I don't have any install errors but please tell me why the /opt
> directory no
> > more exists in the rootfs
> >
> > SUMMARY = "Bootstrapper from Skidata"
> > DESCRIPTION = "For the moment it just installs the .deb file"
> > LICENSE = "CLOSED"
> >
> > SRC_URI[md5sum] = "7835334732d1704765e52168994b09a6"
> > SRC_URI[sha256sum] =
> > "11bda24a487da08ef6d3133cc0bf55862e6ae75891c7d08433341f2f3a0dc740"
> >
> >
> > SRC_URI =
> >
> "file:///home/damarla/openYocto/downloads/skidata-bootstraploader-1.0.0.14.deb"
> >
> > inherit bin_package pkgconfig update-rc.d
> >
> > INITSCRIPT_PACKAGES = "${PN}"
> > INITSCRIPT_NAME_${PN} = "bootstraploader"
> > INITSCRIPT_PARAMS_${PN} = "defaults 85"
> >
> > do_install() {
> >
> >  install -d ${D}${sysconfdir}/init.d/
> >  install -m 0755 ${WORKDIR}/etc/init.d/bootstraploader
> > ${D}${sysconfdir}/init.d/bootstraploader
> >
> >  install -d ${D}/opt/skidata/bootstraploader/
> >  echo -e ${D}
> >  for f in ${WORKDIR}/opt/skidata/bootstraploader/*.pm
> >  do
> >      install -m 0755 $f ${D}/opt/skidata/bootstraploader/
> >  done
> >
> >  for ff in ${WORKDIR}/opt/skidata/bootstraploader/*.sh
> >  do
> >      install -m 0755 ${ff} ${D}/opt/skidata/bootstraploader/
> >  done
> >
> >
> > }
> >
> > FILES_${PN} = "${base_libdir}/udev ${systemd_unitdir}"
> > FILES_${PN} += "${sysconfdir}/init.d/bootstraploader"
> > FILES_${PN} += "${D}/opt/skidata/bootstraploader/*.sh
> > ${D}/opt/skidata/bootstraploader/*.pm"
> >
> > Any reasons why its failing is deeply appreciated
>
> You still have ${D} in FILES_${PN}, so the files in /opt is not
> included in the package.
>
> Cheers,
> Erik Botö
>
> >
> > Greets,
> > Satya
> >
> >
> > On Tue, Jun 25, 2013 at 5:16 PM, Paul Eggleton
> > <paul.eggleton@linux.intel.com> wrote:
> >>
> >> On Tuesday 25 June 2013 15:20:19 DAMARLA Satya Swaroop wrote:
> >> > I am trying to install .deb file and the recipe is as follows... may I
> >> > ask
> >> > you what is the mistake that is not allowing it to build it into the
> >> > rootfilesystem....
> >> >
> >> > *UMMARY = "Bootstrapper from Skidata"*
> >> > *DESCRIPTION = "For the moment it just installs the .deb file"*
> >> > *LICENSE = "CLOSED"*
> >> > *
> >> > *
> >> > *SRC_URI[md5sum] = "7835334732d1704765e52168994b09a6"*
> >> > *SRC_URI[sha256sum] =
> >> > "11bda24a487da08ef6d3133cc0bf55862e6ae75891c7d08433341f2f3a0dc740"*
> >> > *
> >> > *
> >> > *
> >> > *
> >> > *SRC_URI =
> >> >
> >> >
> "file:///home/damarla/openYocto/downloads/skidata-bootstraploader-1.0.0.14.d
> >> > eb" *
> >> > *
> >> > *
> >> > *inherit bin_package*
> >> > *
> >> > *
> >> > *INITSCRIPT_PACKAGES = "${PN}-bsd"*
> >> > *INITSCRIPT_NAME_${PN}-bsp = "bootstraploader"*
> >> > *INITSCRIPT_PARAMS_${PN}-bsp = "defaults 90"*
> >>
> >> You have a mismatch here, "bsp" in the last two lines and "bsd"
> everywhere
> >> else.
> >>
> >> > *PACKAGES =+ "${PN} ${PN}-bsd"*
> >> > *
> >> > *
> >> > *FILES_${PN}-bsd = "${sysconfdir}/init.d/bootstraploader"*
> >> > *FILES_${PN} = "${D}/usr/skidata/bootstraploader/*.sh
> >> > ${D}/usr/skidata/bootstraploader/*.pm"*
> >>
> >> You should not include ${D} in FILES values. Because of the invalid path
> >> the
> >> desired files are not being picked up.
> >>
> >> The reason you're likely getting an error at do_rootfs is that because
> of
> >> the
> >> above, the package is empty and therefore is not produced, thus it can't
> >> be
> >> found when it comes to installing it into the image.
> >>
> >> Cheers,
> >> Paul
> >>
> >> --
> >>
> >> Paul Eggleton
> >> Intel Open Source Technology Centre
> >
> >
> >
> > _______________________________________________
> > yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
> >
>

[-- Attachment #2: Type: text/html, Size: 6353 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-06-26 12:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-19  7:10 Installing .deb file in Build DAMARLA Satya Swaroop
2013-06-20  2:06 ` Khem Raj
2013-06-20 10:09 ` Paul Eggleton
2013-06-25 13:20   ` DAMARLA Satya Swaroop
2013-06-25 15:16     ` Paul Eggleton
2013-06-26  9:16       ` DAMARLA Satya Swaroop
2013-06-26 11:16         ` Erik Botö
2013-06-26 12:52           ` DAMARLA Satya Swaroop

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.