head	1.19;
access;
symbols
	netbsd-11-0-RC4:1.19
	netbsd-11-0-RC3:1.19
	netbsd-11-0-RC2:1.19
	netbsd-11-0-RC1:1.19
	perseant-exfatfs-base-20250801:1.19
	netbsd-11:1.19.0.34
	netbsd-11-base:1.19
	netbsd-10-1-RELEASE:1.19
	perseant-exfatfs-base-20240630:1.19
	perseant-exfatfs:1.19.0.32
	perseant-exfatfs-base:1.19
	netbsd-8-3-RELEASE:1.18
	netbsd-9-4-RELEASE:1.18
	netbsd-10-0-RELEASE:1.19
	netbsd-10-0-RC6:1.19
	netbsd-10-0-RC5:1.19
	netbsd-10-0-RC4:1.19
	netbsd-10-0-RC3:1.19
	netbsd-10-0-RC2:1.19
	thorpej-ifq:1.19.0.30
	thorpej-ifq-base:1.19
	thorpej-altq-separation:1.19.0.28
	thorpej-altq-separation-base:1.19
	netbsd-10-0-RC1:1.19
	netbsd-10:1.19.0.26
	netbsd-10-base:1.19
	bouyer-sunxi-drm:1.19.0.24
	bouyer-sunxi-drm-base:1.19
	netbsd-9-3-RELEASE:1.18
	thorpej-i2c-spi-conf2:1.19.0.22
	thorpej-i2c-spi-conf2-base:1.19
	thorpej-futex2:1.19.0.20
	thorpej-futex2-base:1.19
	thorpej-cfargs2:1.19.0.18
	thorpej-cfargs2-base:1.19
	cjep_sun2x-base1:1.19
	cjep_sun2x:1.19.0.16
	cjep_sun2x-base:1.19
	cjep_staticlib_x-base1:1.19
	netbsd-9-2-RELEASE:1.18
	cjep_staticlib_x:1.19.0.14
	cjep_staticlib_x-base:1.19
	thorpej-i2c-spi-conf:1.19.0.12
	thorpej-i2c-spi-conf-base:1.19
	thorpej-cfargs:1.19.0.10
	thorpej-cfargs-base:1.19
	thorpej-futex:1.19.0.8
	thorpej-futex-base:1.19
	netbsd-9-1-RELEASE:1.18
	bouyer-xenpvh-base2:1.19
	phil-wifi-20200421:1.19
	bouyer-xenpvh-base1:1.19
	phil-wifi-20200411:1.19
	bouyer-xenpvh:1.19.0.6
	bouyer-xenpvh-base:1.19
	is-mlppp:1.19.0.4
	is-mlppp-base:1.19
	phil-wifi-20200406:1.19
	netbsd-8-2-RELEASE:1.18
	ad-namecache-base3:1.19
	netbsd-9-0-RELEASE:1.18
	netbsd-9-0-RC2:1.18
	ad-namecache-base2:1.19
	ad-namecache-base1:1.19
	ad-namecache:1.19.0.2
	ad-namecache-base:1.19
	netbsd-9-0-RC1:1.18
	phil-wifi-20191119:1.19
	netbsd-9:1.18.0.18
	netbsd-9-base:1.18
	phil-wifi-20190609:1.18
	netbsd-8-1-RELEASE:1.18
	netbsd-8-1-RC1:1.18
	isaki-audio2:1.18.0.16
	isaki-audio2-base:1.18
	pgoyette-compat-merge-20190127:1.18
	pgoyette-compat-20190127:1.18
	pgoyette-compat-20190118:1.18
	pgoyette-compat-1226:1.18
	pgoyette-compat-1126:1.18
	pgoyette-compat-1020:1.18
	pgoyette-compat-0930:1.18
	pgoyette-compat-0906:1.18
	netbsd-7-2-RELEASE:1.16
	pgoyette-compat-0728:1.18
	netbsd-8-0-RELEASE:1.18
	phil-wifi:1.18.0.14
	phil-wifi-base:1.18
	pgoyette-compat-0625:1.18
	netbsd-8-0-RC2:1.18
	pgoyette-compat-0521:1.18
	pgoyette-compat-0502:1.18
	pgoyette-compat-0422:1.18
	netbsd-8-0-RC1:1.18
	pgoyette-compat-0415:1.18
	pgoyette-compat-0407:1.18
	pgoyette-compat-0330:1.18
	pgoyette-compat-0322:1.18
	pgoyette-compat-0315:1.18
	netbsd-7-1-2-RELEASE:1.16
	pgoyette-compat:1.18.0.12
	pgoyette-compat-base:1.18
	netbsd-7-1-1-RELEASE:1.16
	tls-maxphys-base-20171202:1.18
	matt-nb8-mediatek:1.18.0.10
	matt-nb8-mediatek-base:1.18
	nick-nhusb-base-20170825:1.18
	perseant-stdc-iso10646:1.18.0.8
	perseant-stdc-iso10646-base:1.18
	netbsd-8:1.18.0.6
	netbsd-8-base:1.18
	prg-localcount2-base3:1.18
	prg-localcount2-base2:1.18
	prg-localcount2-base1:1.18
	prg-localcount2:1.18.0.4
	prg-localcount2-base:1.18
	pgoyette-localcount-20170426:1.18
	bouyer-socketcan-base1:1.18
	jdolecek-ncq:1.18.0.2
	jdolecek-ncq-base:1.18
	pgoyette-localcount-20170320:1.17
	netbsd-7-1:1.16.0.16
	netbsd-7-1-RELEASE:1.16
	netbsd-7-1-RC2:1.16
	nick-nhusb-base-20170204:1.16
	netbsd-7-nhusb-base-20170116:1.16
	bouyer-socketcan:1.16.0.14
	bouyer-socketcan-base:1.16
	pgoyette-localcount-20170107:1.16
	netbsd-7-1-RC1:1.16
	nick-nhusb-base-20161204:1.16
	pgoyette-localcount-20161104:1.16
	netbsd-7-0-2-RELEASE:1.16
	nick-nhusb-base-20161004:1.16
	localcount-20160914:1.16
	netbsd-7-nhusb:1.16.0.12
	netbsd-7-nhusb-base:1.16
	pgoyette-localcount-20160806:1.16
	pgoyette-localcount-20160726:1.16
	pgoyette-localcount:1.16.0.10
	pgoyette-localcount-base:1.16
	nick-nhusb-base-20160907:1.16
	nick-nhusb-base-20160529:1.16
	netbsd-7-0-1-RELEASE:1.16
	nick-nhusb-base-20160422:1.16
	nick-nhusb-base-20160319:1.16
	nick-nhusb-base-20151226:1.16
	netbsd-7-0:1.16.0.8
	netbsd-7-0-RELEASE:1.16
	nick-nhusb-base-20150921:1.16
	netbsd-7-0-RC3:1.16
	netbsd-7-0-RC2:1.16
	netbsd-7-0-RC1:1.16
	nick-nhusb-base-20150606:1.16
	nick-nhusb-base-20150406:1.16
	nick-nhusb:1.16.0.6
	nick-nhusb-base:1.16
	netbsd-6-0-6-RELEASE:1.2
	netbsd-6-1-5-RELEASE:1.2
	netbsd-7:1.16.0.4
	netbsd-7-base:1.16
	yamt-pagecache-base9:1.16
	yamt-pagecache-tag8:1.3.2.4
	netbsd-6-1-4-RELEASE:1.2
	netbsd-6-0-5-RELEASE:1.2
	tls-earlyentropy:1.16.0.2
	tls-earlyentropy-base:1.16
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.16
	riastradh-drm2-base3:1.16
	netbsd-6-1-3-RELEASE:1.2
	netbsd-6-0-4-RELEASE:1.2
	netbsd-6-1-2-RELEASE:1.2
	netbsd-6-0-3-RELEASE:1.2
	rmind-smpnet-nbase:1.16
	netbsd-6-1-1-RELEASE:1.2
	riastradh-drm2-base2:1.9
	riastradh-drm2-base1:1.9
	riastradh-drm2:1.9.0.4
	riastradh-drm2-base:1.9
	rmind-smpnet:1.9.0.2
	rmind-smpnet-base:1.16
	netbsd-6-1:1.2.0.8
	netbsd-6-0-2-RELEASE:1.2
	netbsd-6-1-RELEASE:1.2
	khorben-n900:1.8.0.2
	netbsd-6-1-RC4:1.2
	netbsd-6-1-RC3:1.2
	agc-symver:1.7.0.4
	agc-symver-base:1.7
	netbsd-6-1-RC2:1.2
	netbsd-6-1-RC1:1.2
	yamt-pagecache-base8:1.5
	netbsd-6-0-1-RELEASE:1.2
	yamt-pagecache-base7:1.5
	matt-nb6-plus-nbase:1.2
	yamt-pagecache-base6:1.4
	netbsd-6-0:1.2.0.6
	netbsd-6-0-RELEASE:1.2
	netbsd-6-0-RC2:1.2
	tls-maxphys:1.4.0.2
	tls-maxphys-base:1.16
	matt-nb6-plus:1.2.0.4
	matt-nb6-plus-base:1.2
	netbsd-6-0-RC1:1.2
	jmcneill-usbmp-base10:1.3
	yamt-pagecache-base5:1.3
	jmcneill-usbmp-base9:1.3
	yamt-pagecache:1.3.0.2
	yamt-pagecache-base4:1.3
	jmcneill-usbmp-base8:1.3
	jmcneill-usbmp-base7:1.3
	jmcneill-usbmp-base6:1.3
	jmcneill-usbmp-base5:1.3
	jmcneill-usbmp-base4:1.3
	jmcneill-usbmp-base3:1.3
	jmcneill-usbmp-base2:1.2
	netbsd-6:1.2.0.2
	netbsd-6-base:1.2;
