summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/syslinux
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/syslinux')
-rw-r--r--meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb17
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
67PACKAGECONFIG ??= "mtools"
68PACKAGECONFIG[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() {
77do_install() { 81do_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
107PACKAGES += "${PN}-nomtools ${PN}-extlinux ${PN}-mbr ${PN}-chain ${PN}-pxelinux ${PN}-isolinux ${PN}-misc" 116PACKAGES += "${PN}-extlinux ${PN}-mbr ${PN}-chain ${PN}-pxelinux ${PN}-isolinux ${PN}-misc"
108 117
109RDEPENDS:${PN} += "mtools" 118RDEPENDS:${PN} += "${@bb.utils.contains("PACKAGECONFIG", "mtools", "mtools", "", d)}"
110RDEPENDS:${PN}-nomtools += "libext2fs"
111RDEPENDS:${PN}-misc += "perl" 119RDEPENDS:${PN}-misc += "perl"
112 120
113FILES:${PN} = "${bindir}/syslinux" 121FILES:${PN} = "${bindir}/syslinux"
114FILES:${PN}-nomtools = "${bindir}/syslinux-nomtools"
115FILES:${PN}-extlinux = "${sbindir}/extlinux" 122FILES:${PN}-extlinux = "${sbindir}/extlinux"
116FILES:${PN}-mbr = "${datadir}/${BPN}/mbr.bin" 123FILES:${PN}-mbr = "${datadir}/${BPN}/mbr.bin"
117FILES:${PN}-chain = "${datadir}/${BPN}/chain.c32" 124FILES:${PN}-chain = "${datadir}/${BPN}/chain.c32"