<div dir="ltr">Probably, I'm learning ;-)</div><br><div class="gmail_quote"><div dir="ltr">On Wed, 7 Nov 2018 at 12:59, Outback Dingo <<a href="mailto:outbackdingo@gmail.com">outbackdingo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">couldnt this have been a <a href="http://udev_append.bb" rel="noreferrer" target="_blank">udev_append.bb</a><br>
<br>
instead of writing your own my-rules<br>
On Wed, Nov 7, 2018 at 6:46 PM Markus W <<a href="mailto:markus4dev@gmail.com" target="_blank">markus4dev@gmail.com</a>> wrote:<br>
><br>
> This my bb file and than I have added the following to local.conf IMAGE_INSTALL_append = " my-rules ...".<br>
><br>
> SUMMARY = "My rules"<br>
> LICENSE = "CLOSED"<br>
> PR = "r1"<br>
><br>
> SRC_URI = "file://90-interfaces.rules"<br>
><br>
> do_install[nostamp] = "1"<br>
> do_unpack[nostamp] = "1"<br>
><br>
> do_install () {<br>
>  Â  Â install -d ${D}${sysconfdir}/udev/rules.d<br>
>  Â  Â install -m 0666 ${WORKDIR}/90-interfaces.rules ${D}/etc/udev/rules.d/90-interfaces.rules<br>
><br>
> }<br>
><br>
> FILES_${PN} += " /etc/udev/rules.d/90-interfaces.rules"<br>
><br>
> PACKAGES = "${PN}"<br>
> PROVIDES = "my-rules"<br>
><br>
> Hope this helps<br>
><br>
> /Markus<br>
><br>
> On Wed, 7 Nov 2018 at 12:41, Outback Dingo <<a href="mailto:outbackdingo@gmail.com" target="_blank">outbackdingo@gmail.com</a>> wrote:<br>
>><br>
>> so curious, as im trying to add 2 udev rules also that i require in my<br>
>> build, so how was your recipe configured?<br>
>><br>
>> mine keeps telling me i have a conflict between packages as they both<br>
>> install files to the same name and same place<br>
>> On Wed, Nov 7, 2018 at 4:53 PM Outback Dingo <<a href="mailto:outbackdingo@gmail.com" target="_blank">outbackdingo@gmail.com</a>> wrote:<br>
>> ><br>
>> ><br>
>> ><br>
>> > On Wed, Nov 7, 2018, 16:44 Markus W <<a href="mailto:markus4dev@gmail.com" target="_blank">markus4dev@gmail.com</a> wrote:<br>
>> >><br>
>> >> I have resolved this issue. My problem was that in my layer I have a<br>
>> >> recipe-core and within that I had the following structure<br>
>> >> udev/udev-extra-rules and <a href="http://udev-extra-rules.bb" rel="noreferrer" target="_blank">udev-extra-rules.bb</a> file and a files dir on<br>
>> >> the same level.<br>
>> >><br>
>> >> By renaming udev/udev-extra-rules to my-udev/my-udev-extra-rules it<br>
>> >> suddenly worked.<br>
>> >><br>
>> >> Cool<br>
>> >><br>
>> >><br>
>> >> Regards,<br>
>> >> Markus<br>
>> >><br>
>> >> On Tue, 6 Nov 2018 at 14:06, Outback Dingo <<a href="mailto:outbackdingo@gmail.com" target="_blank">outbackdingo@gmail.com</a>> wrote:<br>
>> >> ><br>
>> >> > On Tue, Nov 6, 2018 at 11:57 AM Markus W <<a href="mailto:markus4dev@gmail.com" target="_blank">markus4dev@gmail.com</a>> wrote:<br>
>> >> > ><br>
>> >> > > Hi!<br>
>> >> > ><br>
>> >> > > I want to append the rules in the<br>
>> >> > > recipe-core/udev/udev-rules-rpi/99-com.rules with the rules below from<br>
>> >> > > within my own recipe. I can´t figure out how to do that.<br>
>> >> > ><br>
>> >> > > I have tried to add those rules as separate rules file in a recipe in<br>
>> >> > > my own layer. After the build I can see that the rules file is in the<br>
>> >> > > correct directory /etc/udev/rules.d (next to 99-com.rules) but the<br>
>> >> > > rules didn't get applied. The groups below I have created by<br>
>> >> > > inheriting the useradd class (GROUPADD_PARAM_${PN} = "-r spi; -r i2c;<br>
>> >> > > -r gpio") in a different layer with a higher priority than the layer<br>
>> >> > > with the rules recipe.<br>
>> >> > ><br>
>> >> > > Not sure why this is not working. Any suggestions?<br>
>> >> > ><br>
>> >> > > 90-interfaces.rules file:<br>
>> >> > ><br>
>> >> > > SUBSYSTEM=="input", GROUP="input", MODE="0660"<br>
>> >> > > SUBSYSTEM=="i2c-dev", GROUP="i2c", MODE="0660"<br>
>> >> > > SUBSYSTEM=="spidev", GROUP="spi", MODE="0660"<br>
>> >> > > SUBSYSTEM=="bcm2835-gpiomem", GROUP="gpio", MODE="0660"<br>
>> >> > ><br>
>> >> > > SUBSYSTEM=="gpio", GROUP="gpio", MODE="0660"<br>
>> >> > > SUBSYSTEM=="gpio*", PROGRAM="/bin/sh -c '\<br>
>> >> > > chown -R root:gpio /sys/class/gpio && chmod -R 770 /sys/class/gpio;\<br>
>> >> > > chown -R root:gpio /sys/devices/virtual/gpio && chmod -R 770<br>
>> >> > > /sys/devices/virtual/gpio;\<br>
>> >> > > chown -R root:gpio /sys$devpath && chmod -R 770 /sys$devpath\<br>
>> >> > > '"<br>
>> >> > ><br>
>> >> ><br>
>> >> > might help to post the recipe used.....<br>
>> >> ><br>
>> >> ><br>
>> >> > > Regards,<br>
>> >> > > Markus<br>
>> >> > > --<br>
>> >> > > _______________________________________________<br>
>> >> > > yocto mailing list<br>
>> >> > > <a href="mailto:yocto@yoctoproject.org" target="_blank">yocto@yoctoproject.org</a><br>
>> >> > > <a href="https://lists.yoctoproject.org/listinfo/yocto" rel="noreferrer" target="_blank">https://lists.yoctoproject.org/listinfo/yocto</a><br>
</blockquote></div>