summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorraj <raj@FreeBSD.org>2008-09-03 15:52:05 +0000
committerraj <raj@FreeBSD.org>2008-09-03 15:52:05 +0000
commitf2f831ec34bac2f429c2d4f0cca67bd7a0e549d8 (patch)
tree0863996505344198b549efa81e16e0f04c513f13 /sys/boot
parentc96f761ec1a0290b67e5d8a5396d883187b67221 (diff)
downloadFreeBSD-src-f2f831ec34bac2f429c2d4f0cca67bd7a0e549d8.zip
FreeBSD-src-f2f831ec34bac2f429c2d4f0cca67bd7a0e549d8.tar.gz
Make metadata.c shared across all platforms using U-Boot.
This will [soon] be needed for ARM.
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/powerpc/uboot/Makefile2
-rw-r--r--sys/boot/uboot/common/Makefile.inc2
-rw-r--r--sys/boot/uboot/common/metadata.c (renamed from sys/boot/powerpc/uboot/metadata.c)3
3 files changed, 4 insertions, 3 deletions
diff --git a/sys/boot/powerpc/uboot/Makefile b/sys/boot/powerpc/uboot/Makefile
index defac75..efb401e 100644
--- a/sys/boot/powerpc/uboot/Makefile
+++ b/sys/boot/powerpc/uboot/Makefile
@@ -7,7 +7,7 @@ INSTALLFLAGS= -b
NO_MAN=
# Architecture-specific loader code
-SRCS= start.S conf.c metadata.c vers.c
+SRCS= start.S conf.c vers.c
LOADER_DISK_SUPPORT?= no
LOADER_UFS_SUPPORT?= no
diff --git a/sys/boot/uboot/common/Makefile.inc b/sys/boot/uboot/common/Makefile.inc
index 5d20372..e12804c 100644
--- a/sys/boot/uboot/common/Makefile.inc
+++ b/sys/boot/uboot/common/Makefile.inc
@@ -1,3 +1,3 @@
# $FreeBSD$
-SRCS+= main.c
+SRCS+= main.c metadata.c
diff --git a/sys/boot/powerpc/uboot/metadata.c b/sys/boot/uboot/common/metadata.c
index c4342ed..9c8ce94 100644
--- a/sys/boot/powerpc/uboot/metadata.c
+++ b/sys/boot/uboot/common/metadata.c
@@ -1,6 +1,7 @@
/*-
* Copyright (c) 1998 Michael Smith <msmith@freebsd.org>
- * Copyright (C) 2007-2008 Semihalf, Piotr Kruszynski <ppk@semihalf.com>
+ * Copyright (C) 2006 Semihalf, Piotr Kruszynski <ppk@semihalf.com>
+ * Copyright (C) 2007-2008 Semihalf, Rafal Jaworowski <raj@semihalf.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
OpenPOWER on IntegriCloud