head	1.5;
access;
symbols
	RELENG_8_4:1.4.0.2
	RELENG_9_1_0_RELEASE:1.3.2.1.4.2
	RELENG_9_1:1.3.2.1.0.4
	RELENG_9_1_BP:1.3.2.1
	RELENG_8_3_0_RELEASE:1.2.2.1.8.1
	RELENG_8_3:1.2.2.1.0.8
	RELENG_8_3_BP:1.2.2.1
	RELENG_9_0_0_RELEASE:1.3.2.1.2.1
	RELENG_9_0:1.3.2.1.0.2
	RELENG_9_0_BP:1.3.2.1
	RELENG_9:1.3.0.2
	RELENG_9_BP:1.3
	RELENG_8_2_0_RELEASE:1.2.2.1.6.1
	RELENG_8_2:1.2.2.1.0.6
	RELENG_8_2_BP:1.2.2.1
	RELENG_8_1_0_RELEASE:1.2.2.1.4.1
	RELENG_8_1:1.2.2.1.0.4
	RELENG_8_1_BP:1.2.2.1
	RELENG_8_0_0_RELEASE:1.2.2.1.2.1
	RELENG_8_0:1.2.2.1.0.2
	RELENG_8_0_BP:1.2.2.1
	RELENG_8:1.2.0.2
	RELENG_8_BP:1.2;
locks; strict;
comment	@# @;


1.5
date	2013.06.03.00.36.28;	author svnexp;	state Exp;
branches;
next	1.4;

1.4
date	2012.11.17.01.51.14;	author svnexp;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	2010.08.23.22.24.11;	author imp;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	2008.10.07.16.39.17;	author sam;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	2008.10.06.19.38.10;	author jhay;	state Exp;
branches;
next	;

1.4.2.1
date	2012.11.17.01.51.14;	author svnexp;	state dead;
branches;
next	1.4.2.2;

1.4.2.2
date	2013.03.28.13.04.00;	author svnexp;	state Exp;
branches;
next	;

1.3.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.3.2.1.2.1
	1.3.2.1.4.1;
next	1.3.2.2;

1.3.2.2
date	2012.11.17.11.36.46;	author svnexp;	state Exp;
branches;
next	;

1.3.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.3.2.1.2.2;

1.3.2.1.2.2
date	2012.11.17.08.36.45;	author svnexp;	state Exp;
branches;
next	;

1.3.2.1.4.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.3.2.1.4.2;

1.3.2.1.4.2
date	2012.11.17.08.47.35;	author svnexp;	state Exp;
branches;
next	;

1.2.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.2.2.1.2.1
	1.2.2.1.4.1
	1.2.2.1.6.1
	1.2.2.1.8.1;
next	1.2.2.2;

1.2.2.2
date	2012.11.17.10.36.26;	author svnexp;	state Exp;
branches;
next	;

1.2.2.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.2.2.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.2.2.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.2.2.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.2.2.1.8.2;

1.2.2.1.8.2
date	2012.11.17.08.25.06;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.5
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/251250
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@#  $FreeBSD: head/sys/boot/arm/ixp425/boot2/Makefile 251250 2013-06-02 11:44:23Z tijl $

# We get a lot of the std lib functions from here.
.PATH: ${.CURDIR}/../../at91/libat91

# Enable to get debug msgs
#DEBUG=yes

# Hack to search through the kernel for ufs:ad0s1a and replace it with
# the correct one for the active slice/partition.
FIXUP_BOOT_DRV=yes

P=boot2
FILES=${P}
SRCS=arm_init.S boot2.c ${BOOT_FLAVOR:tl}_board.c
SRCS+=memchr.c memcmp.c memcpy.c memmem.c memset.c printf.c strcmp.c strcpy.c
SRCS+=strlen.c ashldi3.c divsi3.S muldi3.c
NO_MAN=

KERNPHYSADDR=0x180000
KERNVIRTADDR=${KERNPHYSADDR}
BOOT_STACK=0x200000-4
M=${MACHINE}
LDFLAGS=-e ${KERNPHYSADDR} -EB -T ldscript.${M}
OBJS+=  ${SRCS:N*.h:R:S/$/.o/g}
S=${.CURDIR}/../../../..

