diff --git a/package/powerpc/yaboot/cross-compile.patch b/package/powerpc/yaboot/cross-compile.patch new file mode 100644 index 000000000..07aa0f2ac --- /dev/null +++ b/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/ diff --git a/package/powerpc/yaboot/yaboot.conf b/package/powerpc/yaboot/yaboot.conf index 70c65bad7..68af8bc94 100644 --- a/package/powerpc/yaboot/yaboot.conf +++ b/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 +} diff --git a/package/powerpc/yaboot/yaboot.desc b/package/powerpc/yaboot/yaboot.desc index 3213f8125..972741f81 100644 --- a/package/powerpc/yaboot/yaboot.desc +++ b/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/