Builder/MultiarchSupport Was largely based on this. PowerPC is no longer actively developed so this page is no longer in use.

This includes some 'things of note' from my work with BuilderPPC

Theres no syslinux on ppc, remove it from your 'install this' packages

went through and changed a stack of 386 -> powerpc references. i have seen stuff that still wont build, but i'll get there another day.

This is a crude way to show it, but heres my current svn diff, about 150 lines. Once you apply teh diff, unchange my settings and get the dependancies correct, its much easier.

extra dependancies for PPC: gnome-panel (still) needs dependancies from -updates or -security.

FYI: i'm trying to merge these changes sanely into my svn.

---

kgoetz@gendoikari:~/builder$ svn diff
Index: do-update
===================================================================
--- do-update (revision 139)
+++ do-update (working copy)
 -111,7 +111,7 

                for n in `seq 100 -1 20`; do
                        export KERNEL_VERSIONPART=$n    #Used by ./gen-kernel
                        if [ $FOUND -eq 0 ]; then

- ensure_updated linux-image-2.6.15-$n-386 linux-image-2.6.15-$n-386 $i ./gen-kernel $KERNEL_VERSION
+ ensure_updated linux-image-2.6.15-$n-powerpc linux-image-2.6.15-$n-powerpc $i ./gen-kernel $KERNEL_VERSION

                        else
                                #Only keep one
                                RELEASE=$i ./remove-kernel

Index: gen-kernel
===================================================================
--- gen-kernel (revision 139)
+++ gen-kernel (working copy)
 -27,7 +27,7 

 cd $WORKINGDIR

 #$APTGET source linux-image-2.6.15-$KERNEL_VERSIONPART-386$VERSION

-$APTGET source linux-image-2.6.15-$KERNEL_VERSIONPART-386
+$APTGET source linux-image-2.6.15-$KERNEL_VERSIONPART-powerpc

 function clean_kconfig {
        #$1 = filename $2 = things to remove

 -317,6 +317,12 

 sed -i '/for i in "\$DEBIAN_SRCTOP"\/debian\/firmware\/\*\/\[\[:lower:\]\]\*; do/,/done/d;
        ' debian/post-install

+# These 5 lines should make the kernel build. it was faililng on this driver before
+sed -i "s/CONFIG_FB_CT65550=y/CONFIG_FB_CT65550=n/g" arch/powerpc/configs/common_defconfig
+sed -i "s/CONFIG_FB_CT65550=y/CONFIG_FB_CT65550=n/g" arch/powerpc/configs/ppc_defconfig
+sed -i "s/CONFIG_FB_CT65550=y/CONFIG_FB_CT65550=n/g" arch/ppc/configs/common_defconfig
+sed -i "s/CONFIG_FB_CT65550=y/CONFIG_FB_CT65550=n/g" arch/ppc/configs/pmac_defconfig
+sed -i "s/CONFIG_FB_CT65550=y/CONFIG_FB_CT65550=n/g" debian/config/powerpc/config

Index: gen-meta
===================================================================
--- gen-meta (revision 139)
+++ gen-meta (working copy)
 -31,11 +31,11 

 for i in minimal standard desktop live; do
        n=META_${i}_REMOVE
        for p in ${!n}; do

- sed -i "/$p$/d" ${i}-i386 <<BR>>+ sed -i "/$p$/d" ${i}-powerpc

        done;
        n=META_${i}_ADD
        for p in ${!n}; do

- echo "$p" >> ${i}-i386
+ echo "$p" >> ${i}-powerpc

        done;
 done

Index: gen-kmeta
===================================================================
--- gen-kmeta (revision 139)
+++ gen-kmeta (working copy)
 -34,11 +34,11 

 for i in desktop live; do
        n=META_KDE_${i}_REMOVE
        for p in ${!n}; do

- sed -i "/$p$/d" ${i}-i386 <<BR>>+ sed -i "/$p$/d" ${i}-powerpc

        done;
        n=META_KDE_${i}_ADD
        for p in ${!n}; do

- echo "$p" >> ${i}-i386
+ echo "$p" >> ${i}-powerpc

        done;
 done;

Index: gen-livecd
===================================================================
--- gen-livecd (revision 139)
+++ gen-livecd (working copy)
 -68,7 +68,7 

 }

 cp -r cdebootstrap/woody/ cdebootstrap/$RELEASE