CFLAGS+= \
	-DBOOT_STACK=${BOOT_STACK} \
	-I${.CURDIR}/../../../common \
	-I${.CURDIR}

.if defined(FIXUP_BOOT_DRV)
CFLAGS+=-DFIXUP_BOOT_DRV
.endif
.if defined(DEBUG)
CFLAGS+=-DDEBUG
.endif

ldscript.$M:	$S/conf/ldscript.$M
	cat $S/conf/ldscript.$M|sed s/KERNPHYSADDR/${KERNPHYSADDR}/g| \
	  sed s/KERNVIRTADDR/${KERNVIRTADDR}/g | \
	  sed s/" + SIZEOF_HEADERS"// > ldscript.$M

${P}:	ldscript.$M

CLEANFILES+=ldscript.$M

memchr.c:	$S/../lib/libc/string/memchr.c
	sed -e 's/string\.h/lib.h/' < $S/../lib/libc/string/memchr.c > \
	  ${.TARGET}

memmem.c:	$S/../lib/libc/string/memmem.c
	sed -e 's/string\.h/lib.h/' < $S/../lib/libc/string/memmem.c > \
	  ${.TARGET}

CLEANFILES+=memchr.c memmem.c

ashldi3.o:	$S/libkern/ashldi3.c
	${CC} -c ${CFLAGS} -D_KERNEL -o ${.TARGET} ${.IMPSRC}

divsi3.o:	$S/libkern/${M}/divsi3.S
	${CC} -c ${CFLAGS} -D_KERNEL -o ${.TARGET} ${.IMPSRC}

muldi3.o:	$S/libkern/${M}/muldi3.c
	${CC} -c ${CFLAGS} -D_KERNEL -o ${.TARGET} ${.IMPSRC}

inflate.c:	$S/kern/inflate.c
	sed -e 's/extern void putstr (char/extern void putstr (const char/' < \
	    $S/kern/inflate.c > ${.TARGET}

CLEANFILES+=inflate.c

.include <bsd.prog.mk>

@


1.4
log
@Switching exporter and resync
@
text
@d1 1
a1 1
#  $FreeBSD: head/sys/boot/arm/ixp425/boot2/Makefile 211725 2010-08-23 22:24:11Z imp $
d15 1
a15 1
SRCS=arm_init.S boot2.c ${BOOT_FLAVOR:L}_board.c
@


1.4.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:04:00 +0000
@
text
@d1 75
@


1.4.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 75
#  $FreeBSD: releng/8.4/sys/boot/arm/ixp425/boot2/Makefile 183669 2008-10-07 16:39:17Z sam $

# We get a lot of the std lib functions from here.
.PATH: ${.CURDIR}/../../at91/libat91

# Enable to get debug msgs
#DEBUG=yes

# Hack to search through the kernel for ufs:ad0s1a and replace it with
# the correct one for the active slice/partition.
FIXUP_BOOT_DRV=yes

P=boot2
FILES=${P}
SRCS=arm_init.S boot2.c ${BOOT_FLAVOR:L}_board.c
SRCS+=memchr.c memcmp.c memcpy.c memmem.c memset.c printf.c strcmp.c strcpy.c
SRCS+=strlen.c ashldi3.c divsi3.S muldi3.c
NO_MAN=

KERNPHYSADDR=0x180000
KERNVIRTADDR=${KERNPHYSADDR}
BOOT_STACK=0x200000-4
M=${MACHINE_ARCH}
LDFLAGS=-e ${KERNPHYSADDR} -EB -T ldscript.${M}
OBJS+=  ${SRCS:N*.h:R:S/$/.o/g}
S=${.CURDIR}/../../../..

CFLAGS+= \
	-DBOOT_STACK=${BOOT_STACK} \
	-I${.CURDIR}/../../../common \
	-I${.CURDIR}

