r646 - in x86/trunk/packages: . yaboot

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Fri Sep 16 20:51:34 PDT 2005


Author: jhuntwork
Date: 2005-09-16 21:51:34 -0600 (Fri, 16 Sep 2005)
New Revision: 646

Added:
   x86/trunk/packages/yaboot/
   x86/trunk/packages/yaboot/Makefile
   x86/trunk/packages/yaboot/boot.msg
   x86/trunk/packages/yaboot/map.hfs
   x86/trunk/packages/yaboot/ofboot.b
   x86/trunk/packages/yaboot/yaboot-1.3.13-fix1.patch
   x86/trunk/packages/yaboot/yaboot.conf
Log:
Add yaboot for ppc

Added: x86/trunk/packages/yaboot/Makefile
===================================================================
--- x86/trunk/packages/yaboot/Makefile	2005-09-17 03:50:52 UTC (rev 645)
+++ x86/trunk/packages/yaboot/Makefile	2005-09-17 03:51:34 UTC (rev 646)
@@ -0,0 +1,62 @@
+# Yaboot Makefile
+#==============================================================================
+
+NM= yaboot
+VRS= 1.3.13
+DIR= $(NM)-$(VRS)
+
+FILE= $(DIR).tar.gz
+URL-$(FILE)= http://penguinppc.org/bootloaders/yaboot/$(FILE)
+SHA-$(FILE)= e2269e8dc039a0922d700de831bb185c8a787ca2
+
+PATCH1= $(DIR)-fix1.patch
+
+# Targets
+# =============================================================================
+
+include $(ROOT)/scripts/functions
+
+chroot:
+	@chroot "$(MP)" $(chenv-blfs) \
+	'cd $(ROOT) && make ch-$(NM) $(chbash-post-bash)'
+
+stage2: Makefile $(FILE) $(PATCH1)
+	@$(std_build)
+
+compile-stage2:
+	@$(call echo_message, Configuring)
+#==============================================================================
+# Configure commands below \/
+#==============================================================================
+	@patch -Np1 -i ../$(PATCH1)
+#
+#==Status Messages=============================================
+#
+	@$(OK)
+	@$(call echo_message, Making)
+#==============================================================================
+# Make commands below \/
+#==============================================================================
+	@make PREFIX=usr > ../$(DIR)-$@.log 2>&1
+#
+#==Status Messages=============================================
+#
+	@$(OK)
+	@$(call echo_message, Installing)
+#==============================================================================
+# Install commands below \/
+#==============================================================================
+	@make PREFIX=usr install >>../$(DIR)-$@.log 2>&1
+	@cp ../ofboot.b /boot/
+	@cp /usr/lib/yaboot/yaboot /boot/
+	@cp ../yaboot.conf /boot/
+	@cp ../boot.msg /boot/
+#
+#==Status Messages=============================================
+#
+	@$(OK)
+
+clean:
+	@-rm -rf $(DIR)
+
+.PHONY: clean chroot compile-stage2

Added: x86/trunk/packages/yaboot/boot.msg
===================================================================
--- x86/trunk/packages/yaboot/boot.msg	2005-09-17 03:50:52 UTC (rev 645)
+++ x86/trunk/packages/yaboot/boot.msg	2005-09-17 03:51:34 UTC (rev 646)
@@ -0,0 +1,2 @@
+LFS-6.2 PPC LiveCD
+===========================================

Added: x86/trunk/packages/yaboot/map.hfs
===================================================================
--- x86/trunk/packages/yaboot/map.hfs	2005-09-17 03:50:52 UTC (rev 645)
+++ x86/trunk/packages/yaboot/map.hfs	2005-09-17 03:51:34 UTC (rev 646)
@@ -0,0 +1,8 @@
+#e	x	c	t	cM
+.gz	Raw	'ddsk'	'DDim'	"Floppy or ramdisk image"
+.b	Raw	'UNIX'	'tbxi'	"Bootstrap"
+yaboot	Raw	'UNIX'	'boot'	"Bootstrap"
+vmlinux	Raw	'UNIX'	'boot'	"Bootstrap"
+.conf	Raw	'UNIX'	'boot'	"Bootstrap"
+.msg	Raw	'UNIX'	'boot'	"Bootstrap"
+*	Raw	'????'	'????'	"Unknown"