locks; strict;
comment	@# @;


1.19
date	2019.10.24.18.46.20;	author christos;	state Exp;
branches;
next	1.18;
commitid	Rj6tOeEFFt6Mn9IB;

1.18
date	2017.04.08.19.53.20;	author christos;	state Exp;
branches
	1.18.14.1;
next	1.17;
commitid	mAo8FJwd588QFLMz;

1.17
date	2017.02.22.13.14.45;	author maya;	state Exp;
branches;
next	1.16;
commitid	i3e11zQrSwpIUWGz;

1.16
date	2014.01.12.15.26.28;	author tsutsui;	state Exp;
branches
	1.16.6.1
	1.16.10.1
	1.16.14.1;
next	1.15;
commitid	YjbnVt32CCoKaQkx;

1.15
date	2013.12.15.18.08.37;	author joerg;	state Exp;
branches;
next	1.14;
commitid	nZqOOUhhkcW4Zfhx;

1.14
date	2013.12.05.16.26.04;	author joerg;	state Exp;
branches;
next	1.13;
commitid	jpx9p027A726KXfx;

1.13
date	2013.11.04.21.25.05;	author christos;	state Exp;
branches;
next	1.12;
commitid	bXRO72QrUT6vo0cx;

1.12
date	2013.11.04.21.18.05;	author christos;	state Exp;
branches;
next	1.11;
commitid	GZnuShGUGy01m0cx;

