diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2024-01-08 13:22:47 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-01-10 17:01:28 +0000 |
commit | 91694dfce75f9581968f5f3c06a38d2ca6da8367 (patch) | |
tree | 5f058bf6de65e4d61fdb6b5196992e78091f021c /meta/recipes-devtools/syslinux | |
parent | 56c7ea02d29d220fae11e8bed76a75df7b523010 (diff) | |
download | poky-91694dfce75f9581968f5f3c06a38d2ca6da8367.tar.gz |
syslinux: Allow mtools to be optional
Adds a PACKAGECONFIG to syslinux to determine if the mtools version of
the utilities is installed or not. The difference between the two
versions is that the mtools version can be used by any user with write
permission, while the non-mtools can only be used by root.
The syslinux-nomtools package is removed, as it was empty and doesn't
appear to be used anyway
(From OE-Core rev: 06da552733091bc8d332bb932c86cbc8362d44b9)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/syslinux')
-rw-r--r-- | meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb b/meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb index 1931bfb3c0..332655bdf9 100644 --- a/meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb +++ b/meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb | |||
@@ -63,6 +63,10 @@ EXTRA_OEMAKE = " \ | |||
63 | RANLIB="${RANLIB}" \ | 63 | RANLIB="${RANLIB}" \ |
64 | " | 64 | " |
65 | 65 | ||
66 | # mtools allows non-root users to install syslinux | ||
67 | PACKAGECONFIG ??= "mtools" | ||
68 | PACKAGECONFIG[mtools] = ",,," | ||
69 | |||
66 | # | 70 | # |
67 | # Tasks for native/nativesdk which just build the installer. | 71 | # Tasks for native/nativesdk which just build the installer. |
68 | # | 72 | # |
@@ -77,10 +81,15 @@ do_compile() { | |||
77 | do_install() { | 81 | do_install() { |
78 | install -d ${D}${bindir} | 82 | install -d ${D}${bindir} |
79 | install \ | 83 | install \ |
80 | ${B}/bios/mtools/syslinux \ | ||
81 | ${B}/bios/extlinux/extlinux \ | 84 | ${B}/bios/extlinux/extlinux \ |
82 | ${B}/bios/utils/isohybrid \ | 85 | ${B}/bios/utils/isohybrid \ |
83 | ${D}${bindir} | 86 | ${D}${bindir} |
87 | |||
88 | if ${@bb.utils.contains("PACKAGECONFIG", "mtools", "true", "false", d)}; then | ||
89 | install ${B}/bios/mtools/syslinux ${D}${bindir} | ||
90 | else | ||
91 | install ${B}/bios/linux/syslinux ${D}${bindir} | ||
92 | fi | ||
84 | } | 93 | } |
85 | 94 | ||
86 | # | 95 | # |
@@ -104,14 +113,12 @@ do_install:class-target() { | |||
104 | install -m 644 ${S}/bios/core/ldlinux.bss ${D}${datadir}/syslinux/ | 113 | install -m 644 ${S}/bios/core/ldlinux.bss ${D}${datadir}/syslinux/ |
105 | } | 114 | } |
106 | 115 | ||
107 | PACKAGES += "${PN}-nomtools ${PN}-extlinux ${PN}-mbr ${PN}-chain ${PN}-pxelinux ${PN}-isolinux ${PN}-misc" | 116 | PACKAGES += "${PN}-extlinux ${PN}-mbr ${PN}-chain ${PN}-pxelinux ${PN}-isolinux ${PN}-misc" |
108 | 117 | ||
109 | RDEPENDS:${PN} += "mtools" | 118 | RDEPENDS:${PN} += "${@bb.utils.contains("PACKAGECONFIG", "mtools", "mtools", "", d)}" |
110 | RDEPENDS:${PN}-nomtools += "libext2fs" | ||
111 | RDEPENDS:${PN}-misc += "perl" | 119 | RDEPENDS:${PN}-misc += "perl" |
112 | 120 | ||
113 | FILES:${PN} = "${bindir}/syslinux" | 121 | FILES:${PN} = "${bindir}/syslinux" |
114 | FILES:${PN}-nomtools = "${bindir}/syslinux-nomtools" | ||
115 | FILES:${PN}-extlinux = "${sbindir}/extlinux" | 122 | FILES:${PN}-extlinux = "${sbindir}/extlinux" |
116 | FILES:${PN}-mbr = "${datadir}/${BPN}/mbr.bin" | 123 | FILES:${PN}-mbr = "${datadir}/${BPN}/mbr.bin" |
117 | FILES:${PN}-chain = "${datadir}/${BPN}/chain.c32" | 124 | FILES:${PN}-chain = "${datadir}/${BPN}/chain.c32" |