Added: x86/trunk/packages/yaboot/ofboot.b
===================================================================
--- x86/trunk/packages/yaboot/ofboot.b	2005-09-17 03:50:52 UTC (rev 645)
+++ x86/trunk/packages/yaboot/ofboot.b	2005-09-17 03:51:34 UTC (rev 646)
@@ -0,0 +1,64 @@
+<CHRP-BOOT>
+<COMPATIBLE>
+MacRISC MacRISC3 MacRISC4
+</COMPATIBLE>
+<DESCRIPTION>
+LFS PPC LiveCD Bootloader
+</DESCRIPTION>
+<BOOT-SCRIPT>
+" screen" output
+load-base release-load-area
+boot cd:,\boot\yaboot
+</BOOT-SCRIPT>
+<OS-BADGE-ICONS>
+1010
+000000000000F8FEACF6000000000000
+0000000000F5FFFFFEFEF50000000000
+00000000002BFAFEFAFCF70000000000
+0000000000F65D5857812B0000000000
+0000000000F5350B2F88560000000000
+0000000000F6335708F8FE0000000000
+00000000005600F600F5FD8100000000
+00000000F9F8000000F5FAFFF8000000
+000000008100F5F50000F6FEFE000000
+000000F8F700F500F50000FCFFF70000
+00000088F70000F50000F5FCFF2B0000
+0000002F582A00F5000008ADE02C0000
+00090B0A35A62B0000002D3B350A0000
+000A0A0B0B3BF60000505E0B0A0B0A00
+002E350B0B2F87FAFCF45F0B2E090000
+00000007335FF82BF72B575907000000
+000000000000ACFFFF81000000000000
+000000000081FFFFFFFF810000000000
+0000000000FBFFFFFFFFAC0000000000
+000000000081DFDFDFFFFB0000000000
+000000000081DD5F83FFFD0000000000
+000000000081DDDF5EACFF0000000000
+0000000000FDF981F981FFFF00000000
+00000000FFACF9F9F981FFFFAC000000
+00000000FFF98181F9F981FFFF000000
+000000ACACF981F981F9F9FFFFAC0000
+000000FFACF9F981F9F981FFFFFB0000
+00000083DFFBF981F9F95EFFFFFC0000
+005F5F5FDDFFFBF9F9F983DDDD5F0000
+005F5F5F5FDD81F9F9E7DF5F5F5F5F00
+0083DD5F5F83FFFFFFFFDF5F835F0000
+000000FBDDDFACFBACFBDFDFFB000000
+000000000000FFFFFFFF000000000000
+0000000000FFFFFFFFFFFF0000000000
+0000000000FFFFFFFFFFFF0000000000
+0000000000FFFFFFFFFFFF0000000000
+0000000000FFFFFFFFFFFF0000000000
+0000000000FFFFFFFFFFFF0000000000
+0000000000FFFFFFFFFFFFFF00000000
+00000000FFFFFFFFFFFFFFFFFF000000
+00000000FFFFFFFFFFFFFFFFFF000000
+000000FFFFFFFFFFFFFFFFFFFFFF0000
+000000FFFFFFFFFFFFFFFFFFFFFF0000
+000000FFFFFFFFFFFFFFFFFFFFFF0000
+00FFFFFFFFFFFFFFFFFFFFFFFFFF0000
+00FFFFFFFFFFFFFFFFFFFFFFFFFFFF00
+00FFFFFFFFFFFFFFFFFFFFFFFFFF0000
+000000FFFFFFFFFFFFFFFFFFFF000000
+</OS-BADGE-ICONS>
+</CHRP-BOOT>

Added: x86/trunk/packages/yaboot/yaboot-1.3.13-fix1.patch
===================================================================
--- x86/trunk/packages/yaboot/yaboot-1.3.13-fix1.patch	2005-09-17 03:50:52 UTC (rev 645)
+++ x86/trunk/packages/yaboot/yaboot-1.3.13-fix1.patch	2005-09-17 03:51:34 UTC (rev 646)
@@ -0,0 +1,14 @@
+diff -Naur yaboot-1.3.13.orig/lib/strstr.c yaboot-1.3.13/lib/strstr.c
+--- yaboot-1.3.13.orig/lib/strstr.c	2001-09-20 09:15:31.000000000 -0400
++++ yaboot-1.3.13/lib/strstr.c	2005-02-20 22:03:10.215796824 -0500
+@@ -76,7 +76,9 @@
+ 	      a = *++haystack;
+ 	      if (a == '\0')
+ 		goto ret0;
+-shloop:	    }
++shloop:	
++		a = a;
++	}
+           while (a != b);
+ 
+ jin:	  a = *++haystack;

Added: x86/trunk/packages/yaboot/yaboot.conf
===================================================================
--- x86/trunk/packages/yaboot/yaboot.conf	2005-09-17 03:50:52 UTC (rev 645)
+++ x86/trunk/packages/yaboot/yaboot.conf	2005-09-17 03:51:34 UTC (rev 646)
@@ -0,0 +1,14 @@
+
+device=cd:
+default=linux
+timeout=100
+
+message=/boot/boot.msg
+
+fgcolor=white
+bgcolor=blue
+
+image=/boot/linux
+	initrd=/boot/initramfs_data.cpio.gz
+	label=linux
+	read-write




More information about the livecd mailing list