diff options
-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" |