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.hacks,v 1.11 2023/02/20 02:11:57 mrg Exp $

# some random crap we need in a few places

.if ${MACHINE_CPU} == "mips" || ${MACHINE} == "amd64" || ${MACHINE} == "i386"
insn-constants.h:
	${_MKTARGET_CREATE}
.if ${MACHINE_CPU} == "mips"
	echo "enum processor { on, off };" > ${.TARGET}
.endif
.if ${MACHINE} == "amd64" || ${MACHINE} == "i386"
	echo "#define FIRST_PSEUDO_REG 81" > ${.TARGET}
.endif
DPSRCS+=	insn-constants.h
CLEANFILES+=	insn-constants.h
.else
FAKEHEADERS+=	insn-constants.h
.endif

# these aren't necessary but are #include'd
FAKEHEADERS+=	${EXTRA_FAKEHEADERS} insn-flags.h sysroot-suffix.h
${FAKEHEADERS}:
	${_MKTARGET_CREATE}
	touch ${.TARGET}
DPSRCS+=	${FAKEHEADERS}
CLEANFILES+=	${FAKEHEADERS}