blob: 4f44675204b6f8b019429b1011868ca873e97482 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# $OpenBSD: Makefile.inc,v 1.6 2015/01/26 01:55:55 jsg Exp $
ALLSOC=IMX OMAP SUNXI
KERNELS=
MDEXT=
.for SOC in ${ALLSOC}
KERNELS+= GENERIC-${SOC} bsd.${SOC}
MDEXT+= bsd.${SOC}.umg
MDEXT+= bsd.rd.${SOC}
MDEXT+= bsd.rd.${SOC}.umg
.endfor
KERNADDR_OMAP=0x80300000
KERNADDR_IMX=0x10800000
KERNADDR_SUNXI=0x40800000
.for CONF K in ${KERNELS}
. if !target($K)
$K:
cd ../sys/arch/${MACHINE}/conf && config ${CONF}
cd ../sys/arch/${MACHINE}/compile/${CONF} && \
${MAKE} clean && exec ${MAKE}
. endif
ALL_KERNELS += $K
.endfor
kernels: bootblocks ${ALL_KERNELS}
.for CONF K in ${KERNELS}
cp ../sys/arch/${MACHINE}/compile/${CONF}/bsd ${RELEASEDIR}/$K
.endfor
.for SOC in ${ALLSOC}
mkuboot -a arm -o linux -e ${KERNADDR_${SOC}} -l ${KERNADDR_${SOC}} \
${RELEASEDIR}/bsd.${SOC} ${RELEASEDIR}/bsd.${SOC}.umg
.endfor
ALL_KERNELS=
bootblocks:
MDEXT+= miniroot-am335x-${OSrev}.fs miniroot-beagle-${OSrev}.fs \
miniroot-imx-${OSrev}.fs miniroot-panda-${OSrev}.fs \
miniroot-cubie-${OSrev}.fs
|