<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 13 March 2015 at 21:29, Richard Purdie <span dir="ltr"><<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Fri, 2015-03-13 at 20:25 +0530, Naresh Bhat wrote:<br>
> Remove the bootimg dependency as syslinux for aarch64. The reason to skip the syslinux package<br>
> - syslinux package contains x86 assembly code. Hence it cannot be compiled on aarch64.<br>
> - There is no BIOS on aarch64 to answer syscalls.<br>
><br>
> Signed-off-by: Naresh Bhat <<a href="mailto:naresh.bhat@linaro.org">naresh.bhat@linaro.org</a>><br>
> ---<br>
> meta/classes/syslinux.bbclass | 10 +++++++++-<br>
> 1 file changed, 9 insertions(+), 1 deletion(-)<br>
><br>
> diff --git a/meta/classes/syslinux.bbclass b/meta/classes/syslinux.bbclass<br>
> index d6498d9..7bd8fed 100644<br>
> --- a/meta/classes/syslinux.bbclass<br>
> +++ b/meta/classes/syslinux.bbclass<br>
> @@ -17,7 +17,15 @@<br>
> # ${SYSLINUX_SERIAL_TTY} - Set alternate console=tty... kernel boot argument<br>
> # ${SYSLINUX_KERNEL_ARGS} - Add additional kernel arguments<br>
><br>
> -do_bootimg[depends] += "${MLPREFIX}syslinux:do_populate_sysroot \<br>
> +def boot_image_depends(bb, d):<br>
> + import re<br>
> + deps = bb.data.getVar('TARGET_PREFIX', d, True)<br>
> + if re.search("(x86_64|i.86).*",deps):<br>
> + return "${MLPREFIX}syslinux:do_populate_sysroot"<br>
> + if re.search("aarch64",deps):<br>
> + return ""<br>
> +BIMGDEP = "${@boot_image_depends(bb, d)}"<br>
> +do_bootimg[depends] += "${BIMGDEP} \<br>
> syslinux-native:do_populate_sysroot"<br>
<br>
</div></div>How about something simpler like:<br>
<br>
EXTRABOOTIMGDEPS = ""<br>
EXTRABOOTIMGDEPS_x86 = "${MLPREFIX}syslinux:do_populate_sysroot"<br>
EXTRABOOTIMGDEPS_x86-64 = "${MLPREFIX}syslinux:do_populate_sysroot"<br>
<br>
?<br></blockquote><div>Thank you very much. Yes, it is more simple. I will test the same implementation and make the changes in the next series. <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Cheers,<br>
<br>
Richard<br>
<br>
</blockquote></div><br></div></div>