Re: anyone build 2.3.42 for ppc?

4 messages, 4 authors, 2000-02-07 · open the first message on its own page

Re: anyone build 2.3.42 for ppc?

From: Chas Williams <hidden>
Date: 2000-02-05 20:04:03

In message [off-list ref],Jeff Garzik writes:
Ah!  The solution:  follow the example in other makefiles, and create
'macintosh.o' not 'macintosh.a'.  That is the only problem...
ok then, the patch that 'correctly' adds nvram support back into 2.3.42
would look more like:
--- Makefile.000	Sat Feb  5 14:28:42 2000
+++ Makefile	Sat Feb  5 14:28:53 2000
@@ -203,7 +203,7 @@
 endif

 ifdef CONFIG_PPC
-DRIVERS := $(DRIVERS) drivers/macintosh/macintosh.a
+DRIVERS := $(DRIVERS) drivers/macintosh/macintosh.o
 endif

 ifeq ($(CONFIG_ISAPNP),y)
--- drivers/macintosh/Makefile.000	Sat Feb  5 14:25:10 2000
+++ drivers/macintosh/Makefile	Sat Feb  5 14:44:01 2000
@@ -12,16 +12,16 @@
 SUB_DIRS     :=
 MOD_SUB_DIRS := $(SUB_DIRS)

-L_TARGET := macintosh.a
-L_OBJS   :=
+O_TARGET := macintosh.o
+O_OBJS   :=
 M_OBJS   :=

 ifeq ($(CONFIG_PMAC_PBOOK),y)
-  L_OBJS += mediabay.o
+  O_OBJS += mediabay.o
 endif

 ifeq ($(CONFIG_MAC_SERIAL),y)
-  L_OBJS += macserial.o
+  O_OBJS += macserial.o
 else
   ifeq ($(CONFIG_MAC_SERIAL),m)
     M_OBJS += macserial.o
@@ -29,7 +29,7 @@
 endif

 ifeq ($(CONFIG_NVRAM),y)
-  L_OBJS += nvram.o
+  O_OBJS += nvram.o
 else
   ifeq ($(CONFIG_NVRAM),m)
     M_OBJS += nvram.o
@@ -37,35 +37,35 @@
 endif

 ifdef CONFIG_ADB
-  LX_OBJS  := adb.o
+  OX_OBJS  := adb.o
 endif

 ifdef CONFIG_ADB_KEYBOARD
-  L_OBJS += mac_keyb.o
+  O_OBJS += mac_keyb.o
 endif

 ifdef CONFIG_ADB_MACII
-  L_OBJS += via-macii.o
+  O_OBJS += via-macii.o
 endif

 ifdef CONFIG_ADB_MACIISI
-  L_OBJS += via-maciisi.o
+  O_OBJS += via-maciisi.o
 endif

 ifdef CONFIG_ADB_CUDA
-  L_OBJS += via-cuda.o
+  O_OBJS += via-cuda.o
 endif

 ifdef CONFIG_ADB_IOP
-  L_OBJS += adb-iop.o
+  O_OBJS += adb-iop.o
 endif

 ifdef CONFIG_ADB_PMU
-  L_OBJS += via-pmu.o
+  O_OBJS += via-pmu.o
 endif

 ifdef CONFIG_ADB_MACIO
-  L_OBJS += macio-adb.o
+  O_OBJS += macio-adb.o
 endif

 include $(TOPDIR)/Rules.make
--- drivers/macintosh/nvram.c.000	Sat Feb  5 08:43:10 2000
+++ drivers/macintosh/nvram.c	Sat Feb  5 09:12:39 2000
@@ -102,14 +102,17 @@
 	&nvram_fops
 };

-int nvram_init(void)
+int __init nvram_init(void)
 {
 	printk(KERN_INFO "Macintosh non-volatile memory driver v%s\n",
 		NVRAM_VERSION);
 	misc_register(&nvram_dev);
 	return 0;
 }
-#ifdef MODULE
+
+#ifndef MODULE
+__initcall(nvram_init);
+#else
 int init_module (void)
 {
         return( nvram_init() );
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: anyone build 2.3.42 for ppc?

From: Brad Midgley <hidden>
Date: 2000-02-07 08:29:02

you guys are having great luck. i haven't been able to get past

In file included from init/main.c:33:
/usr/src/linux/include/linux/pci.h:318: parse error before `dma_addr_t'
/usr/src/linux/include/linux/pci.h:318: warning: no semicolon at end of struct or union
/usr/src/linux/include/linux/pci.h:346: parse error before `}'

this is the plain common_config on an rs/6000. using gcc 2.95.2, glibc
2.1.3-0j.

Brad
brad@turbolinux.com | http://www.turbolinux.com/~brad/


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: anyone build 2.3.42 for ppc?

From: Martin Costabel <hidden>
Date: 2000-02-07 09:28:18

Brad Midgley wrote:
you guys are having great luck. i haven't been able to get past

In file included from init/main.c:33:
/usr/src/linux/include/linux/pci.h:318: parse error before `dma_addr_t'
/usr/src/linux/include/linux/pci.h:318: warning: no semicolon at end of struct or union
/usr/src/linux/include/linux/pci.h:346: parse error before `}'

this is the plain common_config on an rs/6000. using gcc 2.95.2, glibc
2.1.3-0j.
But you *did* apply AJoshi's patch which includes the line
typedef u32 dma_addr_t;
into /include/asm-ppc/types.h and several #include <linux/types.h> at
various places, didn't you?

--
Martin

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: anyone build 2.3.42 for ppc?

From: Dan Burcaw <hidden>
Date: 2000-02-07 14:46:45

Brad,

Take a look at Ani's 2.3.42 patch. I believe it fixes this.
you guys are having great luck. i haven't been able to get past

In file included from init/main.c:33:
/usr/src/linux/include/linux/pci.h:318: parse error before `dma_addr_t'
/usr/src/linux/include/linux/pci.h:318: warning: no semicolon at end of struct or union
/usr/src/linux/include/linux/pci.h:346: parse error before `}'

this is the plain common_config on an rs/6000. using gcc 2.95.2, glibc
2.1.3-0j.
Regards,
Dan

Terra Soft Solutions, Inc.
 Yellow Dog Linux
 "The Ultimate Companion for a Dedicated Server"
 http://www.yellowdoglinux.com/

 Black Lab Linux
 Advanced Workstations and Parallel Solutions
 http://www.blacklablinux.com/


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help