diff options
author | Ross Burton <ross.burton@arm.com> | 2023-10-06 12:21:59 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-10-09 15:51:13 +0100 |
commit | b3fa551d64d94baf9dd9e56d7e42d20e0819cd0b (patch) | |
tree | e40be02f9b96861f1543012d6457acfad8fecddb /meta | |
parent | 18a8d773c5d078f07f31d5802133de842ab1b350 (diff) | |
download | poky-b3fa551d64d94baf9dd9e56d7e42d20e0819cd0b.tar.gz |
ttyrun: add new recipe
ttyrun is a small tool from IBM's s390-tools package to run a command
if the specified TTY is present, and hang if not.
This is useful so that you can list all of the potential terminals in
inittab and not have getty quiting instantly when a device isn't
present, resulting in the "respawning too fast" errors.
Note that DISTRELEASE has to be set as otherwise "build$(DATE)" is used,
which is non-reproducible.
(From OE-Core rev: 41a8a2e0817c7f73d3a4514fd158141ee5627ad8)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/conf/distro/include/maintainers.inc | 1 | ||||
-rw-r--r-- | meta/recipes-core/ttyrun/ttyrun_2.29.0.bb | 33 |
2 files changed, 34 insertions, 0 deletions
diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index dcc507bb98..b2579fc44c 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc | |||
@@ -810,6 +810,7 @@ RECIPE_MAINTAINER:pn-texinfo-dummy-native = "Anuj Mittal <anuj.mittal@intel.com> | |||
810 | RECIPE_MAINTAINER:pn-tiff = "Alexander Kanavin <alex.kanavin@gmail.com>" | 810 | RECIPE_MAINTAINER:pn-tiff = "Alexander Kanavin <alex.kanavin@gmail.com>" |
811 | RECIPE_MAINTAINER:pn-time = "Robert Yang <liezhi.yang@windriver.com>" | 811 | RECIPE_MAINTAINER:pn-time = "Robert Yang <liezhi.yang@windriver.com>" |
812 | RECIPE_MAINTAINER:pn-ttf-bitstream-vera = "Anuj Mittal <anuj.mittal@intel.com>" | 812 | RECIPE_MAINTAINER:pn-ttf-bitstream-vera = "Anuj Mittal <anuj.mittal@intel.com>" |
813 | RECIPE_MAINTAINER:pn-ttyrun = "Ross Burton <ross.burton@arm.com>" | ||
813 | RECIPE_MAINTAINER:pn-tzcode-native = "Unassigned <unassigned@yoctoproject.org>" | 814 | RECIPE_MAINTAINER:pn-tzcode-native = "Unassigned <unassigned@yoctoproject.org>" |
814 | RECIPE_MAINTAINER:pn-tzdata = "Unassigned <unassigned@yoctoproject.org>" | 815 | RECIPE_MAINTAINER:pn-tzdata = "Unassigned <unassigned@yoctoproject.org>" |
815 | RECIPE_MAINTAINER:pn-u-boot = "Marek Vasut <marek.vasut@gmail.com>" | 816 | RECIPE_MAINTAINER:pn-u-boot = "Marek Vasut <marek.vasut@gmail.com>" |
diff --git a/meta/recipes-core/ttyrun/ttyrun_2.29.0.bb b/meta/recipes-core/ttyrun/ttyrun_2.29.0.bb new file mode 100644 index 0000000000..e0956b9ac6 --- /dev/null +++ b/meta/recipes-core/ttyrun/ttyrun_2.29.0.bb | |||
@@ -0,0 +1,33 @@ | |||
1 | SUMMARY = "Start the program if the specified terminal device is available." | ||
2 | DESCRIPTION = "ttyrun is typically used to prevent a respawn through the \ | ||
3 | init(8) program when a terminal is not available." | ||
4 | HOMEPAGE = "https://github.com/ibm-s390-linux/s390-tools" | ||
5 | |||
6 | LICENSE = "MIT" | ||
7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=f5118f167b055bfd7c3450803f1847af" | ||
8 | |||
9 | SRC_URI = "git://github.com/ibm-s390-linux/s390-tools;protocol=https;branch=master" | ||
10 | SRCREV = "d9ce54dee3ac3827e76624352293a83eb05c727e" | ||
11 | |||
12 | S = "${WORKDIR}/git" | ||
13 | |||
14 | EXTRA_OEMAKE = "\ | ||
15 | V=1 \ | ||
16 | CC="${CC}" \ | ||
17 | DISTRELEASE=${PR} \ | ||
18 | " | ||
19 | |||
20 | # We just want ttyrun and not the rest of s390-utils | ||
21 | |||
22 | do_configure() { | ||
23 | oe_runmake -C ${S}/iucvterm/src clean | ||
24 | } | ||
25 | |||
26 | do_compile() { | ||
27 | oe_runmake -C ${S}/iucvterm/src ttyrun | ||
28 | } | ||
29 | |||
30 | do_install() { | ||
31 | install -d ${D}${sbindir} | ||
32 | install ${S}/iucvterm/src/ttyrun ${D}${sbindir} | ||
33 | } | ||