summaryrefslogtreecommitdiff
path: root/target/x86/syslinux
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2005-06-23 05:09:05 +0000
committerEric Andersen <andersen@codepoet.org>2005-06-23 05:09:05 +0000
commitd7d57699ef83cce36d87bef73c9e1fbdc765a64c (patch)
treee43edbfd5eaaadf7acd1237081dce715d1ea0a57 /target/x86/syslinux
parentf5723cdb9b3d899278a56368c9bec89a2e51d800 (diff)
Add support for building a few commonly used bootloaders
Diffstat (limited to 'target/x86/syslinux')
-rw-r--r--target/x86/syslinux/Config.in6
-rw-r--r--target/x86/syslinux/syslinux.mk40
2 files changed, 46 insertions, 0 deletions
diff --git a/target/x86/syslinux/Config.in b/target/x86/syslinux/Config.in
new file mode 100644
index 000000000..98465fcd7
--- /dev/null
+++ b/target/x86/syslinux/Config.in
@@ -0,0 +1,6 @@
+config BR2_TARGET_SYSLINUX
+ bool "syslinux bootloader"
+ default n
+ depends on BR2_i386
+ help
+ The syslinux bootloader for x86 systems.
diff --git a/target/x86/syslinux/syslinux.mk b/target/x86/syslinux/syslinux.mk
new file mode 100644
index 000000000..05092ac57
--- /dev/null
+++ b/target/x86/syslinux/syslinux.mk
@@ -0,0 +1,40 @@
+ifeq ($(ARCH),i386)
+#############################################################
+#
+# syslinux to make target msdos/iso9660 filesystems bootable
+#
+#############################################################
+
+SYSLINUX_DIR=$(BUILD_DIR)/syslinux-3.09
+SYSLINUX_SOURCE=syslinux-3.09.tar.bz2
+SYSLINUX_SITE=http://www.kernel.org/pub/linux/utils/boot/syslinux/
+
+$(DL_DIR)/$(SYSLINUX_SOURCE):
+ $(WGET) -P $(DL_DIR) $(SYSLINUX_SITE)/$(SYSLINUX_SOURCE)
+
+$(SYSLINUX_DIR)/Makefile: $(DL_DIR)/$(SYSLINUX_SOURCE) $(SYSLINUX_PATCH)
+ bzcat $(DL_DIR)/$(SYSLINUX_SOURCE) | tar -C $(BUILD_DIR) -xvf -
+ touch -c $(SYSLINUX_DIR)/Makefile
+
+$(SYSLINUX_DIR)/isolinux.bin: $(SYSLINUX_DIR)/Makefile
+ $(MAKE) -C $(SYSLINUX_DIR)
+ touch -c $(SYSLINUX_DIR)/isolinux.bin
+
+syslinux: $(SYSLINUX_DIR)/isolinux.bin
+
+syslinux-clean:
+ -make -C $(SYSLINUX_DIR) clean
+
+syslinux-dirclean:
+ rm -rf $(SYSLINUX_DIR)
+
+endif
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_TARGET_SYSLINUX)),y)
+TARGETS+=syslinux
+endif