Mercurial > hg > aboriginal
annotate sources/configs/powerpc @ 242:c3d2fd8b45cf 0.3.0
New powerpc config to work with qemu.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 01 Nov 2007 13:10:57 -0500 |
parents | d6d53534dff9 |
children | 43554b4b00cf |
rev | line source |
---|---|
226
11e68dfd98dc
Upgrade ppc and sparc to build with 2.6.23. The result doesn't _work_ yet, but it builds.
Rob Landley <rob@landley.net>
parents:
202
diff
changeset
|
1 # Power PC system |
11e68dfd98dc
Upgrade ppc and sparc to build with 2.6.23. The result doesn't _work_ yet, but it builds.
Rob Landley <rob@landley.net>
parents:
202
diff
changeset
|
2 |
11e68dfd98dc
Upgrade ppc and sparc to build with 2.6.23. The result doesn't _work_ yet, but it builds.
Rob Landley <rob@landley.net>
parents:
202
diff
changeset
|
3 # XXX Status: Builds but doesn't run under qemu system emulation, due to Open Firmware being |
11e68dfd98dc
Upgrade ppc and sparc to build with 2.6.23. The result doesn't _work_ yet, but it builds.
Rob Landley <rob@landley.net>
parents:
202
diff
changeset
|
4 # evil and workarounds not quite making it into the linux kernel tree yet. This is as much a qemu |
11e68dfd98dc
Upgrade ppc and sparc to build with 2.6.23. The result doesn't _work_ yet, but it builds.
Rob Landley <rob@landley.net>
parents:
202
diff
changeset
|
5 # problem as a Linux problem, supply the appropriate kernel .config and it should run on real |
11e68dfd98dc
Upgrade ppc and sparc to build with 2.6.23. The result doesn't _work_ yet, but it builds.
Rob Landley <rob@landley.net>
parents:
202
diff
changeset
|
6 # hardware just fine. |
11e68dfd98dc
Upgrade ppc and sparc to build with 2.6.23. The result doesn't _work_ yet, but it builds.
Rob Landley <rob@landley.net>
parents:
202
diff
changeset
|
7 |
140
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
8 KARCH=powerpc |
146 | 9 KERNEL_PATH=arch/${KARCH}/boot/zImage |
140
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
10 GCC_FLAGS= |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
11 BINUTILS_FLAGS= |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
12 QEMU_TEST= #ppc |
155
ce1ca3d0f95b
Put zImage-$ARCH in build directory, not mini-native-$ARCH, and eliminate
Rob Landley <rob@landley.net>
parents:
146
diff
changeset
|
13 emulator_command() |
140
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
14 { |
155
ce1ca3d0f95b
Put zImage-$ARCH in build directory, not mini-native-$ARCH, and eliminate
Rob Landley <rob@landley.net>
parents:
146
diff
changeset
|
15 echo qemu-system-ppc -M prep -nographic -hda "$1" \ |
233
d6d53534dff9
Use new powerpc qemu target and boot rom.
Rob Landley <rob@landley.net>
parents:
226
diff
changeset
|
16 -kernel "$2" -append "'$3 root=/dev/hda console=ttyS0'" \ |
d6d53534dff9
Use new powerpc qemu target and boot rom.
Rob Landley <rob@landley.net>
parents:
226
diff
changeset
|
17 -L ../sources/toys |
140
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
18 } |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
19 |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
20 # Write out Linux kernel .config file |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
21 |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
22 cat > "${WORK}"/miniconfig-linux << 'EOF' |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
23 CONFIG_SWAP=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
24 CONFIG_IKCONFIG=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
25 CONFIG_IKCONFIG_PROC=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
26 CONFIG_LSF=y |
242
c3d2fd8b45cf
New powerpc config to work with qemu.
Rob Landley <rob@landley.net>
parents:
233
diff
changeset
|
27 CONFIG_PPC_QEMU=y |
140
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
28 CONFIG_BINFMT_ELF=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
29 CONFIG_PM=y |
242
c3d2fd8b45cf
New powerpc config to work with qemu.
Rob Landley <rob@landley.net>
parents:
233
diff
changeset
|
30 CONFIG_ISA=y |
140
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
31 CONFIG_NET=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
32 CONFIG_PACKET=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
33 CONFIG_UNIX=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
34 CONFIG_INET=y |
226
11e68dfd98dc
Upgrade ppc and sparc to build with 2.6.23. The result doesn't _work_ yet, but it builds.
Rob Landley <rob@landley.net>
parents:
202
diff
changeset
|
35 CONFIG_BLK_DEV=y |
140
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
36 CONFIG_BLK_DEV_LOOP=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
37 CONFIG_IDE=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
38 CONFIG_BLK_DEV_IDE=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
39 CONFIG_BLK_DEV_IDEDISK=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
40 CONFIG_IDE_GENERIC=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
41 CONFIG_BLK_DEV_IDEPCI=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
42 CONFIG_BLK_DEV_GENERIC=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
43 CONFIG_NETDEVICES=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
44 CONFIG_NET_ETHERNET=y |
242
c3d2fd8b45cf
New powerpc config to work with qemu.
Rob Landley <rob@landley.net>
parents:
233
diff
changeset
|
45 CONFIG_MII=y |
c3d2fd8b45cf
New powerpc config to work with qemu.
Rob Landley <rob@landley.net>
parents:
233
diff
changeset
|
46 CONFIG_NET_ISA=y |
c3d2fd8b45cf
New powerpc config to work with qemu.
Rob Landley <rob@landley.net>
parents:
233
diff
changeset
|
47 CONFIG_NE2000=y |
140
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
48 CONFIG_SERIAL_8250=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
49 CONFIG_SERIAL_8250_CONSOLE=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
50 CONFIG_EXT2_FS=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
51 CONFIG_EXT3_FS=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
52 EOF |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
53 |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
54 # Write out uClibc .config file. |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
55 cat > "${WORK}"/miniconfig-uClibc << 'EOF' |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
56 TARGET_powerpc=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
57 ARCH_USE_MMU=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
58 UCLIBC_HAS_FLOATS=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
59 UCLIBC_HAS_FPU=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
60 DOPIC=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
61 HAVE_SHARED=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
62 LDSO_LDD_SUPPORT=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
63 LDSO_CACHE_SUPPORT=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
64 UCLIBC_STATIC_LDCONFIG=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
65 LDSO_RUNPATH=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
66 UCLIBC_CTOR_DTOR=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
67 UCLIBC_HAS_THREADS=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
68 LINUXTHREADS_OLD=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
69 UCLIBC_HAS_LFS=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
70 MALLOC_GLIBC_COMPAT=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
71 UCLIBC_DYNAMIC_ATEXIT=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
72 UCLIBC_SUSV3_LEGACY=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
73 UCLIBC_HAS_SHADOW=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
74 UCLIBC_HAS___PROGNAME=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
75 UNIX98PTY_ONLY=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
76 ASSUME_DEVPTS=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
77 UCLIBC_HAS_TM_EXTENSIONS=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
78 UCLIBC_HAS_TZ_CACHING=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
79 UCLIBC_HAS_TZ_FILE=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
80 UCLIBC_HAS_TZ_FILE_READ_MANY=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
81 UCLIBC_HAS_RPC=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
82 UCLIBC_HAS_STRING_GENERIC_OPT=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
83 UCLIBC_HAS_STRING_ARCH_OPT=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
84 UCLIBC_HAS_CTYPE_TABLES=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
85 UCLIBC_HAS_CTYPE_SIGNED=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
86 UCLIBC_HAS_STDIO_GETC_MACRO=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
87 UCLIBC_HAS_STDIO_PUTC_MACRO=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
88 UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
89 UCLIBC_HAS_ERRNO_MESSAGES=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
90 UCLIBC_HAS_SIGNUM_MESSAGES=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
91 UCLIBC_HAS_GNU_GETOPT=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
92 UCLIBC_HAS_GNU_GETSUBOPT=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
93 UCLIBC_HAS_REGEX=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
94 UCLIBC_HAS_REGEX_OLD=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
95 UCLIBC_HAS_FNMATCH=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
96 UCLIBC_HAS_FNMATCH_OLD=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
97 UCLIBC_HAS_GLOB=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
98 UCLIBC_HAS_GNU_GLOB=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
99 UCLIBC_BUILD_RELRO=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
100 UCLIBC_BUILD_NOEXECSTACK=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
101 DOSTRIP=y |
6cfa6ad0d3ce
Add initial powerpc config. Doesn't currently work with qemu.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
102 EOF |