Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

#	$NetBSD: Makefile.mbr,v 1.4 2016/08/28 08:51:52 christos Exp $

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

NOPIE=		# defined
NOMAN=		# defined

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

.include <bsd.init.mk>

STRIPFLAG=	# override

SRCS?=		mbr.S

BINDIR=		/usr/mdec
BINMODE=	444

.PATH:	${.CURDIR}/..

LDFLAGS+=	-N -e start
CPPFLAGS=	-nostdinc -I${.OBJDIR} -I${.CURDIR}/.. -I${S}

CLEANFILES+=	${PROG}.tmp

${PROG}: ${OBJS}
	${LD} -o ${PROG}.tmp ${LDFLAGS} -Ttext 0x8c200200 ${OBJS}
	${OBJCOPY} -O binary ${PROG}.tmp ${PROG}
	-rm -f ${PROG}.tmp

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