buildkernel error on Current

Kyle Evans kevans at freebsd.org
Tue Apr 23 21:56:33 UTC 2019


On Tue, Apr 23, 2019 at 4:49 PM Mori Hiroki <yamori813 at yahoo.co.jp> wrote:
>
> Hi
>
> This is cause of build error.
>
> https://svnweb.freebsd.org/base?view=revision&sortby=date&revision=345519
>
>
> This is patch.
>
> diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk
> index a831e94e241..9f9df19c9ac 100644
> --- a/sys/conf/kern.post.mk
> +++ b/sys/conf/kern.post.mk
> @@ -8,6 +8,7 @@
>  # should be defined in the kern.pre.mk so that port makefiles can
>  # override or augment them.
>
> +.if ${MACHINE_CPUARCH} != "mips"
>  .if !empty(FDT_DTS_FILE)
>  DTS+=                  ${FDT_DTS_FILE}
>  .endif
> @@ -20,6 +21,7 @@CLEAN+=               ${DTB} ${DTBO}
>  kernel-install: _dtbinstall
>  .ORDER: beforeinstall _dtbinstall
>  .endif
> +.endif
>
>  # In case the config had a makeoptions DESTDIR...
>  .if defined(DESTDIR)
>
> Hiroki Mori
>

Hi,

Please try this patch: https://people.freebsd.org/~kevans/staticfix.diff

The current behavior is just flat wrong. We shouldn't be installing
FDT_DTS_FILE unless it also happens to appear in DTS. I think
staticfix.diff makes more sense.

Thanks,

Kyle Evans


More information about the freebsd-mips mailing list