[Buildroot] [PATCH] syslinux: add support for host-install
Will Moore
will.moore at beraninstruments.com
Mon Oct 31 11:15:19 UTC 2011
Hi Arnout,
> -----Original Message-----
> From: Arnout Vandecappelle (Essensium/Mind) [mailto:arnout at mind.be]
> Sent: 26 October 2011 23:28
> To: buildroot at busybox.net
>
> From: "Arnout Vandecappelle (Essensium/Mind)" <arnout at mind.be>
>
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
> ---
> Hoi Will,
>
> This patch (applied to the current HEAD) builds syslinux for the host.
>
> What is still missing from this is a way to have a Windows self-installer.
> I've got a patch cooking for that too, but it's a hack: it copies the
> precompiled syslinux.exe binary from the extracted tar file.
>
> Regards,
> Arnout
> ---
> boot/syslinux/syslinux.mk | 16 ++++++++++++++++
> 1 files changed, 16 insertions(+), 0 deletions(-)
>
> diff --git a/boot/syslinux/syslinux.mk b/boot/syslinux/syslinux.mk
> index fa5af07..66a7076 100644
> --- a/boot/syslinux/syslinux.mk
> +++ b/boot/syslinux/syslinux.mk
> @@ -26,4 +26,20 @@ define SYSLINUX_INSTALL_IMAGES_CMDS
> done
> endef
>
> +
> +HOST_SYSLINUX_POST_EXTRACT_HOOKS += SYSLINUX_RM_MK_LBA_IMG
What have you got defined for SYSLINUX_RM_MK_LBA_IMG?
> +
> +define HOST_SYSLINUX_BUILD_CMDS
> + $(HOST_MAKE_ENV) $(MAKE) -C $(@D)
As per syslinux /doc/distrib.txt:
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) clean
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) installer
> +endef
> +
> +define HOST_SYSLINUX_INSTALL_CMDS
> + $(HOST_MAKE_ENV) $(MAKE) -C $(@D) INSTALLROOT=$(HOST_DIR) install
> +endef
> +
> +define HOST_SYSLINUX_CLEAN_CMDS
> + $(HOST_MAKE_ENV) $(MAKE) -C $(@D) clean
> +endef
> +
> $(eval $(call GENTARGETS))
> +$(eval $(call GENTARGETS,host))
> --
> 1.7.7
More information about the buildroot
mailing list