syslinux: add support for host-install
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Mon, 23 Jan 2012 20:19:29 +0000 (21:19 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 24 Jan 2012 11:59:47 +0000 (12:59 +0100)
This makes it possible to build the syslinux/extlinux installer, so a
bootable USB drive, CompactFlash or SD card can be created by a user
script.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
boot/syslinux/syslinux.mk

index da30d5a203724eb9b49847d349bf3fced9011d4f..3e89bdfca5fd5adffac098c2849cac3ef0439c7a 100644 (file)
@@ -26,4 +26,18 @@ define SYSLINUX_INSTALL_IMAGES_CMDS
        done
 endef
 
+
+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))