patch-2.4.23 linux-2.4.23/arch/ppc/boot/simple/misc-embedded.c

Next file: linux-2.4.23/arch/ppc/boot/utils/mkimage.wrapper
Previous file: linux-2.4.23/arch/ppc/boot/simple/misc-44x.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/arch/ppc/boot/simple/misc-embedded.c linux-2.4.23/arch/ppc/boot/simple/misc-embedded.c
@@ -16,6 +16,7 @@
 #include <linux/types.h>
 #include <linux/elf.h>
 #include <asm/bootinfo.h>
+#include <asm/ibm4xx.h>
 #include <asm/mmu.h>
 #include <asm/mpc8xx.h>
 #include <asm/mpc8260.h>
@@ -78,6 +79,14 @@
 extern void gunzip(void *, int, unsigned char *, int *);
 extern void embed_config(bd_t **bp);
 
+/* Weak function for boards which don't need to build the
+ * board info struct because they are using PPCBoot/U-Boot.
+ */
+void __attribute__ ((weak))
+embed_config(bd_t **bdp)
+{
+}
+
 unsigned long
 load_kernel(unsigned long load_addr, int num_words, unsigned long cksum,
 		bd_t *bp)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)