1.11
date	2013.08.21.05.59.14;	author matt;	state Exp;
branches;
next	1.10;
commitid	URTdlgFGbtBgGh2x;

1.10
date	2013.08.15.21.41.08;	author matt;	state Exp;
branches;
next	1.9;
commitid	GJoRkipSgA5o5B1x;

1.9
date	2013.06.23.13.56.40;	author matt;	state Exp;
branches
	1.9.2.1;
next	1.8;
commitid	SHskqPuEaniJdKUw;

1.8
date	2013.03.29.17.01.00;	author matt;	state Exp;
branches;
next	1.7;

1.7
date	2013.02.06.07.19.19;	author matt;	state Exp;
branches;
next	1.6;

1.6
date	2013.02.05.03.17.50;	author matt;	state Exp;
branches;
next	1.5;

1.5
date	2012.12.12.15.00.06;	author matt;	state Exp;
branches;
next	1.4;

1.4
date	2012.07.20.14.53.27;	author matt;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	2012.02.22.12.12.21;	author nisimura;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	2012.01.31.11.04.17;	author nisimura;	state Exp;
branches
	1.2.4.1;
next	1.1;

1.1
date	2012.01.30.03.28.34;	author nisimura;	state Exp;
branches;
next	;

1.18.14.1
date	2020.04.13.08.03.46;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.16.6.1
date	2017.08.28.17.51.35;	author skrll;	state Exp;
branches;
next	;
commitid	UQQpnjvcNkUZn05A;

1.16.10.1
date	2017.03.20.06.57.13;	author pgoyette;	state Exp;
branches;
next	1.16.10.2;
commitid	jjw7cAwgyKq7RfKz;

1.16.10.2
date	2017.04.26.02.53.01;	author pgoyette;	state Exp;
branches;
next	;
commitid	ojV02aOSdzvBqZOz;

1.16.14.1
date	2017.04.21.16.53.26;	author bouyer;	state Exp;
branches;
next	;
commitid	dUG7nkTKALCadqOz;

1.9.2.1
date	2013.08.28.23.59.15;	author rmind;	state Exp;
branches;
next	1.9.2.2;
commitid	cbp9Ov2uYijlqh3x;

1.9.2.2
date	2014.05.18.17.45.05;	author rmind;	state Exp;
branches;
next	;
commitid	mL5ZYSzpqK6QS2Bx;

1.4.2.1
date	2013.02.25.00.28.38;	author tls;	state Exp;
branches;
next	1.4.2.2;

1.4.2.2
date	2013.06.23.06.20.04;	author tls;	state Exp;
branches;
next	1.4.2.3;
commitid	eVjr9caYRQbRGHUw;

1.4.2.3
date	2014.08.20.00.02.56;	author tls;	state Exp;
branches;
next	1.4.2.4;
commitid	jTnpym9Qu0o4R1Nx;

1.4.2.4
date	2017.12.03.11.36.07;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;

1.3.2.1
date	2012.02.22.12.12.21;	author yamt;	state dead;
branches;
next	1.3.2.2;

1.3.2.2
date	2012.04.17.00.06.15;	author yamt;	state Exp;
branches;
next	1.3.2.3;

1.3.2.3
date	2012.10.30.17.19.26;	author yamt;	state Exp;
branches;
next	1.3.2.4;

1.3.2.4
date	2013.01.16.05.32.56;	author yamt;	state Exp;
branches;
next	1.3.2.5;

1.3.2.5
date	2014.05.22.11.39.43;	author yamt;	state Exp;
branches;
next	;
commitid	VUUXuyNWnt3AKwBx;

1.2.4.1
date	2012.12.06.17.14.23;	author matt;	state Exp;
branches;
next	;


desc
@@


1.19
log
@1. All Makefiles that use ARM_APCS_FLAGS add -marm unconditionally and
   bsd.own.mk also adds it for gcc only (so we end up with 2 -marm for gcc).
   Just add -marm unconditionally in bsd.own.mk in ARM_APCS_FLAGS and remove
   it from everywhere else.
2. gcc-8 now warns about thumb internetwork in APCS mode. This does not make
   sense because the documentation says that this flag does not make a
   difference in apcs mode, but might produce larger code in non-APCS mode.
   So we just add it to silence the warnings.
@
text
@#	$NetBSD: Makefile,v 1.18 2017/04/08 19:53:20 christos Exp $

S=		${.CURDIR}/../../../..

PROG=		bootmini2440
SRCS=		entry.S main.c devopen.c netif.c dev_net.c dm9000.c dev_sdmmc.c
SRCS+=		s3csdi.c

.include <bsd.own.mk>
.include <bsd.klinks.mk>

CLEANFILES+=	${PROG}.elf
CFLAGS+=	-Wall -Wno-main -ffreestanding -fno-unwind-tables
CPPFLAGS+=	-D_STANDALONE -DSUPPORT_DHCP -DLIBSA_PRINTF_WIDTH_SUPPORT
CPPFLAGS+=	-DDM9000MAC="0x08,0x08,0x11,0x18,0x12,0x27" 
CPPFLAGS+=	-DDEFAULT_BOOTFILE="ld0a:netbsd;net:"
CPPFLAGS+=	-nostdinc -I. -I${.OBJDIR} -I${S} -I${S}/arch
CPPFLAGS+=	-march=armv4 ${ARM_APCS_FLAGS}
CPUFLAGS=
DBG=		-Os

CWARNFLAGS.clang+=	-Wno-asm-operand-widths

LIBCRT0=	# nothing
LIBCRTI=	# nothing
LIBCRTBEGIN=	# nothing
LIBCRTEND=	# nothing
LIBC=		# nothing

MAN=		# no manual page
NOMAN=		# defined
STRIPFLAG=
BINMODE=	444

RELOC=		0x30A00000
ENTRY=		_start

### find out what to use for libkern
KERN_AS=	library
.include "${S}/lib/libkern/Makefile.inc"
LIBKERN=	${KERNLIB}

### find out what to use for libz
Z_AS=		library
.include "${S}/lib/libz/Makefile.inc"
LIBZ=		${ZLIB}

### find out what to use for libsa
SA_AS=		library
SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
.include "${S}/lib/libsa/Makefile.inc"
LIBSA=		${SALIB}

