Re: [oe] [meta-oe][PATCH] linuxconsole: Add recipe for version 1.7.0
On 12/8/20 10:26 AM, Fabio Berton wrote: Add linuxconsole and inputattach-config recipes. The inputattach-config recipe is intend to use as machine configuration file for inputattach. Signed-off-by: Fabio Berton --- .../inputattach-config/inputattach-config.bb | 12 +++ .../inputattach-config/inputattach.conf | 8 ++ .../51-these-are-not-joysticks-rm.rules | 83 +++ .../linuxconsole/60-joystick.rules| 7 ++ .../linuxconsole/inputattach.service | 11 +++ .../linuxconsole/linuxconsole/inputattachctl | 16 .../linuxconsole/linuxconsole_1.7.0.bb| 83 +++ 7 files changed, 220 insertions(+) create mode 100644 meta-oe/recipes-extended/inputattach-config/inputattach-config.bb create mode 100644 meta-oe/recipes-extended/inputattach-config/inputattach-config/inputattach.conf create mode 100644 meta-oe/recipes-extended/linuxconsole/linuxconsole/51-these-are-not-joysticks-rm.rules create mode 100644 meta-oe/recipes-extended/linuxconsole/linuxconsole/60-joystick.rules create mode 100644 meta-oe/recipes-extended/linuxconsole/linuxconsole/inputattach.service create mode 100644 meta-oe/recipes-extended/linuxconsole/linuxconsole/inputattachctl create mode 100644 meta-oe/recipes-extended/linuxconsole/linuxconsole_1.7.0.bb also add it to test packagegroup in meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb diff --git a/meta-oe/recipes-extended/inputattach-config/inputattach-config.bb b/meta-oe/recipes-extended/inputattach-config/inputattach-config.bb new file mode 100644 index 0..68beec670 --- /dev/null +++ b/meta-oe/recipes-extended/inputattach-config/inputattach-config.bb @@ -0,0 +1,12 @@ +SUMMARY = "inputattach configuration file" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" + +SRC_URI = "file://inputattach.conf" + +do_configure[noexec] = "1" +do_compile[noexec] = "1" + +do_install() { +install -Dm 0644 ${WORKDIR}/inputattach.conf ${D}${sysconfdir}/inputattach.conf +} diff --git a/meta-oe/recipes-extended/inputattach-config/inputattach-config/inputattach.conf b/meta-oe/recipes-extended/inputattach-config/inputattach-config/inputattach.conf new file mode 100644 index 0..86c421012 --- /dev/null +++ b/meta-oe/recipes-extended/inputattach-config/inputattach-config/inputattach.conf @@ -0,0 +1,8 @@ +# +# Configuration for inputattach +# +# Every line of this file are inputattach arguments, see 'inputattach --help'. +# An inputattach instance will be started for each element. +# +# --microsoft /dev/ttyS0 +# --baud 9600 --w8001 /dev/ttyS1 diff --git a/meta-oe/recipes-extended/linuxconsole/linuxconsole/51-these-are-not-joysticks-rm.rules b/meta-oe/recipes-extended/linuxconsole/linuxconsole/51-these-are-not-joysticks-rm.rules new file mode 100644 index 0..3e0ab4018 --- /dev/null +++ b/meta-oe/recipes-extended/linuxconsole/linuxconsole/51-these-are-not-joysticks-rm.rules @@ -0,0 +1,83 @@ +# /etc/udev/rules.d/51-these-are-not-joysticks-rm.rules +# +# This file is auto-generated. For more information: +# https://github.com/denilsonsa/udev-joystick-blacklist + +SUBSYSTEM=="input", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c30a", ENV{ID_INPUT_JOYSTICK}=="?*", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c30a", KERNEL=="js[0-9]*", RUN+="/bin/rm %E{DEVNAME}", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="04d9", ATTRS{idProduct}=="a0df", ENV{ID_INPUT_JOYSTICK}=="?*", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="04d9", ATTRS{idProduct}=="a0df", KERNEL=="js[0-9]*", RUN+="/bin/rm %E{DEVNAME}", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0010", ENV{ID_INPUT_JOYSTICK}=="?*", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0010", KERNEL=="js[0-9]*", RUN+="/bin/rm %E{DEVNAME}", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0011", ENV{ID_INPUT_JOYSTICK}=="?*", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0011", KERNEL=="js[0-9]*", RUN+="/bin/rm %E{DEVNAME}", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0012", ENV{ID_INPUT_JOYSTICK}=="?*", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0012", KERNEL=="js[0-9]*", RUN+="/bin/rm %E{DEVNAME}", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0013", ENV{ID_INPUT_JOYSTICK}=="?*", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0013", KERNEL=="js[0-9]*", RUN+="/bin/rm %E{DEVNAME}", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0014", ENV{ID_INPUT_JOYSTICK}=="?*", ENV{ID_INPU
Re: [oe] [meta-oe][PATCH] linuxconsole: Add recipe for version 1.7.0
and there is also this with usrmerge enabled: ERROR: linuxconsole-1.7.0-r0 do_package: QA Issue: linuxconsole: Files/directories were installed but not shipped in any package: /lib /lib/udev /lib/udev/js-set-enum-leds /lib/udev/rules.d /lib/udev/rules.d/80-stelladaptor-joystick.rules Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. linuxconsole: 5 installed and not shipped files. [installed-vs-shipped] On Wed, Dec 23, 2020 at 2:15 PM Martin Jansa via lists.openembedded.org wrote: > On Tue, Dec 8, 2020 at 7:26 PM Fabio Berton > wrote: > >> Add linuxconsole and inputattach-config recipes. The inputattach-config >> recipe is intend to use as machine configuration file for inputattach. >> >> Signed-off-by: Fabio Berton >> > > +FILES_joystick += "\ >> +${bindir}/evdev-joystick \ >> +${bindir}/ffcfstress \ >> +${bindir}/ffmvforce \ >> +${bindir}/ffset \ >> +${bindir}/fftest \ >> +${bindir}/jscal \ >> +${bindir}/jscal-restore \ >> +${bindir}/jscal-store \ >> +${bindir}/jstest \ >> +${datadir}/joystick \ >> +${base_libdir}/udev/rules.d/51-these-are-not-joysticks-rm.rules \ >> +${base_libdir}/udev/js-set-enum-leds \ >> +${base_libdir}/udev/rules.d/60-joystick.rules \ >> +${base_libdir}/udev/rules.d/80-stelladaptor-joystick.rules \ >> +" >> + >> +RDEPENDS_inputattach += "inputattach-config" >> + >> +RDEPENDS_joystick += "\ >> +bash \ >> +gawk \ >> +" >> > > would you mind if I split jscal files to separate package with these > runtime dependencies? > > We have joystick-jscal package in joystick recipe in meta-ros: > > https://github.com/ros/meta-ros/commit/ee3a3f6051594bdf39322d43ec08cce0df8f172c > and it would make transition a bit simpler - but we also don't really use > joystick anymore, so I don't have strong opinion on this, for now I'm > replacing our joystick recipe with linuxconsole bbappend which does this, > if you think it's useful I'll send patch for meta-oe to separate the > package here. > > Cheers, > > > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#88393): https://lists.openembedded.org/g/openembedded-devel/message/88393 Mute This Topic: https://lists.openembedded.org/mt/78810411/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-oe][PATCH] linuxconsole: Add recipe for version 1.7.0
On Tue, Dec 8, 2020 at 7:26 PM Fabio Berton wrote: > Add linuxconsole and inputattach-config recipes. The inputattach-config > recipe is intend to use as machine configuration file for inputattach. > > Signed-off-by: Fabio Berton > +FILES_joystick += "\ > +${bindir}/evdev-joystick \ > +${bindir}/ffcfstress \ > +${bindir}/ffmvforce \ > +${bindir}/ffset \ > +${bindir}/fftest \ > +${bindir}/jscal \ > +${bindir}/jscal-restore \ > +${bindir}/jscal-store \ > +${bindir}/jstest \ > +${datadir}/joystick \ > +${base_libdir}/udev/rules.d/51-these-are-not-joysticks-rm.rules \ > +${base_libdir}/udev/js-set-enum-leds \ > +${base_libdir}/udev/rules.d/60-joystick.rules \ > +${base_libdir}/udev/rules.d/80-stelladaptor-joystick.rules \ > +" > + > +RDEPENDS_inputattach += "inputattach-config" > + > +RDEPENDS_joystick += "\ > +bash \ > +gawk \ > +" > would you mind if I split jscal files to separate package with these runtime dependencies? We have joystick-jscal package in joystick recipe in meta-ros: https://github.com/ros/meta-ros/commit/ee3a3f6051594bdf39322d43ec08cce0df8f172c and it would make transition a bit simpler - but we also don't really use joystick anymore, so I don't have strong opinion on this, for now I'm replacing our joystick recipe with linuxconsole bbappend which does this, if you think it's useful I'll send patch for meta-oe to separate the package here. Cheers, -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#88374): https://lists.openembedded.org/g/openembedded-devel/message/88374 Mute This Topic: https://lists.openembedded.org/mt/78810411/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-oe][PATCH] linuxconsole: Add recipe for version 1.7.0
Add linuxconsole and inputattach-config recipes. The inputattach-config recipe is intend to use as machine configuration file for inputattach. Signed-off-by: Fabio Berton --- .../inputattach-config/inputattach-config.bb | 12 +++ .../inputattach-config/inputattach.conf | 8 ++ .../51-these-are-not-joysticks-rm.rules | 83 +++ .../linuxconsole/60-joystick.rules| 7 ++ .../linuxconsole/inputattach.service | 11 +++ .../linuxconsole/linuxconsole/inputattachctl | 16 .../linuxconsole/linuxconsole_1.7.0.bb| 83 +++ 7 files changed, 220 insertions(+) create mode 100644 meta-oe/recipes-extended/inputattach-config/inputattach-config.bb create mode 100644 meta-oe/recipes-extended/inputattach-config/inputattach-config/inputattach.conf create mode 100644 meta-oe/recipes-extended/linuxconsole/linuxconsole/51-these-are-not-joysticks-rm.rules create mode 100644 meta-oe/recipes-extended/linuxconsole/linuxconsole/60-joystick.rules create mode 100644 meta-oe/recipes-extended/linuxconsole/linuxconsole/inputattach.service create mode 100644 meta-oe/recipes-extended/linuxconsole/linuxconsole/inputattachctl create mode 100644 meta-oe/recipes-extended/linuxconsole/linuxconsole_1.7.0.bb diff --git a/meta-oe/recipes-extended/inputattach-config/inputattach-config.bb b/meta-oe/recipes-extended/inputattach-config/inputattach-config.bb new file mode 100644 index 0..68beec670 --- /dev/null +++ b/meta-oe/recipes-extended/inputattach-config/inputattach-config.bb @@ -0,0 +1,12 @@ +SUMMARY = "inputattach configuration file" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" + +SRC_URI = "file://inputattach.conf" + +do_configure[noexec] = "1" +do_compile[noexec] = "1" + +do_install() { +install -Dm 0644 ${WORKDIR}/inputattach.conf ${D}${sysconfdir}/inputattach.conf +} diff --git a/meta-oe/recipes-extended/inputattach-config/inputattach-config/inputattach.conf b/meta-oe/recipes-extended/inputattach-config/inputattach-config/inputattach.conf new file mode 100644 index 0..86c421012 --- /dev/null +++ b/meta-oe/recipes-extended/inputattach-config/inputattach-config/inputattach.conf @@ -0,0 +1,8 @@ +# +# Configuration for inputattach +# +# Every line of this file are inputattach arguments, see 'inputattach --help'. +# An inputattach instance will be started for each element. +# +# --microsoft /dev/ttyS0 +# --baud 9600 --w8001 /dev/ttyS1 diff --git a/meta-oe/recipes-extended/linuxconsole/linuxconsole/51-these-are-not-joysticks-rm.rules b/meta-oe/recipes-extended/linuxconsole/linuxconsole/51-these-are-not-joysticks-rm.rules new file mode 100644 index 0..3e0ab4018 --- /dev/null +++ b/meta-oe/recipes-extended/linuxconsole/linuxconsole/51-these-are-not-joysticks-rm.rules @@ -0,0 +1,83 @@ +# /etc/udev/rules.d/51-these-are-not-joysticks-rm.rules +# +# This file is auto-generated. For more information: +# https://github.com/denilsonsa/udev-joystick-blacklist + +SUBSYSTEM=="input", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c30a", ENV{ID_INPUT_JOYSTICK}=="?*", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c30a", KERNEL=="js[0-9]*", RUN+="/bin/rm %E{DEVNAME}", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="04d9", ATTRS{idProduct}=="a0df", ENV{ID_INPUT_JOYSTICK}=="?*", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="04d9", ATTRS{idProduct}=="a0df", KERNEL=="js[0-9]*", RUN+="/bin/rm %E{DEVNAME}", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0010", ENV{ID_INPUT_JOYSTICK}=="?*", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0010", KERNEL=="js[0-9]*", RUN+="/bin/rm %E{DEVNAME}", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0011", ENV{ID_INPUT_JOYSTICK}=="?*", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0011", KERNEL=="js[0-9]*", RUN+="/bin/rm %E{DEVNAME}", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0012", ENV{ID_INPUT_JOYSTICK}=="?*", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0012", KERNEL=="js[0-9]*", RUN+="/bin/rm %E{DEVNAME}", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0013", ENV{ID_INPUT_JOYSTICK}=="?*", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0013", KERNEL=="js[0-9]*", RUN+="/bin/rm %E{DEVNAME}", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0014", ENV{ID_INPUT_JOYSTICK}=="?*", ENV{ID_INPUT_JOYSTICK}="" +SUBSYSTEM=="input", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="0014", KERNEL=="js[0-9]*", RUN+="/bin/rm %E{DEVNAME}", ENV{ID_INPUT_JOYSTICK}=""