.if defined(FIXUP_BOOT_DRV)
CFLAGS+=-DFIXUP_BOOT_DRV
.endif
.if defined(DEBUG)
CFLAGS+=-DDEBUG
.endif

ldscript.$M:	$S/conf/ldscript.$M
	cat $S/conf/ldscript.$M|sed s/KERNPHYSADDR/${KERNPHYSADDR}/g| \
	  sed s/KERNVIRTADDR/${KERNVIRTADDR}/g | \
	  sed s/" + SIZEOF_HEADERS"// > ldscript.$M

${P}:	ldscript.$M

CLEANFILES+=ldscript.$M

memchr.c:	$S/../lib/libc/string/memchr.c
	sed -e 's/string\.h/lib.h/' < $S/../lib/libc/string/memchr.c > \
	  ${.TARGET}

memmem.c:	$S/../lib/libc/string/memmem.c
	sed -e 's/string\.h/lib.h/' < $S/../lib/libc/string/memmem.c > \
	  ${.TARGET}

CLEANFILES+=memchr.c memmem.c

ashldi3.o:	$S/libkern/ashldi3.c
	${CC} -c ${CFLAGS} -D_KERNEL -o ${.TARGET} ${.IMPSRC}

divsi3.o:	$S/libkern/${M}/divsi3.S
	${CC} -c ${CFLAGS} -D_KERNEL -o ${.TARGET} ${.IMPSRC}

muldi3.o:	$S/libkern/${M}/muldi3.c
	${CC} -c ${CFLAGS} -D_KERNEL -o ${.TARGET} ${.IMPSRC}

inflate.c:	$S/kern/inflate.c
	sed -e 's/extern void putstr (char/extern void putstr (const char/' < \
	    $S/kern/inflate.c > ${.TARGET}

CLEANFILES+=inflate.c

.include <bsd.prog.mk>

@


1.3
log
@SVN rev 211725 on 2010-08-23 22:24:11Z by imp

MFtbemd:

Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want
to test of all the CPUs of a given family conform.
@
text
@d1 1
a1 1
#  $FreeBSD$
@


1.3.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.3.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
#  $FreeBSD: stable/9/sys/boot/arm/ixp425/boot2/Makefile 211725 2010-08-23 22:24:11Z imp $
@


1.3.2.1.4.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.3.2.1.4.2
log
@Switch importer
@
text
@d1 1
a1 1
#  $FreeBSD: releng/9.1/sys/boot/arm/ixp425/boot2/Makefile 211725 2010-08-23 22:24:11Z imp $
@


1.3.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.3.2.1.2.2
log
@Switch importer
@
text
@d1 1
a1 1
#  $FreeBSD: releng/9.0/sys/boot/arm/ixp425/boot2/Makefile 211725 2010-08-23 22:24:11Z imp $
@


1.2
log
@SVN rev 183669 on 2008-10-07 16:39:17Z by sam

don't hardcode cc

Submitted by:	Andrey Eltsov
@
text
@d23 1
a23 1
M=${MACHINE_ARCH}
@


1.2.2.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.2.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
#  $FreeBSD: stable/8/sys/boot/arm/ixp425/boot2/Makefile 183669 2008-10-07 16:39:17Z sam $
@


1.2.2.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.2.2.1.8.2
log
@Switch importer
@
text
@d1 1
a1 1
#  $FreeBSD: releng/8.3/sys/boot/arm/ixp425/boot2/Makefile 183669 2008-10-07 16:39:17Z sam $
@


1.2.2.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.2.2.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.2.2.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.1
log
@SVN rev 183651 on 2008-10-06 19:38:10Z by jhay

Add a boot loader for ixp425 based boards like the Gateworks Avila
and ADI Pronghorn Metro with Redboot on them.
@
text
@d60 1
a60 1
	cc -c ${CFLAGS} -D_KERNEL -o ${.TARGET} ${.IMPSRC}
d63 1
a63 1
	cc -c ${CFLAGS} -D_KERNEL -o ${.TARGET} ${.IMPSRC}
d66 1
a66 1
	cc -c ${CFLAGS} -D_KERNEL -o ${.TARGET} ${.IMPSRC}
@