-cdebootstrap -v --arch=i386 --flavour=standard -c cdebootstrap/ $RELEASE chroot $REPOAPT
+cdebootstrap -v --arch=powerpc --flavour=standard -c cdebootstrap/ $RELEASE chroot $REPOAPT

 #Now have full chroot

 rm -r chroot/var/cache/bootstrap

 -89,7 +89,7 

 chroots "apt-get update"

 echo "do_initrd = Yes" > chroot/etc/kernel-img.conf

-chroots "apt-get install --yes syslinux linux-image-386 casper udev debconf-utils"
+chroots "apt-get install --yes linux-image-powerpc casper udev debconf-utils"

 #Hack
 sed -i -e "s#^USERNAME=.*#USERNAME=$LIVECDUSERNAME#;"  -171,7 +171,6 

 cp chroot/boot/vmlinuz-* cdroot/image/isolinux/vmlinuz
 cp chroot/boot/initrd.img-* cdroot/image/isolinux/initrd.gz

-cp chroot/boot/memtest86+.bin cdroot/image/isolinux/memtest

 mkisofs -o $REPODST/cdimage/$LIVECD_ISO_PREFIX-livecd-$RELEASE-$LIVECD_VERSION.iso -r -J -l                 -V "$LIVECDNAME LiveCD $LIVECD_VERSION" -b isolinux/isolinux.bin Index: gen-ubiquity

===================================================================
--- gen-ubiquity (revision 139)
+++ gen-ubiquity (working copy)
 -112,7 +112,7 

 Site: \${CC}.archive.$DOMAIN
 Type: Push-Secondary
 Archive-http: /$DISTRONAME_L/

-Archive-architecture: i386
+Archive-architecture: powerpc

 Country: \${UCC} \${CNAME}
 EOF

Index: config
===================================================================
--- config (revision 139)
+++ config (working copy)
 -4,7 +4,7 

 # For kde download before anything libbogl-dev # Chris Fernandez

 #Where to get upstream packages from. Currently only supports http

-MIRROR=http://localhost/~bbrazil/srv/ubuntu
+MIRROR=http://127.0.0.1/ubuntu

 MIRRORDIST=dapper

 #What you want to call your distribution

 -20,7 +20,7 

 FIREFOX_NAME=BurningDog

 TAGLINE="Free as in Freedom"

-SIGNINGKEY=91854607
+SIGNINGKEY=D4CA8476

 DISTRONAME_L=`echo $DISTRONAME | tr 'A-Z' 'a-z'`

 -34,10 +34,10 

 BITTORRENT_ANNOUNCE_LIST=''

 #Where things go on the filesystem

-BASEDIR=/srv/gnewsense
+BASEDIR=/mnt/storage

 REPODST=$BASEDIR/$DISTRONAME_L
 #Where the buildscripts and livecd pull sources from

-REPOAPT=http://127.0.0.1/~bbrazil/srv/gnewsense/gnewsense
+REPOAPT=http://127.0.0.1/$DISTRONAME_L

 #Do you want to enable backports and updates?
 UPDATES=1

Index: gen-repo
===================================================================
--- gen-repo (revision 139)
+++ gen-repo (working copy)
 -15,7 +15,7 

 Label: $DISTRONAME
 Codename: ${RELEASE}-security
 Update: Upstream-security

-Architectures: i386 source
+Architectures: powerpc source

 Components: main universe
 UDebComponents: main
 SignWith: $SIGNINGKEY

 -25,7 +25,7 

 Label: $DISTRONAME
 Codename: $RELEASE
 Update: Upstream

-Architectures: i386 source
+Architectures: powerpc source

 Components: main universe
 UDebComponents: main
 SignWith: $SIGNINGKEY

 -59,7 +59,7 

 Label: $DISTRONAME
 Codename: $RELEASE-updates
 Update: Upstream-updates

-Architectures: i386 source
+Architectures: powerpc source

 Components: main universe
 UDebComponents: main
 SignWith: $SIGNINGKEY

 -82,7 +82,7 

 Label: $DISTRONAME
 Codename: $RELEASE-backports
 Update: Upstream-backports

-Architectures: i386 source
+Architectures: powerpc source

 Components: main universe
 UDebComponents: main
 SignWith: $SIGNINGKEY

Builder/BuilderOnPowerPc (last edited 2013-10-13 03:34:49 by kgoetz)