cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
283 Views
Registered: ‎01-09-2020

Adding timemaster utility to linuxptp recipe

Jump to solution

I'm trying to add the linuxptp timemaster utility to the root filesystem image (v2018.3 Petalinux).

The files I have modified are:

petalinux-image-full.bbappend : 

IMAGE_INSTALL_append = " linuxptp"

rootfs_config :

CONFIG_linuxptp=y

petalinuxbsp.conf :

SIGGEN_UNLOCKED_RECIPES += "linuxptp"

/project-spec/meta-user/recipes-connectivity/linuxptp/linuxptp_1.8.bbappend :

do_install_append () {
    install -p ${S}/timemaster ${D}/${sbindir}
}

FILES_${PN} += "/usr/bin/timemaster"

I do see the timemaster binary created at build/tmp/work/aarch64-xilinx-linux/linuxptp/1.8-r0/linuxptp-1.8/timemaster, but when building with the above linuxptp_1.8.bbappend I am getting the following error:

ERROR: linuxptp-1.8-r0 do_package: QA Issue: linuxptp: Files/directories were installed but not shipped in any package:

  /usr/sbin

Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.

linuxptp: 1 installed and not shipped files. [installed-vs-shipped]

 

Any suggestion on how to get the timemaster utility built into the root file-system?

Tags (3)
0 Kudos
Reply
1 Solution

Accepted Solutions
72 Views
Registered: ‎01-09-2020
do_install_append () { 
  ...
  install -d ${D}/${bindir} 
  install -d ${D}/${sysconfdir} 
  install -p ${S}/timemaster ${D}/${bindir} 
}

View solution in original post

0 Kudos
Reply
2 Replies
Visitor
Visitor
156 Views
Registered: ‎05-28-2020

Did you find any solution to this? I am having the same problem.

0 Kudos
Reply
73 Views
Registered: ‎01-09-2020
do_install_append () { 
  ...
  install -d ${D}/${bindir} 
  install -d ${D}/${sysconfdir} 
  install -p ${S}/timemaster ${D}/${bindir} 
}

View solution in original post

0 Kudos
Reply