Date: Sat, 9 Sep 2017 14:02:05 -0600 From: Warner Losh <imp@bsdimp.com> To: Sean Bruno <sbruno@freebsd.org> Cc: src-committers <src-committers@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org> Subject: Re: svn commit: r323371 - head/sys/conf Message-ID: <CANCZdfq-rvGiiuUvtLFVzaaqnof3awrJ5VZxu77PYv-H7US68g@mail.gmail.com> In-Reply-To: <67e6ff1d-e552-7b3a-e1ea-4e21867d7602@freebsd.org> References: <201709091919.v89JJE8Z075009@repo.freebsd.org> <CANCZdfpDpGza3bag=1syB3V0sqG-eSq=M2wP--0e7YyGmSuDAA@mail.gmail.com> <67e6ff1d-e552-7b3a-e1ea-4e21867d7602@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Sep 9, 2017 at 1:57 PM, Sean Bruno <sbruno@freebsd.org> wrote: > > > On 09/09/17 13:51, Warner Losh wrote: > > > > > > On Sat, Sep 9, 2017 at 1:19 PM, Sean Bruno <sbruno@freebsd.org > > <mailto:sbruno@freebsd.org>> wrote: > > > > Author: sbruno > > Date: Sat Sep 9 19:19:13 2017 > > New Revision: 323371 > > URL: https://svnweb.freebsd.org/changeset/base/323371 > > <https://svnweb.freebsd.org/changeset/base/323371> > > > > Log: > > r323359 instroduced an ARMv8 only uart(4) device to the tree but > > placed > > the driver in a place where it will be built for all targets. x86 > > doesn't > > have all the required build bits for this device. > > > > Move the uart(4) device mvebu to arm64 only. > > > > Modified: > > head/sys/conf/files > > head/sys/conf/files.arm64 > > > > Modified: head/sys/conf/files > > ============================================================ > ================== > > --- head/sys/conf/files Sat Sep 9 18:39:55 2017 (r323370) > > +++ head/sys/conf/files Sat Sep 9 19:19:13 2017 (r323371) > > @@ -3053,7 +3053,6 @@ dev/uart/uart_bus_puc.c optional > > uart puc > > dev/uart/uart_bus_scc.c optional uart scc > > dev/uart/uart_core.c optional uart > > dev/uart/uart_dbg.c optional uart gdb > > -dev/uart/uart_dev_mvebu.c optional uart uart_mvebu > > dev/uart/uart_dev_ns8250.c optional uart uart_ns8250 | uart > > uart_snps > > dev/uart/uart_dev_pl011.c optional uart pl011 > > dev/uart/uart_dev_quicc.c optional uart quicc > > > > Modified: head/sys/conf/files.arm64 > > ============================================================ > ================== > > --- head/sys/conf/files.arm64 Sat Sep 9 18:39:55 2017 > > (r323370) > > +++ head/sys/conf/files.arm64 Sat Sep 9 19:19:13 2017 > > (r323371) > > @@ -176,6 +176,7 @@ dev/pci/pci_host_generic_fdt.c optional > > pci fdt > > dev/psci/psci.c optional psci > > dev/psci/psci_arm64.S optional psci > > dev/uart/uart_cpu_arm64.c optional uart > > +dev/uart/uart_dev_mvebu.c optional uart uart_mvebu > > dev/uart/uart_dev_pl011.c optional uart pl011 > > dev/usb/controller/dwc_otg_hisi.c optional dwcotg fdt > > soc_hisi_hi6220 > > dev/usb/controller/ehci_mv.c optional ehci_mv fdt > > > > > > This is a bad change since we may support running the mvebu in 32-bit > > mode, in which case we'd need it duplicated. > > > > There's no harm in it being in the global files file, as it won't show > > up automatically. > > > > Warner > > > > > I moved it around like this to unbreak the x86 build. > > I see explicit restrictions on the header inclusion in sys/modules/uart > that would keep this from compiling on x86 and caused the breakage. > > I don't see an obvious way to get this device to build on 32bit and > 64bit arm (unless files.arm is included automagically). > > Does this make sense? > No. -dev/uart/uart_dev_mvebu.c optional uart uart_mvebu This should only be enabled in kernel configs that have both 'uart' AND 'uart_mvebu' in them. What enabled uart_mvebu? I don't see it in GENERIC. Warner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfq-rvGiiuUvtLFVzaaqnof3awrJ5VZxu77PYv-H7US68g>