Browse Source

Stefan Fiedler:


			
			
				rocklinux
			
			
		
Stefan Fiedler 19 years ago
parent
commit
b81d41a409
3 changed files with 37 additions and 1 deletions
  1. +28
    -0
      package/powerpc/yaboot/cross-compile.patch
  2. +8
    -0
      package/powerpc/yaboot/yaboot.conf
  3. +1
    -1
      package/powerpc/yaboot/yaboot.desc

+ 28
- 0
package/powerpc/yaboot/cross-compile.patch

@ -0,0 +1,28 @@
--- ./Makefile~ 2006-03-16 19:26:56.000000000 +0100
+++ ./Makefile 2006-03-16 19:36:00.000000000 +0100
@@ -26,7 +26,7 @@
# Set this to the prefix of your cross-compiler, if you have one.
# Else leave it empty.
#
-CROSS =
+CROSS = powerpc-unknown-linux-gnu-
# The flags for the yaboot binary.
#
--- yaboot-1.3.13/Makefile~ 2006-03-16 19:38:24.000000000 +0100
+++ yaboot-1.3.13/Makefile 2006-03-16 19:40:45.000000000 +0100
@@ -172,10 +172,10 @@
release: docs bindist clean
strip: all
- strip second/yaboot
- strip --remove-section=.comment second/yaboot
- strip util/addnote
- strip --remove-section=.comment --remove-section=.note util/addnote
+ ${CROSS}strip second/yaboot
+ ${CROSS}strip --remove-section=.comment second/yaboot
+ ${CROSS}strip util/addnote
+ ${CROSS}strip --remove-section=.comment --remove-section=.note util/addnote
install: all strip
install -d -o root -g root -m 0755 ${ROOT}/etc/

+ 8
- 0
package/powerpc/yaboot/yaboot.conf

@ -32,4 +32,12 @@ yaboot_pi(){
}
hook_add postinstall 3 "yaboot_pi"
hook_add premake 3 "yaboot_premake"
yaboot_premake() {
if [ $ROCKCFG_CROSSBUILD = 1 ] ; then
# tell yaboot how to cross-compile
sed -i "s,^ROOT =,ROOT = $xroot," Makefile
sed -i "s,^CROSS =,CROSS = $archprefix," Makefile
fi
}

+ 1
- 1
package/powerpc/yaboot/yaboot.desc

@ -40,6 +40,6 @@
[L] GPL
[S] Stable
[V] 1.3.13
[P] X -?---5---9 183.800
[P] X -1---5---9 183.800
[D] 1961696557 yaboot-1.3.13.tar.gz http://www.penguinppc.org/projects/yaboot/

Loading…
Cancel
Save