summaryrefslogtreecommitdiffstats
path: root/target/powerpc
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/powerpc
parentf5723cdb9b3d899278a56368c9bec89a2e51d800 (diff)
downloadbuildroot-novena-d7d57699ef83cce36d87bef73c9e1fbdc765a64c.tar.gz
buildroot-novena-d7d57699ef83cce36d87bef73c9e1fbdc765a64c.zip
Add support for building a few commonly used bootloaders
Diffstat (limited to 'target/powerpc')
-rw-r--r--target/powerpc/yaboot/Config.in6
-rw-r--r--target/powerpc/yaboot/yaboot.mk44
2 files changed, 50 insertions, 0 deletions
diff --git a/target/powerpc/yaboot/Config.in b/target/powerpc/yaboot/Config.in
new file mode 100644
index 000000000..2072421d6
--- /dev/null
+++ b/target/powerpc/yaboot/Config.in
@@ -0,0 +1,6 @@
+config BR2_TARGET_YABOOT
+ bool "grub bootloader"
+ default n
+ depends on BR2_powerpc
+ help
+ The yaboot bootloader for new world powerpc systems.
diff --git a/target/powerpc/yaboot/yaboot.mk b/target/powerpc/yaboot/yaboot.mk
new file mode 100644
index 000000000..d463bcb7d
--- /dev/null
+++ b/target/powerpc/yaboot/yaboot.mk
@@ -0,0 +1,44 @@
+ifeq ($(ARCH),powerpc)
+
+#############################################################
+#
+# yaboot
+#
+#############################################################
+
+YABOOT_SOURCE:=yaboot-1.3.13.tar.gz
+YABOOT_SITE:=http://penguinppc.org/bootloaders/yaboot
+YABOOT_DIR:=$(BUILD_DIR)/yaboot-1.3.13
+
+$(DL_DIR)/$(YABOOT_SOURCE):
+ $(WGET) -P $(DL_DIR) $(YABOOT_SITE)/$(YABOOT_SOURCE)
+
+yaboot-source: $(DL_DIR)/$(YABOOT_SOURCE)
+
+$(YABOOT_DIR)/Makefile: $(DL_DIR)/$(YABOOT_SOURCE)
+ zcat $(DL_DIR)/$(YABOOT_SOURCE) | tar -C $(BUILD_DIR) -xvf -
+ touch -c $(YABOOT_DIR)/Makefile
+
+$(YABOOT_DIR)/second/yaboot: $(YABOOT_DIR)/Makefile
+ make -C $(YABOOT_DIR) CROSS=$(TARGET_CROSS)
+ touch -c $(YABOOT_DIR)/second/yaboot
+
+yaboot: $(YABOOT_DIR)/second/yaboot
+
+yaboot-clean:
+ make -C $(YABOOT_DIR) clean
+
+yaboot-dirclean:
+ rm -rf $(YABOOT_DIR)
+
+endif
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_TARGET_YABOOT)),y)
+TARGETS+=yaboot
+endif
+