[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#383135: base-installer: Please support the ppc64 architecture



On 06-Aug-15 14:14, Frans Pop wrote:
> Even if kernel selection is simple, please also provide at least one
> appropriate test case for the arch.

OK. 

I created a new patch (see below) which includes a test case for 
a PowerMac G5 CPU in kernel/tests/ppc64.

Regards
Andreas Jochens

diff -urN ../tmp-orig/base-installer-1.64/kernel/Makefile ./kernel/Makefile
--- ../tmp-orig/base-installer-1.64/kernel/Makefile	2005-11-15 19:14:01.000000000 +0000
+++ ./kernel/Makefile	2006-08-15 13:35:33.000000000 +0000
@@ -1,4 +1,4 @@
-ARCHES = alpha amd64 arm hppa i386 ia64 m68k mips mipsel powerpc s390 sparc
+ARCHES = alpha amd64 arm hppa i386 ia64 m68k mips mipsel powerpc ppc64 s390 sparc
 
 test:
 	@STATUS=0; \
diff -urN ../tmp-orig/base-installer-1.64/kernel/ppc64.sh ./kernel/ppc64.sh
--- ../tmp-orig/base-installer-1.64/kernel/ppc64.sh	1970-01-01 00:00:00.000000000 +0000
+++ ./kernel/ppc64.sh	2006-08-15 13:51:00.000000000 +0000
@@ -0,0 +1,13 @@
+arch_get_kernel_flavour () {
+        echo "$ARCH"
+}
+
+arch_check_usable_kernel () {
+        if expr "$1" : ".*-$2.*" >/dev/null; then return 0; fi
+        return 1
+}
+
+arch_get_kernel () {
+        echo "linux-image-$KERNEL_MAJOR-$1"
+}
+
diff -urN ../tmp-orig/base-installer-1.64/kernel/tests/ppc64/g5.cpuinfo ./kernel/tests/ppc64/g5.cpuinfo
--- ../tmp-orig/base-installer-1.64/kernel/tests/ppc64/g5.cpuinfo	1970-01-01 00:00:00.000000000 +0000
+++ ./kernel/tests/ppc64/g5.cpuinfo	2006-08-15 13:39:15.000000000 +0000
@@ -0,0 +1,13 @@
+processor	: 0
+cpu		: PPC970, altivec supported
+clock		: 1800.000000MHz
+revision	: 2.2 (pvr 0039 0202)
+
+timebase	: 33333333
+platform	: PowerMac
+machine		: PowerMac7,2
+motherboard	: PowerMac7,2 MacRISC4 Power Macintosh
+detected as	: 336 (PowerMac G5)
+pmac flags	: 00000000
+L2 cache	: 512K unified
+pmac-generation	: NewWorld
diff -urN ../tmp-orig/base-installer-1.64/kernel/tests/ppc64/g5.test ./kernel/tests/ppc64/g5.test
--- ../tmp-orig/base-installer-1.64/kernel/tests/ppc64/g5.test	1970-01-01 00:00:00.000000000 +0000
+++ ./kernel/tests/ppc64/g5.test	2006-08-15 13:56:10.000000000 +0000
@@ -0,0 +1,10 @@
+subarch powermac_newworld
+cpuinfo g5.cpuinfo
+majors 2.6
+flavour ppc64
+kernel-2.6 linux-image-2.6-ppc64
+usable \
+  linux-image-2.6-ppc64
+unusable \
+  linux-image-2.6-powerpc \
+  linux-image-2.6-powerpc64



Reply to: