* [Buildroot] Syslinux host and target build
@ 2011-10-26 15:21 Will Moore
2011-10-26 15:57 ` Michael S. Zick
2011-10-26 22:27 ` [Buildroot] [PATCH] syslinux: add support for host-install Arnout Vandecappelle
0 siblings, 2 replies; 5+ messages in thread
From: Will Moore @ 2011-10-26 15:21 UTC (permalink / raw)
To: buildroot
I use a syslinux host build to generate a bootable USB flash drive on to which I
install the buildroot built kernel and rootfs.
I also build syslinux for the target that I include in the buildroot rootfs to
allow the target device, as booted from the USB flash drive, to generate
bootable PATA (aka IDE) flash drives - a sort of self installer.
I would like to get buildroot to build the host and target syslinux for me. I
am just not sure how to go about it! I have tried adjusting the existing
syslinux.mk to make the SYSLINUX_BUILD/INSTALL_CMDS build for the target, added
HOST_SYSLINUX_BUILD/INSTALL_CMDS for a host build and added $(eval $(call
GENTARGETS,boot,syslinux,host)) but the host build doesn't seem to get run. I
conclude I don't know what I am doing :)
I also believe that we are currently just calling "make" where as the syslinux
/doc/distrib.txt requests that we call "make clean" "make installer" instead.
Regards,
Will
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Syslinux host and target build
2011-10-26 15:21 [Buildroot] Syslinux host and target build Will Moore
@ 2011-10-26 15:57 ` Michael S. Zick
2011-10-26 22:27 ` [Buildroot] [PATCH] syslinux: add support for host-install Arnout Vandecappelle
1 sibling, 0 replies; 5+ messages in thread
From: Michael S. Zick @ 2011-10-26 15:57 UTC (permalink / raw)
To: buildroot
On Wed October 26 2011, Will Moore wrote:
> I use a syslinux host build to generate a bootable USB flash drive on to which I
> install the buildroot built kernel and rootfs.
>
> I also build syslinux for the target that I include in the buildroot rootfs to
> allow the target device, as booted from the USB flash drive, to generate
> bootable PATA (aka IDE) flash drives - a sort of self installer.
>
> I would like to get buildroot to build the host and target syslinux for me. I
> am just not sure how to go about it! I have tried adjusting the existing
> syslinux.mk to make the SYSLINUX_BUILD/INSTALL_CMDS build for the target, added
> HOST_SYSLINUX_BUILD/INSTALL_CMDS for a host build and added $(eval $(call
> GENTARGETS,boot,syslinux,host)) but the host build doesn't seem to get run. I
> conclude I don't know what I am doing :)
>
Try:
$(eval $(call GENTARGETS,host))
I think the recent infrastructure change included GENTARGETS.
Mike
> I also believe that we are currently just calling "make" where as the syslinux
> /doc/distrib.txt requests that we call "make clean" "make installer" instead.
>
> Regards,
>
>
>
> Will
>
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] syslinux: add support for host-install
2011-10-26 15:21 [Buildroot] Syslinux host and target build Will Moore
2011-10-26 15:57 ` Michael S. Zick
@ 2011-10-26 22:27 ` Arnout Vandecappelle
2011-10-31 8:54 ` Will Moore
2011-10-31 11:15 ` Will Moore
1 sibling, 2 replies; 5+ messages in thread
From: Arnout Vandecappelle @ 2011-10-26 22:27 UTC (permalink / raw)
To: buildroot
From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@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
+
+define HOST_SYSLINUX_BUILD_CMDS
+ $(HOST_MAKE_ENV) $(MAKE) -C $(@D)
+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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] syslinux: add support for host-install
2011-10-26 22:27 ` [Buildroot] [PATCH] syslinux: add support for host-install Arnout Vandecappelle
@ 2011-10-31 8:54 ` Will Moore
2011-10-31 11:15 ` Will Moore
1 sibling, 0 replies; 5+ messages in thread
From: Will Moore @ 2011-10-31 8:54 UTC (permalink / raw)
To: buildroot
Hi Arnout,
> -----Original Message-----
> From: Arnout Vandecappelle (Essensium/Mind) [mailto:arnout at mind.be]
> Sent: 26 October 2011 23:28
> Subject: [PATCH] syslinux: add support for host-install
>
> From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>
>
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> ---
> Hoi Will,
>
> This patch (applied to the current HEAD) builds syslinux for the host.
Thanks!
I can see some discussion on the mailing list of a few patches you have sent for
syslinux moving to v4.04 and adding the host build, but what is the status of
these?
>
> 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.
I can't see there is another way. I have no interest in this personally but
would like to have a target build so my buildroot target can itself syslinux a
device to make it bootable. I would suggest that these are both unusual versus
having a host build and so should be menu options.
>
> 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
> +
> +define HOST_SYSLINUX_BUILD_CMDS
> + $(HOST_MAKE_ENV) $(MAKE) -C $(@D)
> +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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] syslinux: add support for host-install
2011-10-26 22:27 ` [Buildroot] [PATCH] syslinux: add support for host-install Arnout Vandecappelle
2011-10-31 8:54 ` Will Moore
@ 2011-10-31 11:15 ` Will Moore
1 sibling, 0 replies; 5+ messages in thread
From: Will Moore @ 2011-10-31 11:15 UTC (permalink / raw)
To: buildroot
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@mind.be>
>
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-10-31 11:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-26 15:21 [Buildroot] Syslinux host and target build Will Moore
2011-10-26 15:57 ` Michael S. Zick
2011-10-26 22:27 ` [Buildroot] [PATCH] syslinux: add support for host-install Arnout Vandecappelle
2011-10-31 8:54 ` Will Moore
2011-10-31 11:15 ` Will Moore
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox