head	1.16;
access;
symbols
	netbsd-11-0-RC3:1.16
	netbsd-11-0-RC2:1.16
	netbsd-11-0-RC1:1.16
	perseant-exfatfs-base-20250801:1.16
	netbsd-11:1.16.0.34
	netbsd-11-base:1.16
	netbsd-10-1-RELEASE:1.16
	perseant-exfatfs-base-20240630:1.16
	perseant-exfatfs:1.16.0.32
	perseant-exfatfs-base:1.16
	netbsd-8-3-RELEASE:1.15
	netbsd-9-4-RELEASE:1.15
	netbsd-10-0-RELEASE:1.16
	netbsd-10-0-RC6:1.16
	netbsd-10-0-RC5:1.16
	netbsd-10-0-RC4:1.16
	netbsd-10-0-RC3:1.16
	netbsd-10-0-RC2:1.16
	thorpej-ifq:1.16.0.30
	thorpej-ifq-base:1.16
	thorpej-altq-separation:1.16.0.28
	thorpej-altq-separation-base:1.16
	netbsd-10-0-RC1:1.16
	netbsd-10:1.16.0.26
	netbsd-10-base:1.16
	bouyer-sunxi-drm:1.16.0.24
	bouyer-sunxi-drm-base:1.16
	netbsd-9-3-RELEASE:1.15
	thorpej-i2c-spi-conf2:1.16.0.22
	thorpej-i2c-spi-conf2-base:1.16
	thorpej-futex2:1.16.0.20
	thorpej-futex2-base:1.16
	thorpej-cfargs2:1.16.0.18
	thorpej-cfargs2-base:1.16
	cjep_sun2x-base1:1.16
	cjep_sun2x:1.16.0.16
	cjep_sun2x-base:1.16
	cjep_staticlib_x-base1:1.16
	netbsd-9-2-RELEASE:1.15
	cjep_staticlib_x:1.16.0.14
	cjep_staticlib_x-base:1.16
	thorpej-i2c-spi-conf:1.16.0.12
	thorpej-i2c-spi-conf-base:1.16
	thorpej-cfargs:1.16.0.10
	thorpej-cfargs-base:1.16
	thorpej-futex:1.16.0.8
	thorpej-futex-base:1.16
	netbsd-9-1-RELEASE:1.15
	bouyer-xenpvh-base2:1.16
	phil-wifi-20200421:1.16
	bouyer-xenpvh-base1:1.16
	phil-wifi-20200411:1.16
	bouyer-xenpvh:1.16.0.6
	bouyer-xenpvh-base:1.16
	is-mlppp:1.16.0.4
	is-mlppp-base:1.16
	phil-wifi-20200406:1.16
	netbsd-8-2-RELEASE:1.15
	ad-namecache-base3:1.16
	netbsd-9-0-RELEASE:1.15
	netbsd-9-0-RC2:1.15
	ad-namecache-base2:1.16
	ad-namecache-base1:1.16
	ad-namecache:1.16.0.2
	ad-namecache-base:1.16
	netbsd-9-0-RC1:1.15
	phil-wifi-20191119:1.16
	netbsd-9:1.15.0.18
	netbsd-9-base:1.15
	phil-wifi-20190609:1.15
	netbsd-8-1-RELEASE:1.15
	netbsd-8-1-RC1:1.15
	isaki-audio2:1.15.0.16
	isaki-audio2-base:1.15
	pgoyette-compat-merge-20190127:1.15
	pgoyette-compat-20190127:1.15
	pgoyette-compat-20190118:1.15
	pgoyette-compat-1226:1.15
	pgoyette-compat-1126:1.15
	pgoyette-compat-1020:1.15
	pgoyette-compat-0930:1.15
	pgoyette-compat-0906:1.15
	netbsd-7-2-RELEASE:1.14
	pgoyette-compat-0728:1.15
	netbsd-8-0-RELEASE:1.15
	phil-wifi:1.15.0.14
	phil-wifi-base:1.15
	pgoyette-compat-0625:1.15
	netbsd-8-0-RC2:1.15
	pgoyette-compat-0521:1.15
	pgoyette-compat-0502:1.15
	pgoyette-compat-0422:1.15
	netbsd-8-0-RC1:1.15
	pgoyette-compat-0415:1.15
	pgoyette-compat-0407:1.15
	pgoyette-compat-0330:1.15
	pgoyette-compat-0322:1.15
	pgoyette-compat-0315:1.15
	netbsd-7-1-2-RELEASE:1.14
	pgoyette-compat:1.15.0.12
	pgoyette-compat-base:1.15
	netbsd-7-1-1-RELEASE:1.14
	tls-maxphys-base-20171202:1.15
	matt-nb8-mediatek:1.15.0.10
	matt-nb8-mediatek-base:1.15
	nick-nhusb-base-20170825:1.15
	perseant-stdc-iso10646:1.15.0.8
	perseant-stdc-iso10646-base:1.15
	netbsd-8:1.15.0.6
	netbsd-8-base:1.15
	prg-localcount2-base3:1.15
	prg-localcount2-base2:1.15
	prg-localcount2-base1:1.15
	prg-localcount2:1.15.0.4
	prg-localcount2-base:1.15
	pgoyette-localcount-20170426:1.15
	bouyer-socketcan-base1:1.15
	jdolecek-ncq:1.15.0.2
	jdolecek-ncq-base:1.15
	pgoyette-localcount-20170320:1.15
	netbsd-7-1:1.14.0.14
	netbsd-7-1-RELEASE:1.14
	netbsd-7-1-RC2:1.14
	nick-nhusb-base-20170204:1.14
	netbsd-7-nhusb-base-20170116:1.14
	bouyer-socketcan:1.14.0.12
	bouyer-socketcan-base:1.14
	pgoyette-localcount-20170107:1.14
	netbsd-7-1-RC1:1.14
	nick-nhusb-base-20161204:1.14
	pgoyette-localcount-20161104:1.14
	netbsd-7-0-2-RELEASE:1.14
	nick-nhusb-base-20161004:1.14
	localcount-20160914:1.14
	netbsd-7-nhusb:1.14.0.10
	netbsd-7-nhusb-base:1.14
	pgoyette-localcount-20160806:1.14
	pgoyette-localcount-20160726:1.14
	pgoyette-localcount:1.14.0.8
	pgoyette-localcount-base:1.14
	nick-nhusb-base-20160907:1.14
	nick-nhusb-base-20160529:1.14
	netbsd-7-0-1-RELEASE:1.14
	nick-nhusb-base-20160422:1.14
	nick-nhusb-base-20160319:1.14
	nick-nhusb-base-20151226:1.14
	netbsd-7-0:1.14.0.6
	netbsd-7-0-RELEASE:1.14
	nick-nhusb-base-20150921:1.14
	netbsd-7-0-RC3:1.14
	netbsd-7-0-RC2:1.14
	netbsd-7-0-RC1:1.14
	nick-nhusb-base-20150606:1.14
	nick-nhusb-base-20150406:1.14
	nick-nhusb:1.14.0.4
	nick-nhusb-base:1.14
	netbsd-7:1.14.0.2
	netbsd-7-base:1.14
	yamt-pagecache-base9:1.13
	yamt-pagecache-tag8:1.1.2.2
	tls-earlyentropy:1.13.0.2
	tls-earlyentropy-base:1.14
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.13
	riastradh-drm2-base3:1.13
	rmind-smpnet-nbase:1.13
	riastradh-drm2-base2:1.6
	riastradh-drm2-base1:1.6
	riastradh-drm2:1.6.0.4
	riastradh-drm2-base:1.6
	rmind-smpnet:1.6.0.2
	rmind-smpnet-base:1.13
	khorben-n900:1.5.0.8
	agc-symver:1.5.0.6
	agc-symver-base:1.5
	tls-maxphys-base:1.14
	tls-maxphys:1.5.0.4
	yamt-pagecache-base8:1.1
	yamt-pagecache:1.1.0.2
	yamt-pagecache-base7:1.1;
locks; strict;
comment	@# @;


1.16
date	2019.10.24.18.46.21;	author christos;	state Exp;
branches;
next	1.15;
commitid	Rj6tOeEFFt6Mn9IB;

1.15
date	2017.02.22.13.14.45;	author maya;	state Exp;
branches
	1.15.14.1;
next	1.14;
commitid	i3e11zQrSwpIUWGz;

1.14
date	2014.07.22.17.46.59;	author bouyer;	state Exp;
branches
	1.14.4.1
	1.14.8.1
	1.14.12.1;
next	1.13;
commitid	VJ5sRb8oqzc9PoJx;

1.13
date	2014.01.12.15.26.29;	author tsutsui;	state Exp;
branches
	1.13.2.1;
next	1.12;
commitid	YjbnVt32CCoKaQkx;

1.12
date	2013.12.15.18.08.37;	author joerg;	state Exp;
branches;
next	1.11;
commitid	nZqOOUhhkcW4Zfhx;

1.11
date	2013.12.05.16.26.04;	author joerg;	state Exp;
branches;
next	1.10;
commitid	jpx9p027A726KXfx;

1.10
date	2013.11.04.21.25.05;	author christos;	state Exp;
branches;
next	1.9;
commitid	bXRO72QrUT6vo0cx;

1.9
date	2013.11.04.21.18.05;	author christos;	state Exp;
branches;
next	1.8;
commitid	GZnuShGUGy01m0cx;

1.8
date	2013.10.07.17.36.40;	author matt;	state Exp;
branches;
next	1.7;
commitid	sFQhI2UfuaNn1o8x;

1.7
date	2013.08.15.21.41.09;	author matt;	state Exp;
branches;
next	1.6;
commitid	GJoRkipSgA5o5B1x;

1.6
date	2013.06.23.13.57.27;	author matt;	state Exp;
branches
	1.6.2.1;
next	1.5;
commitid	jmU2LvFT6KNXdKUw;

1.5
date	2013.02.23.16.22.39;	author jkunz;	state Exp;
branches
	1.5.4.1;
next	1.4;

1.4
date	2013.02.06.07.19.19;	author matt;	state Exp;
branches;
next	1.3;

1.3
date	2013.02.05.07.28.48;	author matt;	state Exp;
branches;
next	1.2;

1.2
date	2013.02.05.03.17.51;	author matt;	state Exp;
branches;
next	1.1;

1.1
date	2012.11.20.19.08.46;	author jkunz;	state Exp;
branches
	1.1.2.1;
next	;

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

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

1.14.8.1
date	2017.03.20.06.57.13;	author pgoyette;	state Exp;
branches;
next	;
commitid	jjw7cAwgyKq7RfKz;

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

1.13.2.1
date	2014.08.10.06.53.56;	author tls;	state Exp;
branches;
next	;
commitid	7fY3uHKSIbCABMLx;

1.6.2.1
date	2013.08.28.23.59.15;	author rmind;	state Exp;
branches;
next	1.6.2.2;
commitid	cbp9Ov2uYijlqh3x;

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

1.5.4.1
date	2013.02.23.16.22.39;	author tls;	state dead;
branches;
next	1.5.4.2;

1.5.4.2
date	2013.02.25.00.28.38;	author tls;	state Exp;
branches;
next	1.5.4.3;

1.5.4.3
date	2014.08.20.00.02.56;	author tls;	state Exp;
branches;
next	1.5.4.4;
commitid	jTnpym9Qu0o4R1Nx;

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

1.1.2.1
date	2012.11.20.19.08.46;	author yamt;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2013.01.16.05.32.56;	author yamt;	state Exp;
branches;
next	1.1.2.3;

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


desc
@@


1.16
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
@# $Id: Makefile,v 1.15 2017/02/22 13:14:45 maya Exp $

S=		${.CURDIR}/../../../../
PROG=		bootimx23
SRCS=		bootimx23.c power_prep.c clock_prep.c emi_prep.c pinctrl_prep.c common.c args_prep.c

.include <bsd.own.mk>

CLEANFILES+=	${PROG}
CFLAGS+=	-Wall -Wno-main -ffreestanding -fno-unwind-tables
CPUFLAGS=	-march=armv5te -mtune=arm926ej-s
CPPFLAGS+=	-D_STANDALONE -DMEMSIZE=64
CPPFLAGS+=	-DKERNEL_BOOT_ARGS=\"root=ld0a\"
CPPFLAGS+=	-nostdinc -I. -I${.CURDIR} -I${.OBJDIR} -I${S} -I${S}/arch
CPPFLAGS+=	${ARM_APCS_FLAGS}
#CPPFLAGS+=	-DDEBUG
#CPPFLAGS+=	-DDIAGNOSTIC
DBG=		-g

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

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

RELOC=		0x00000000
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 libsa
SA_AS=		library
.include "${S}/lib/libsa/Makefile.inc"
LIBSA=		${SALIB}

${PROG}: ${OBJS} ${LIBSA} ${LIBKERN}
	${MKTARGET_LINK}
	${LD} -N -Ttext ${RELOC} -Bstatic -e ${ENTRY} -o ${.TARGET} \
	    ${OBJS} ${LIBSA} ${LIBKERN}


cleandir distclean: .WAIT cleanlibdir

cleanlibdir:
	-rm -rf lib

.include <bsd.klinks.mk>
.include <bsd.prog.mk>

@


1.15
log
@Get rid of more -mno-thumb -mno-thumb-interwork for GCC < 4.8
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.14 2014/07/22 17:46:59 bouyer Exp $
a15 1
CPPFLAGS+=	-marm
@


1.15.14.1
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d1 1
a1 1
# $Id$
d16 1
@


1.14
log
@Override CPUFLAGS for compiler cpu-specific options, instead of appening
to CFLAGS. This allows the user to define CPUFLAGS without breaking the
build.
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.13 2014/01/12 15:26:29 tsutsui Exp $
a15 1
.if ${HAVE_LLVM:Uno} != "no" || ${HAVE_GCC:U0} >= 48
a16 3
.else
CPPFLAGS+=	-mno-thumb -mno-thumb-interwork
.endif
@


1.14.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.15 2017/02/22 13:14:45 maya Exp $
d16 1
d18 3
@


1.14.12.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.15 2017/02/22 13:14:45 maya Exp $
d16 1
d18 3
@


1.14.8.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.15 2017/02/22 13:14:45 maya Exp $
d16 1
d18 3
@


1.13
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
# $Id: Makefile,v 1.12 2013/12/15 18:08:37 joerg Exp $
d11 1
a11 1
CFLAGS+=	-march=armv5te -mtune=arm926ej-s
@


1.13.2.1
log
@Rebase.
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.14 2014/07/22 17:46:59 bouyer Exp $
d11 1
a11 1
CPUFLAGS=	-march=armv5te -mtune=arm926ej-s
@


1.12
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
# $Id: Makefile,v 1.11 2013/12/05 16:26:04 joerg Exp $
d26 1
@


1.11
log
@Use -marm for clang builds, too.
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.10 2013/11/04 21:25:05 christos Exp $
d15 1
a15 1
CPPFLAGS+=	-mabi=apcs-gnu -mfloat-abi=soft
@


1.10
log
@explicitly add -marm
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.9 2013/11/04 21:18:05 christos Exp $
d16 3
a18 1
.if ${HAVE_GCC} < 48
a19 2
.else
CPPFLAGS+=	-marm
@


1.9
log
@-mno-thumb-interwork is the default, and there is no -mthumb in gcc 4.8
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.8 2013/10/07 17:36:40 matt Exp $
d18 2
@


1.8
log
@iMX233/OLinuXino changes from Petri Laskso.
See http://mail-index.netbsd.org/port-arm/2013/10/07/msg002042.html
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.7 2013/08/15 21:41:09 matt Exp $
d16 1
d18 1
@


1.7
log
@Add CPPFLAGS+= -mno-thumb -mno-thumb-interwork
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.6 2013/06/23 13:57:27 matt Exp $
d5 1
a5 2
SRCS=		args_prep.c boot_prep.c clock_prep.c common.c emi_prep.c \
		pinctrl_prep.c power_prep.c
d18 2
a19 1
#DBG=		-g
@


1.6
log
@Add -fno-unwind-tables
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.5 2013/02/23 16:22:39 jkunz Exp $
d17 1
@


1.6.2.1
log
@sync with head
@
text
@d1 1
a1 1
# $Id$
a16 1
CPPFLAGS+=	-mno-thumb -mno-thumb-interwork
@


1.6.2.2
log
@sync with head
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.6.2.1 2013/08/28 23:59:15 rmind Exp $
d5 2
a6 1
SRCS=		bootimx23.c power_prep.c clock_prep.c emi_prep.c pinctrl_prep.c common.c args_prep.c
d16 1
a16 4
CPPFLAGS+=	${ARM_APCS_FLAGS}
.if ${HAVE_LLVM:Uno} != "no" || ${HAVE_GCC:U0} >= 48
CPPFLAGS+=	-marm
.else
a17 1
.endif
d19 1
a19 2
#CPPFLAGS+=	-DDIAGNOSTIC
DBG=		-g
a21 1
LIBCRTI=	# nothing
@


1.5
log
@Contribution from Petri Laakso:
- Support for passing kernel arguments.
- entropy_init() removed as OLINUXINO doesn't generate entropy bits without
  user interaction.
- FIFO contents are flushed when DEBUG is enabled.
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.4 2013/02/06 07:19:19 matt Exp $
d11 2
a12 1
CFLAGS+=	-Wall -Wno-main -ffreestanding -march=armv5te -mtune=arm926ej-s
@


1.5.4.1
log
@file Makefile was added on branch tls-maxphys on 2013-02-25 00:28:38 +0000
@
text
@d1 55
@


1.5.4.2
log
@resync with head
@
text
@a0 55
# $Id$

S=		${.CURDIR}/../../../../
PROG=		bootimx23
SRCS=		args_prep.c boot_prep.c clock_prep.c common.c emi_prep.c \
		pinctrl_prep.c power_prep.c

.include <bsd.own.mk>

CLEANFILES+=	${PROG}
CFLAGS+=	-Wall -Wno-main -ffreestanding -march=armv5te -mtune=arm926ej-s
CPPFLAGS+=	-D_STANDALONE -DMEMSIZE=64
CPPFLAGS+=	-DKERNEL_BOOT_ARGS=\"root=ld0a\"
CPPFLAGS+=	-nostdinc -I. -I${.CURDIR} -I${.OBJDIR} -I${S} -I${S}/arch
CPPFLAGS+=	-mabi=apcs-gnu -mfloat-abi=soft
#CPPFLAGS+=	-DDEBUG
#DBG=		-g

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

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

RELOC=		0x00000000
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 libsa
SA_AS=		library
.include "${S}/lib/libsa/Makefile.inc"
LIBSA=		${SALIB}

${PROG}: ${OBJS} ${LIBSA} ${LIBKERN}
	${MKTARGET_LINK}
	${LD} -N -Ttext ${RELOC} -Bstatic -e ${ENTRY} -o ${.TARGET} \
	    ${OBJS} ${LIBSA} ${LIBKERN}


cleandir distclean: .WAIT cleanlibdir

cleanlibdir:
	-rm -rf lib

.include <bsd.klinks.mk>
.include <bsd.prog.mk>

@


1.5.4.3
log
@Rebase to HEAD as of a few days ago.
@
text
@d5 2
a6 1
SRCS=		bootimx23.c power_prep.c clock_prep.c emi_prep.c pinctrl_prep.c common.c args_prep.c
d11 1
a11 2
CFLAGS+=	-Wall -Wno-main -ffreestanding -fno-unwind-tables
CPUFLAGS=	-march=armv5te -mtune=arm926ej-s
d15 1
a15 6
CPPFLAGS+=	${ARM_APCS_FLAGS}
.if ${HAVE_LLVM:Uno} != "no" || ${HAVE_GCC:U0} >= 48
CPPFLAGS+=	-marm
.else
CPPFLAGS+=	-mno-thumb -mno-thumb-interwork
.endif
d17 1
a17 2
#CPPFLAGS+=	-DDIAGNOSTIC
DBG=		-g
a19 1
LIBCRTI=	# nothing
@


1.5.4.4
log
@update from HEAD
@
text
@d16 1
d18 3
@


1.4
log
@gcc will supply -Wa,-eabi=gnu so don't include.  Use -mabi=apcs-base, not atpcs
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.3 2013/02/05 07:28:48 matt Exp $
d5 2
a6 2
SRCS=		boot_prep.c power_prep.c clock_prep.c emi_prep.c \
		pinctrl_prep.c common.c
d12 2
a13 1
CPPFLAGS+=	-D_STANDALONE
@


1.3
log
@Add a ${MKTARGET_LINK}
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.2 2013/02/05 03:17:51 matt Exp $
d14 1
a14 1
CPPFLAGS+=	-mabi=atpcs -mfloat-abi=soft -Wa,-meabi=gnu
@


1.2
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
# $Id: Makefile,v 1.1 2012/11/20 19:08:46 jkunz Exp $
d42 1
@


1.1
log
@Add initial support for Olimex iMX233 based OLinuXino boards.
https://www.olimex.com/Products/OLinuXino/iMX233/
Contributed by Petri Laakso.
@
text
@d1 1
a1 1
# $Id$
d14 1
@


1.1.2.1
log
@file Makefile was added on branch yamt-pagecache on 2013-01-16 05:32:56 +0000
@
text
@d1 52
@


1.1.2.2
log
@sync with (a bit old) head
@
text
@a0 52
# $Id$

S=		${.CURDIR}/../../../../
PROG=		bootimx23
SRCS=		boot_prep.c power_prep.c clock_prep.c emi_prep.c \
		pinctrl_prep.c common.c

.include <bsd.own.mk>

CLEANFILES+=	${PROG}
CFLAGS+=	-Wall -Wno-main -ffreestanding -march=armv5te -mtune=arm926ej-s
CPPFLAGS+=	-D_STANDALONE
CPPFLAGS+=	-nostdinc -I. -I${.CURDIR} -I${.OBJDIR} -I${S} -I${S}/arch
#CPPFLAGS+=	-DDEBUG
#DBG=		-g

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

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

RELOC=		0x00000000
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 libsa
SA_AS=		library
.include "${S}/lib/libsa/Makefile.inc"
LIBSA=		${SALIB}

${PROG}: ${OBJS} ${LIBSA} ${LIBKERN}
	${LD} -N -Ttext ${RELOC} -Bstatic -e ${ENTRY} -o ${.TARGET} \
	    ${OBJS} ${LIBSA} ${LIBKERN}


cleandir distclean: .WAIT cleanlibdir

cleanlibdir:
	-rm -rf lib

.include <bsd.klinks.mk>
.include <bsd.prog.mk>

@


1.1.2.3
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
# $Id: Makefile,v 1.1.2.2 2013/01/16 05:32:56 yamt Exp $
d5 2
a6 1
SRCS=		bootimx23.c power_prep.c clock_prep.c emi_prep.c pinctrl_prep.c common.c args_prep.c
d11 2
a12 4
CFLAGS+=	-Wall -Wno-main -ffreestanding -fno-unwind-tables
CFLAGS+=	-march=armv5te -mtune=arm926ej-s
CPPFLAGS+=	-D_STANDALONE -DMEMSIZE=64
CPPFLAGS+=	-DKERNEL_BOOT_ARGS=\"root=ld0a\"
a13 6
CPPFLAGS+=	${ARM_APCS_FLAGS}
.if ${HAVE_LLVM:Uno} != "no" || ${HAVE_GCC:U0} >= 48
CPPFLAGS+=	-marm
.else
CPPFLAGS+=	-mno-thumb -mno-thumb-interwork
.endif
d15 1
a15 2
#CPPFLAGS+=	-DDIAGNOSTIC
DBG=		-g
a17 1
LIBCRTI=	# nothing
a40 1
	${MKTARGET_LINK}
@