${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${_MKTARGET_LINK}
	${LD} -N -Ttext ${RELOC} -Bstatic -e ${ENTRY} -o ${.TARGET}.elf \
	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${OBJCOPY} -S -O binary ${.TARGET}.elf ${.TARGET}

VERSIONFLAGS+=-k
.include "${S}/conf/newvers_stand.mk"

.include <bsd.prog.mk>
@


1.18
log
@centralize vers.c building for standalone programs.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2017/02/22 13:14:45 maya Exp $
a18 1
CPPFLAGS+=	-marm
@


1.18.14.1
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d1 1
a1 1
#	$NetBSD$
d19 1
@


1.17
log
@Get rid of more -mno-thumb -mno-thumb-interwork for GCC < 4.8
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2014/01/12 15:26:28 tsutsui Exp $
d7 1
a7 1
SRCS+=		s3csdi.c vers.c
d12 1
a12 1
CLEANFILES+=	vers.c ${PROG}.elf
a54 5
.PHONY: vers.c
vers.c: version
	${HOST_SH} ${S}/conf/newvers_stand.sh -K \
	    ${${MKREPRO} == "yes" :?:-D} ${.CURDIR}/version "evbarm"

d61 3
@


1.16
log
@Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.

XXX: probabry we should have bsd.saprog.mk or something.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2013/12/15 18:08:37 joerg Exp $
a18 1
.if ${HAVE_LLVM:Uno} != "no" || ${HAVE_GCC:U0} >= 48
a19 3
.else
CPPFLAGS+=	-mno-thumb -mno-thumb-interwork
.endif
@


1.16.6.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2017/04/08 19:53:20 christos Exp $
d7 1
a7 1
SRCS+=		s3csdi.c
d12 1
a12 1
CLEANFILES+=	${PROG}.elf
d19 1
d21 3
d59 5
a69 3
VERSIONFLAGS+=-k
.include "${S}/conf/newvers_stand.mk"

@


1.16.14.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2017/04/08 19:53:20 christos Exp $
d7 1
a7 1
SRCS+=		s3csdi.c
d12 1
a12 1
CLEANFILES+=	${PROG}.elf
d19 1
d21 3
d59 5
a69 3
VERSIONFLAGS+=-k
.include "${S}/conf/newvers_stand.mk"

@


1.16.10.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2017/02/22 13:14:45 maya Exp $
d19 1
d21 3
@


1.16.10.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2017/04/08 19:53:20 christos Exp $
d7 1
a7 1
SRCS+=		s3csdi.c
d12 1
a12 1
CLEANFILES+=	${PROG}.elf
d55 5
a65 3
VERSIONFLAGS+=-k
.include "${S}/conf/newvers_stand.mk"

@


1.15
log
@Move flags for ARM's APCS ABI into a common variable. Add some forces to
deal with limitations in the Clang <-> LLVM backend interaction to pick
the correct ABI and target assembler.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2013/12/05 16:26:04 joerg Exp $
d30 1
@


1.14
log
@Use -marm for clang builds, too.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2013/11/04 21:25:05 christos Exp $
d18 1
a18 1
CPPFLAGS+=	-march=armv4 -mabi=apcs-gnu -mfloat-abi=soft
@


1.13
log
@explicitly add -marm
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2013/11/04 21:18:05 christos Exp $
d19 3
a21 1
.if ${HAVE_GCC} < 48
a22 2
.else
CPPFLAGS+=	-marm
d27 2
@


1.12
log
@-mno-thumb-interwork is the default, and there is no -mthumb in gcc 4.8
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2013/08/21 05:59:14 matt Exp $
d21 2
@


1.11
log
@Use <bsd.klinks.mk>
DBG=-Os (instead of blank)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2013/08/15 21:41:08 matt Exp $
d19 1
d21 1
@


1.10
log
@Add CPPFLAGS+= -mno-thumb -mno-thumb-interwork
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2013/06/23 13:56:40 matt Exp $
d10 1
d21 1
a21 1
DBG=		
a35 8
.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
	@@[ -h machine ] || ln -s ${S}/arch/evbarm/include machine
	@@[ -h arm ] || ln -s ${S}/arch/arm/include arm
.NOPATH: machine arm
.endif
CLEANFILES+= machine arm

@


1.9
log
@Add -fno-unwind-tables
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2013/03/29 17:01:00 matt Exp $
d18 1
@


1.9.2.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD$
a9 1
.include <bsd.klinks.mk>
a17 1
CPPFLAGS+=	-mno-thumb -mno-thumb-interwork
d19 1
a19 1
DBG=		-Os
d34 8
@


1.9.2.2
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9.2.1 2013/08/28 23:59:15 rmind Exp $
d18 1
a18 4
CPPFLAGS+=	-march=armv4 ${ARM_APCS_FLAGS}
.if ${HAVE_LLVM:Uno} != "no" || ${HAVE_GCC:U0} >= 48
CPPFLAGS+=	-marm
.else
a19 1
.endif
a22 2
CWARNFLAGS.clang+=	-Wno-asm-operand-widths

a23 1
LIBCRTI=	# nothing
@


1.8
log
@Make sure CPUFLAGS remains empty.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2013/02/06 07:19:19 matt Exp $
d12 1
a12 1
CFLAGS+=	-Wall -Wno-main -ffreestanding
@


1.7
log
@gcc will supply -Wa,-eabi=gnu so don't include.  Use -mabi=apcs-base, not atpcs
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2013/02/05 03:17:50 matt Exp $
d18 1
@


1.6
log
@Make sure these are always compiled with -mabi=atpcs -mfloat-abi=soft
-Wa,-meabi=gnu so they use the old compilation methods.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2012/12/12 15:00:06 matt Exp $
d17 1
a17 2
CPPFLAGS+=	-march=armv4 -mabi=atpcs -mfloat-abi=soft
CPUFLAGS+=	-Wa,-meabi=gnu
@


1.5
log
@Don't allow CPUFLAGS to be overridden.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2012/07/20 14:53:27 matt Exp $
d17 2
a18 1
CPUFLAGS=	-march=armv4
@


1.4
log
@Add ${_MKTARGET_LINK}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2012/02/22 12:12:21 nisimura Exp $
d12 1
a12 1
CFLAGS+=	-Wall -Wno-main -ffreestanding -march=armv4
d17 1
@


1.4.2.1
log
@resync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2012/07/20 14:53:27 matt Exp $
d12 1
a12 1
CFLAGS+=	-Wall -Wno-main -ffreestanding
a16 1
CPPFLAGS+=	-march=armv4 -mabi=apcs-gnu -mfloat-abi=soft
@


1.4.2.2
log
@resync from head
@
text
@d1 1
a1 1
#	$NetBSD$
a17 1
CPUFLAGS=
@


1.4.2.3
log
@Rebase to HEAD as of a few days ago.
@
text
@a9 1
.include <bsd.klinks.mk>
d12 1
a12 1
CFLAGS+=	-Wall -Wno-main -ffreestanding -fno-unwind-tables
d17 1
a17 6
CPPFLAGS+=	-march=armv4 ${ARM_APCS_FLAGS}
.if ${HAVE_LLVM:Uno} != "no" || ${HAVE_GCC:U0} >= 48
CPPFLAGS+=	-marm
.else
CPPFLAGS+=	-mno-thumb -mno-thumb-interwork
.endif
d19 1
a19 3
DBG=		-Os

CWARNFLAGS.clang+=	-Wno-asm-operand-widths
a21 1
LIBCRTI=	# nothing
d34 8
@


1.4.2.4
log
@update from HEAD
@
text
@d7 1
a7 1
SRCS+=		s3csdi.c
d12 1
a12 1
CLEANFILES+=	${PROG}.elf
d19 1
d21 3
d59 5
a69 3
VERSIONFLAGS+=-k
.include "${S}/conf/newvers_stand.mk"

@


1.3
log
@
- adapt DM9000 driver name change.
- move -DLIBSA_PRINTF_WIDTH_SUPPORT to CPPFLAGS variable as SACPPFLAGS
  does not work.
- add a logic to make/remove machine/ and arm/ symlinks.
- remove redundant directives in no use.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2012/01/31 11:04:17 nisimura Exp $
d62 1
@


1.3.2.1
log
@file Makefile was added on branch yamt-pagecache on 2012-04-17 00:06:15 +0000
@
text
@d1 66
@


1.3.2.2
log
@sync with head
@
text
@a0 66
#	$NetBSD$

S=		${.CURDIR}/../../../..

PROG=		bootmini2440
SRCS=		entry.S main.c devopen.c netif.c dev_net.c dm9000.c dev_sdmmc.c
SRCS+=		s3csdi.c vers.c

.include <bsd.own.mk>

CLEANFILES+=	vers.c ${PROG}.elf
CFLAGS+=	-Wall -Wno-main -ffreestanding -march=armv4
CPPFLAGS+=	-D_STANDALONE -DSUPPORT_DHCP -DLIBSA_PRINTF_WIDTH_SUPPORT
CPPFLAGS+=	-DDM9000MAC="0x08,0x08,0x11,0x18,0x12,0x27" 
CPPFLAGS+=	-DDEFAULT_BOOTFILE="ld0a:netbsd;net:"
CPPFLAGS+=	-nostdinc -I. -I${.OBJDIR} -I${S} -I${S}/arch
DBG=		

LIBCRT0=	# nothing
LIBCRTBEGIN=	# nothing
LIBCRTEND=	# nothing
LIBC=		# nothing

MAN=		# no manual page
NOMAN=		# defined
STRIPFLAG=
BINMODE=	444

RELOC=		0x30A00000
ENTRY=		_start

.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
	@@[ -h machine ] || ln -s ${S}/arch/evbarm/include machine
	@@[ -h arm ] || ln -s ${S}/arch/arm/include arm
.NOPATH: machine arm
.endif
CLEANFILES+= machine arm

### find out what to use for libkern
KERN_AS=	library
.include "${S}/lib/libkern/Makefile.inc"
LIBKERN=	${KERNLIB}

### find out what to use for libz
Z_AS=		library
.include "${S}/lib/libz/Makefile.inc"
LIBZ=		${ZLIB}

### find out what to use for libsa
SA_AS=		library
SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
.include "${S}/lib/libsa/Makefile.inc"
LIBSA=		${SALIB}

.PHONY: vers.c
vers.c: version
	${HOST_SH} ${S}/conf/newvers_stand.sh -K \
	    ${${MKREPRO} == "yes" :?:-D} ${.CURDIR}/version "evbarm"

${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${LD} -N -Ttext ${RELOC} -Bstatic -e ${ENTRY} -o ${.TARGET}.elf \
	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${OBJCOPY} -S -O binary ${.TARGET}.elf ${.TARGET}

.include <bsd.prog.mk>
@


1.3.2.3
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3.2.2 2012/04/17 00:06:15 yamt Exp $
a61 1
	${_MKTARGET_LINK}
@


1.3.2.4
log
@sync with (a bit old) head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3.2.3 2012/10/30 17:19:26 yamt Exp $
d12 1
a12 1
CFLAGS+=	-Wall -Wno-main -ffreestanding
a16 1
CPUFLAGS=	-march=armv4
@


1.3.2.5
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3.2.4 2013/01/16 05:32:56 yamt Exp $
a9 1
.include <bsd.klinks.mk>
d12 1
a12 1
CFLAGS+=	-Wall -Wno-main -ffreestanding -fno-unwind-tables
d17 2
a18 10
CPPFLAGS+=	-march=armv4 ${ARM_APCS_FLAGS}
.if ${HAVE_LLVM:Uno} != "no" || ${HAVE_GCC:U0} >= 48
CPPFLAGS+=	-marm
.else
CPPFLAGS+=	-mno-thumb -mno-thumb-interwork
.endif
CPUFLAGS=
DBG=		-Os

CWARNFLAGS.clang+=	-Wno-asm-operand-widths
a20 1
LIBCRTI=	# nothing
d33 8
@


1.2
log
@
- add TFTP loading facility.
- SD/MMC load default is now "ld0a:netbsd"
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2012/01/30 03:28:34 nisimura Exp $
d4 1
d6 1
a6 1
SRCS=		entry.S main.c devopen.c netif.c dev_net.c dm9k.c dev_sdmmc.c
d13 1
a13 1
CPPFLAGS+=	-D_STANDALONE -DSUPPORT_DHCP 
d16 1
a16 1
CPPFLAGS+=	-nostdinc -I. -I${.CURDIR} -I${.OBJDIR} -I${S} -I${S}/arch
d32 8
a52 1
SACPPFLAGS=	-DLIBSA_PRINTF_WIDTH_SUPPORT
a65 2

.include <bsd.klinks.mk>
a66 6

cleandir distclean: .WAIT cleanlibdir

cleanlibdir:
	-rm -rf lib

@


1.2.4.1
log
@Hardcode CPUFLAGS appropriately so that these are always built for the correct
cpu/architecture.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2012/01/31 11:04:17 nisimura Exp $
d11 1
a11 2
CFLAGS+=	-Wall -Wno-main -ffreestanding
CPUFLAGS=	-march=armv4
@


1.1
log
@
Add FriendlyARM Mini2440 support.
- new code for Samsung S3C2440 SoC.
- update for other S3C2xx0.
This port was done by Paul Fleischer.
@
text
@d1 1
a1 1
#	$NetBSD$
d14 1
a14 1
CPPFLAGS+=	-DDEFAULT_BOOTFILE="ld0e:netbsd;net:"
@

