0
votes

I would like to setup my slp650 printer on my tx6s-8035 KARO Board using yocto. I add the cups package on my local.conf and i create a recipe for the slp650 driver that i add as a package too in my local.conf file. The build work well and when i verify cups service afater starting kernel on my board, i realize that there is no cups service on my system. In the cups recipe, in do_install task, it precise that if there is no sysvint on the distro, it will remove service but in my distro, i use sysvinit. Anyone could help me to activate cups service on my embedded linux system? I use Ka-ro NXP/Freescale Yocto Project Community BSP recipe layers for yocto distro krogoth.

1

1 Answers

1
votes

You need to add something like this to cups bbappend file

inherit update-rc.d

INITSCRIPT_NAME = "cups"
INITSCRIPT_PARAMS = "defaults"

SRC_URI += "file://cups.initd"

do_install_append () {
   install -d -m 0755 ${D}${sysconfdir}/init.d
   install -m 0755 ${WORKDIR}/cups.initd ${D}${sysconfdir}/init.d/cups
}

with cups.initd the shell script to launch cups