Hook in riscv dtb build

This commit is contained in:
skrll 2021-11-13 10:13:42 +00:00
parent 4eedda3bdc
commit 50e70fef69
7 changed files with 46 additions and 2 deletions

View File

@ -0,0 +1,8 @@
# $NetBSD: ad.riscv32,v 1.1 2021/11/13 10:13:42 skrll Exp $
#
# DO NOT EDIT THIS FILE MANUALLY
# Generated by "make update-sets" in sys/dtb
#
./boot/dtb/sifive dtb-base-boot dtb
./boot/dtb/sifive/hifive-unleashed-a00.dtb dtb-base-boot dtb
./boot/dtb/sifive/hifive-unmatched-a00.dtb dtb-base-boot dtb

View File

@ -0,0 +1,8 @@
# $NetBSD: ad.riscv64,v 1.1 2021/11/13 10:13:42 skrll Exp $
#
# DO NOT EDIT THIS FILE MANUALLY
# Generated by "make update-sets" in sys/dtb
#
./boot/dtb/sifive dtb-base-boot dtb
./boot/dtb/sifive/hifive-unleashed-a00.dtb dtb-base-boot dtb
./boot/dtb/sifive/hifive-unmatched-a00.dtb dtb-base-boot dtb

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.own.mk,v 1.1267 2021/11/13 09:41:15 skrll Exp $
# $NetBSD: bsd.own.mk,v 1.1268 2021/11/13 10:13:42 skrll Exp $
# This needs to be before bsd.init.mk
.if defined(BSD_MK_COMPAT_FILE)
@ -1263,6 +1263,8 @@ MKDTB.earmv7= yes
MKDTB.earmv7hf= yes
MKDTB.earmv7eb= yes
MKDTB.earmv7hfeb= yes
MKDTB.riscv32= yes
MKDTB.riscv64= yes
HAVE_MESA_VER?= 19
.if ${HAVE_MESA_VER} == 19

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2020/05/23 02:11:24 rin Exp $
# $NetBSD: Makefile,v 1.5 2021/11/13 10:13:42 skrll Exp $
TARGETS+= dtblist
@ -12,6 +12,10 @@ SUBDIR+= arm
SUBDIR+= arm64
.endif
.if !empty(MACHINE_ARCH:Mriscv*)
SUBDIR+= riscv
.endif
.include <bsd.subdir.mk>
# Regenerate MD set lists in distrib/sets/lists/dtb. Run this whenever
@ -20,6 +24,7 @@ SUBDIR+= arm64
TARGET_ARCH_LIST= earmv6 earmv6hf earmv6eb earmv6hfeb
TARGET_ARCH_LIST+= earmv7 earmv7hf earmv7hf earmv7hfeb
TARGET_ARCH_LIST+= aarch64 aarch64eb
TARGET_ARCH_LIST+= riscv32 riscv64
update-sets:
.for _arch in ${TARGET_ARCH_LIST}

7
sys/dtb/riscv/Makefile Normal file
View File

@ -0,0 +1,7 @@
# $NetBSD: Makefile,v 1.1 2021/11/13 10:13:42 skrll Exp $
TARGETS+= dtblist
SUBDIR+= sifive
.include <bsd.subdir.mk>

View File

@ -0,0 +1,6 @@
# $NetBSD: Makefile.inc,v 1.1 2021/11/13 10:13:42 skrll Exp $
DTSARCH= riscv
DTSGNUARCH= riscv
ARCHDTSDIR= $S/external/gpl2/dts/dist/arch/riscv/boot/dts

View File

@ -0,0 +1,8 @@
# $NetBSD: Makefile,v 1.1 2021/11/13 10:13:42 skrll Exp $
DTSSUBDIR= sifive
DTSMAKEVARS= CONFIG_SOC_SIFIVE=y
DTSFILESCMD= ${MAKE} -C ${ARCHDTSDIR}/${DTSSUBDIR} ${DTSMAKEVARS} -v dtb-y
DTS= ${DTSFILESCMD:sh}
.include <bsd.dtb.mk>